Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Zend log.php


6 Posts   1434 Views


9 October 2010 at 8:36pm Community Member, 1 Post

No speak english - Google Translation

How can I fix this error message?

I am now running through the installation steps (this should take about 30 seconds)

If you receive a fatal error, refresh this page to continue the installation

* Setting up 'mysite/_config.php'...
* Setting up /var/www/web2/html/nwcwe/mysite/_config.php
* Setting up '.htaccess' file...
* Setting up /var/www/web2/html/nwcwe/.htaccess
* Building database schema...

Warning: require_once(Zend/Log.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/web2/html/nwcwe/sapphire/dev/Log.php on line 2

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Log.php' (include_path='.') in /var/www/web2/html/nwcwe/sapphire/dev/Log.php on line 2


9 October 2010 at 8:44pm (Last edited: 9 October 2010 8:46pm), Forum Moderator, 921 Posts


Please ensure a "sapphire/thirdparty" folder exists within your SilverStripe installation.

Within sapphire/thirdparty should be a "Zend" folder, and within that a Log.php file.
Sometimes these may not have transferred correctly when uploading files to server via FTP.

Good luck!



9 October 2010 at 11:33pm Forum Moderator, 5511 Posts

You also have to make sure sapphire/thirdparty is on your include path. You can do this manually in your php.ini (include_path) or if you cannot override that file you can put this at the top of your _config file

set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__). "/sapphire/thirdparty");


20 October 2010 at 5:01am Community Member, 4 Posts

Hi Willr

Paste this code in sappihire/_config.php??


20 October 2010 at 10:21am (Last edited: 20 October 2010 10:23am), Forum Moderator, 921 Posts

There's already code doing this in sapphire/core/Core.php. Specifically, it is this (around line 203):

set_include_path(str_replace('.' . PATH_SEPARATOR, '.' . PATH_SEPARATOR
   . BASE_PATH . '/sapphire' . PATH_SEPARATOR
   . BASE_PATH . '/sapphire/parsers' . PATH_SEPARATOR
   . BASE_PATH . '/sapphire/thirdparty' . PATH_SEPARATOR
   , get_include_path()));

This adds sapphire, sapphire/parsers and sapphire/thirdparty absolute paths to the include path.

I'm not sure why it's not working for some people. Perhaps the web host has locked the ability to set the include path?



21 October 2010 at 12:57am Community Member, 4 Posts

I think the same thing: the host of my client sucks... I'm going to try changing the host service and then I'll tell you if it works.