Zend FR

Consultez la FAQ sur le ZF avant de poster une question

Vous n'êtes pas identifié.

#1 01-01-2008 18:23:02

yodathegreat
Nouveau membre
Date d'inscription: 01-01-2008
Messages: 3

[ZF 1.0.3] Message d'erreur,

Bonjour à tous,

j'aimerai contribuer à ZF, mais pour l'instant j'ai un probleme....

Si quelqu'un a une idée ?

Sur Firefox

Fatal error: Uncaught exception 'Zend_Exception' with message 'File "ErrorController.php" was not found' in /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Loader.php:161 Stack trace: #0 /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Loader.php(91): Zend_Loader::loadFile('ErrorController...', Array, true) #1 [internal function]: Zend_Loader::loadClass('ErrorController') #2 [internal function]: spl_autoload_call('ErrorController') #3 /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Controller/Dispatcher/Standard.php(165): class_exists('ErrorController') #4 /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Controller/Dispatcher/Standard.php(194): Zend_Controller_Dispatcher_Standard->isDispatchable(Object(Zend_Controller_Request_Http)) #5 /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Controller/Front.php(929): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Requ in /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Loader.php on line 161

Dans le fichier Logs

[01-Jan-2008 18:55:36] PHP Strict Standards:  Declaration of BaseZF_Framework_Db::factory() should be compatible with that of Zend_Db::factory() in /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/includes/BaseZF/Framework/Db.php on line 13
[01-Jan-2008 18:55:36] PHP Fatal error:  Uncaught exception 'Zend_Exception' with message 'File "ErrorController.php" was not found' in /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Loader.php:161
Stack trace:
#0 /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Loader.php(91): Zend_Loader::loadFile('ErrorController...', Array, true)
#1 [internal function]: Zend_Loader::loadClass('ErrorController')
#2 [internal function]: spl_autoload_call('ErrorController')
#3 /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Controller/Dispatcher/Standard.php(165): class_exists('ErrorController')
#4 /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Controller/Dispatcher/Standard.php(194): Zend_Controller_Dispatcher_Standard->isDispatchable(Object(Zend_Controller_Request_Http))
#5 /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Controller/Front.php(929): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Requ in /var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/Zend/Loader.php on line 161

Amitiés
Yodathegreat

Mes path

BASEZF_PATH_BASE=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs
BASEZF_PATH_TO_INCLUDES=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/includes
BASEZF_PATH_TO_LIBRARIES=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/libraries
BASEZF_PATH_TO_APPLICATION=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/application
BASEZF_PATH_TO_CONTROLLERS=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/application/controllers
BASEZF_PATH_TO_DOCUMENT_ROOT=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/
BASEZF_PATH_TO_VIEWS=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/application/views
BASEZF_PATH_TO_LOGS=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/application/logs
BASEZF_PATH_TO_LOCALES=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/application/locales
BASEZF_BASE_ZEND_PATH=/var/www/vhosts/wormhole-the-game.com/subdomains/hole2/httpdocs/library/

Dernière modification par yodathegreat (01-01-2008 19:01:19)

Hors ligne

 

#2 01-01-2008 19:19:30

Phoenix17
Membre
Lieu: Nancy
Date d'inscription: 09-04-2007
Messages: 73
Site web

Re: [ZF 1.0.3] Message d'erreur,

Bonjour,

La première erreure vient du fait que le mvc zf ne trouve pas le controller Error.

En effet, tu dois créer un controller ErrorController que tu peut ensuite personnaliser. Ce controller sera appeler par ZF si un fichier est introuvable par exemple (regarde la doc zf de Zend_Controller).

Concernant l'error dans le logs, peut tu nous dire à quoi te sert BaseZF_Framework_Db ? Apporte-til une fonctionnalitée supplémentaire à Zend_Db ?

Hors ligne

 

#3 01-01-2008 20:12:01

yodathegreat
Nouveau membre
Date d'inscription: 01-01-2008
Messages: 3

Re: [ZF 1.0.3] Message d'erreur,

j'ai bien vu le message, mais dans mon dossier "application\controllers\" j'ai bien "ErrorController.php"
La est vraiment le probleme... pourquoi ne le trouve t-il pas.....

Yodathegreat

Hors ligne

 

#4 21-01-2008 10:02:07

Seb
Membre
Lieu: Thuin (Belgique)
Date d'inscription: 19-11-2007
Messages: 62
Site web

Re: [ZF 1.0.3] Message d'erreur,

Je remonte ce problème car je suis dans la même situation. J'ai bien un ErrorController et un error.phtml mais il ne s'affiche pas.


Sébastien Bervoets

Hors ligne

 

#5 21-01-2008 11:12:59

Mr.MoOx
Administrateur
Lieu: Toulouse
Date d'inscription: 27-03-2007
Messages: 1444
Site web

Re: [ZF 1.0.3] Message d'erreur,

Un tour par là peut peut-être vous aider: http://julien-pauli.developpez.com/tuto … ceptions2/

Hors ligne

 

#6 23-01-2008 09:54:05

Seb
Membre
Lieu: Thuin (Belgique)
Date d'inscription: 19-11-2007
Messages: 62
Site web

Re: [ZF 1.0.3] Message d'erreur,

J'ai enfin trouvé après avoir perdu quelques cheveux de plus. Le problème est que j'appelais toujours throwException(true). Une fois supprimé tout fonctionne à merveille.


Sébastien Bervoets

Hors ligne

 

Pied de page des forums

Propulsé par PunBB
© Copyright 2002–2005 Rickard Andersson
Traduction par punbb.fr

Graphisme réalisé par l'agence Rodolphe Eveilleau
Développement par Kitpages