Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
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
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
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
Un tour par là peut peut-être vous aider: http://julien-pauli.developpez.com/tuto … ceptions2/
Hors ligne
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.
Hors ligne