IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Compréhension d'une Stack Trace [PHP 5.3]


Sujet :

Langage PHP

  1. #1
    Membre habitué
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    488
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 488
    Points : 134
    Points
    134
    Par défaut Compréhension d'une Stack Trace
    Bonjour,

    J'aimerai que vous m'aidiez à comprendre cette pile d'execution. Je ne vois pas ou se situe l'erreur. Merci d'avance

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    Exception information :
     
    Message: Object Not Found 
     
    Stack trace:
    #0 C:\wamp\www\test.com\library\Phponcouch\couchClient.php(204): Phponcouch_couchClient->_queryAndTest('PUT', '/test...', Array, Array, Object(stdClass))
    #1 C:\wamp\www\test.com\library\Phponcouch\couchDocument.php(165): Phponcouch_couchClient->storeDoc(Object(stdClass))
    #2 C:\wamp\www\test.com\library\Phponcouch\couchDocument.php(199): Phponcouch_couchDocument->record()
    #3 C:\wamp\www\test.com\library\Phponcouch\couchDocument.php(214): Phponcouch_couchDocument->set('_id', 'Poste55574')
    #4 C:\wamp\www\test.com\application\models\PosteLogCouch.php(28): Phponcouch_couchDocument->__set('_id', 'Poste55574')
    #5 C:\wamp\www\test.com\application\models\PosteLogCouch.php(9): PosteLogCouch->getPoste('55574')
    #6 C:\wamp\www\test.com\application\modules\default\views\scripts\index\recherche-poste.phtml(56): PosteLogCouch->resumeView('55574')
    #7 C:\wamp\www\test.com\library\Zend-1.9.3\Zend\View.php(108): include('C:\wamp\www\pag...')
    #8 C:\wamp\www\test.com\library\Zend-1.9.3\Zend\View\Abstract.php(833): Zend_View->_run('.\application\m...')
    #9 C:\wamp\www\test.com\library\Zend-1.9.3\Zend\Controller\Action\Helper\ViewRenderer.php(903): Zend_View_Abstract->render('index/recherche...')
    #10 C:\wamp\www\test.com\library\Zend-1.9.3\Zend\Controller\Action\Helper\ViewRenderer.php(924): Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/recherche...', NULL)
    #11 C:\wamp\www\test.com\library\Zend-1.9.3\Zend\Controller\Action.php(212): Zend_Controller_Action_Helper_ViewRenderer->render('recherche-poste', NULL, false)
    #12 C:\wamp\www\test.com\application\modules\default\controllers\IndexController.php(618): Zend_Controller_Action->render('recherche-poste')
    #13 C:\wamp\www\test.com\library\Zend-1.9.3\Zend\Controller\Action.php(513): IndexController->rechercheAction()
    #14 C:\wamp\www\test.com\library\Zend-1.9.3\Zend\Controller\Dispatcher\Standard.php(289): Zend_Controller_Action->dispatch('rechercheAction')
    #15 C:\wamp\www\test.com\library\Zend-1.9.3\Zend\Controller\Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #16 C:\wamp\www\test.com\index.php(63): Zend_Controller_Front->dispatch()
    #17 {main}
    Request Parameters:
    array
      'controller' => string 'index' (length=5)
      'action' => string 'recherche' (length=9)
      'module' => string 'default' (length=7)
      'redirectUrl' => string '/index/recherche' (length=16)
      'cr' => string 'poste' (length=5)
      'k' => string '' (length=0)
      'loc' => string '' (length=0)
      'ray' => string '' (length=0)
      'zid' => string '0' (length=1)
      'sid' => string '0' (length=1)
      'fid' => string '0' (length=1)
      'exp' => string '' (length=0)
      'dp' => string '' (length=0)
      'ne' => string '' (length=0)

  2. #2
    Membre habitué
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    488
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 488
    Points : 134
    Points
    134
    Par défaut
    J'ai d'autres élements d'information apparement ça coince au niveau de mon affichage. Le message d'erreur s'affiche à ce niveau:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    //*** Affiche les différents élements du layout
    $this->render('recherche-poste');
    $this->render('box/filters','left',True);
    $this->render('box/lastsearch','right',True);
    $this->render('box/selection','right',True);
          //récupération des infos de l'agence s'il y lieu
          if ($ag=$this->_request->getParam('ag')) {
            $tAgence = new Agences();
            $this->view->result = $tAgence->getById($ag);
            $tClient=new Clients();
            $client = $tClient->getById($this->view->result['cli_id']);
            $this->view->result['cli_logo'] = $client['cli_logo'];
            $this->render('box/annonceur-info','right',True);
          }
     
    $this->render('box/pub-annonceur','right',True);
    $this->render('box/tags','left',True);
    Il ne prend pas en compte mes "render".

  3. #3
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 727
    Points
    10 727
    Par défaut
    tu travailles avec quelle framework/CMS ?

  4. #4
    Membre habitué
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    488
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 488
    Points : 134
    Points
    134
    Par défaut
    avec le framework ZEND

  5. #5
    Membre habitué
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    488
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 488
    Points : 134
    Points
    134
    Par défaut
    J'ai avancé, j'utilise la base de donnée documentaire couchdb et apparemment il n'accepte pas mon :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
      throw new couchException($raw);
    dans :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
     protected function _queryAndTest ( $method, $url,$allowed_status_codes, $parameters = array(),$data = NULL ) {
        $raw = $this->query($method,$url,$parameters,$data);
     
        $response = $this->parseRawResponse($raw, $this->results_as_array);
        $this->results_as_array = false;
     
        if ( in_array($response['status_code'], $allowed_status_codes) ) {
     
          return $response['body'];
        }
     
        throw new couchException($raw);
     
        return FALSE;
      }
    Alors que ma classe est décharer class couchException extends Exception est déclarée dans la même page. Comment ça se fait?

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Transformer une Stack Trace en String
    Par dtateur dans le forum Codes sources à télécharger
    Réponses: 0
    Dernier message: 07/03/2011, 21h04
  2. Problème de compréhension d'une classe
    Par goldorax113 dans le forum Langage
    Réponses: 5
    Dernier message: 25/10/2006, 22h50
  3. [API] API de stack trace
    Par booth dans le forum MFC
    Réponses: 2
    Dernier message: 13/09/2005, 10h09
  4. [Exception] récupération de la stack trace d'une Throwable
    Par totof2308 dans le forum API standards et tierces
    Réponses: 6
    Dernier message: 14/05/2004, 14h49

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo