Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Failed opening required 'Zend/Log.php'

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

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

Page: 1
Go to End
Author Topic: 1762 Views
  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Failed opening required 'Zend/Log.php' Link to this post

    This has to be the single biggest nightmare I have encountered in 3 years of SS development.

    First, I am using 2.4.0. as I have found the CMS page (selecting pages in the tree) are absolutely (And Consistantly) unbearable in 2.4.4 and 2.4.5. (In two environments). But this isn't the point, just the background.

    I developed this new site on a Windows box using WAMP. Fine. Then I published to a shared hosting environment (Webdrive), of which I have two other silverstripe 2.4.0 sites already running. I have deployed these sites by simply FTP'ing the codebase to the live server and manually running an SQL script on the database. Again, Fine.

    However, with this particular site, all I get after deployment is this:

    Warning: require_once(Zend/Log.php) [function.require-once]: failed to open stream: No such file or directory in /home/zanzomedia/orewabeachgym.co.nz/sapphire/dev/Log.php on line 2

    Fatal error: require_once() [function.require]: Failed opening required 'Zend/Log.php' (include_path='./:/usr/local/lib/php:/usr/share/pear/:/usr/local/apache/phpinc/:/home/zanzomedia/orewabeachgym.co.nz/') in /home/zanzomedia/orewabeachgym.co.nz/sapphire/dev/Log.php on line 2

    After 3 days of searching, changing version codebase and databases, and even copying the EXACT sapphire, cms and googlesitemaps directories from one of the functional sites on the SAME SERVER to no avail, I canned the live site. And installed a fresh copy of 2.4.0 from scratch on the remote server. Installation performed as expected, except the above messages were displayed again. Once on the installation page after installing, and then on a plain white screen on any live page.

    I have searched and found:
    http://www.silverstripe.org/installing-silverstripe/show/14182
    http://silverstripe.org/installing-silverstripe/show/12361#post284114

    Which don't help in a shared enviornment. Someone asked a question to this effect on the latter thread, to which there was no reply. So I will risk the same here myself:

    Any ideas?
    Aaron

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Failed opening required 'Zend/Log.php' Link to this post

    You should be able to set the include path on most shared hosts (well at least all the ones I've used) often they implement it in slightly different ways to just editing the PHP ini file. Perhaps also try

    http://www.silverstripe.org/installing-silverstripe/show/11945#post282434

    Also make sure you try 2.4.5 rather than 2.4.0 so it will include Sean's patch (http://open.silverstripe.org/changeset/113976)

  • CodeGuerrilla
    Avatar
    Community Member
    105 Posts

    Re: Failed opening required 'Zend/Log.php' Link to this post

    I have the same problem, and the host does not allow setting the include path in any manner they provide a directory outside the webroot for includes which doesn't help me much, is there any other way to get Silverstripe to run?

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Failed opening required 'Zend/Log.php' Link to this post

    I couldn't find a way around this with 2.4.4 or 2.4.5. Aside from this issue, Both of these versions were incredibly slow loading even the default installation pages in the cms. (average of around 16 secs)

    I ended up simply copying the code base from one of my live 2.4.0 sites and changing the theme and _config file. Complete new db and data entry.

    This was just a favour for a friend so I spent no more time on this issue. 3 days trying to get a 5 page non-customized site even functioning is a little silly as it is. But I will certainly be test the latest versions later on this speed issue and the one above.

  • CodeGuerrilla
    Avatar
    Community Member
    105 Posts

    Re: Failed opening required 'Zend/Log.php' Link to this post

    Thanks for the info, I changed hosts and all is fine now, the other host just had thing locked down to tight for my liking.

    1762 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.