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


Reply


6 Posts   1504 Views

Avatar
nwcwe

Community Member, 1 Post

9 October 2010 at 8:36pm

Hello
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

Avatar
Sean

Forum Moderator, 922 Posts

9 October 2010 at 8:44pm

Edited: 09/10/2010 8:46pm

Hello,

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!

Sean

Avatar
Willr

Forum Moderator, 5513 Posts

9 October 2010 at 11:33pm

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");

Avatar
faca79

Community Member, 4 Posts

20 October 2010 at 5:01am

Hi Willr

Paste this code in sappihire/_config.php??

Avatar
Sean

Forum Moderator, 922 Posts

20 October 2010 at 10:21am

Edited: 20/10/2010 10:23am

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?

Sean

Avatar
faca79

Community Member, 4 Posts

21 October 2010 at 12:57am

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.

Thanks
Faca