Zend Framework library not found in path Print

  • 22

If you are getting an error like the following:

Warning: require_once(Zend/Mail.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/example.com/httpdocs/test/php/test_zf.php on line 11

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Mail.php' (include_path='.:/usr/share/pear:/usr/local/php') in /var/www/vhosts/example.com/httpdocs/test/php/test_zf.php on line 11

Make sure you are using the right path in your require or includes. Here is an example:

/** Start code **/

require_once 'Zend/Mail.php';

...

/** End code **/

 Please make sure that PHP Safe mode is disabled. To turn off safe mode, login to the control panel and under the Setup section of the domain, uncheck the option for safe mode.

If you are not sure, contact us.


Was this answer helpful?

« Back