Jump to:

4952 Posts in 14338 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » 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: 1385 Views
  • nwcwe
    Avatar
    Community Member
    1 Post

    Zend log.php Link to this post

    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

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Zend log.php Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Zend log.php Link to this post

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

  • faca79
    Avatar
    Community Member
    4 Posts

    Re: Zend log.php Link to this post

    Hi Willr

    Paste this code in sappihire/_config.php??

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Zend log.php Link to this post

    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

  • faca79
    Avatar
    Community Member
    4 Posts

    Re: Zend log.php Link to this post

    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

    1385 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.