Archive

Posts Tagged ‘zend’

Zend Erroronicles

April 5, 2010 2 comments

Today we are going to list the couple of buys a noob has to face while getting started with the Zend framework;- The story while traveling to the Hello world 😉

Errors:

Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/landmark_collector/public/index.php on line 11

Fatal error: require_once() [function.require]: Failed opening required ‘Zend/Loader.php’ (include_path=’/var/www/landmark_collector/application/../library:.:/usr/share/php:/usr/share/pear’) in /var/www/landmark_collector/public/index.php on line 11

Problem:

Set the zend library path in the inlude_path for php

Solution:

+ the following lines at the top of the file /var/www/website-name/application/bootstrap.php

define(“SITE_ROOT”, dirname($_SERVER[‘DOCUMENT_ROOT’]));
set_include_path(get_include_path().PATH_SEPARATOR
.’/var/www/zend/library’);

Error:

Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /var/www/landmark_collector/library/Zend/Loader.php on line 258

Fatal error: Uncaught exception ‘Zend_Controller_Dispatcher_Exception’ with message ‘Invalid controller specified (error)’ in /var/www/landmark_collector/library/Zend/Controller/Dispatcher/Standard.php:242 Stack trace: #0 /var/www/landmark_collector/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /var/www/landmark_collector/public/index.php(25): Zend_Controller_Front->dispatch() #2 {main} thrown in /var/www/landmark_collector/library/Zend/Controller/Dispatcher/Standard.php on line 242

Problem:

Categories: Web Frameworks Tags: , , , ,
%d bloggers like this: