28 June 2010 at 4:49pm
(Last edited: 28 June 2010 5:30pm),
I've just managed to install Silverstripe on with my hosting company. However when I try to access the admin panel. I get the following:
Warning: require_once(Zend/Log.php) [function.require-once]: failed to open stream: No such file or directory in /****/public_html/sapphire/dev/Log.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Log.php' (include_path='./***/public_html/sapphire:/***/public_html/sapphire/parsers:/***/public_html/sapphire/thirdparty:/usr/local/lib/php') in /home/massmaor/domains/***/public_html/sapphire/dev/Log.php on line 2
I've had a look through the existing posts and they say i need to add in php_admin_value. I can't figure out what file I need to change. Do I edit the _config.php file or the .htaccess file.
Any help would be appreciated just starting using Silverstripe and finding this a little confusing. Thanks in advance.
The solution is to add your sapphire folder to your include path. This article has more information on how to set your include_path http://support.modwest.com/content/5/98/en/how-do-i-set-php-include_path.html
Warning: require_once(Zend/Log.php) [function.require-once]: failed to open stream: No such file or directory in /home/massmaor/domains/mass.maori.nz/public_html/sapphire/dev/Log.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Log.php' (include_path='.:/home/massmaor/domains/mass.maori.nz/public_html/sapphire:/home/massmaor/domains/mass.maori.nz/public_html/sapphire/parsers:/home/massmaor/domains/mass.maori.nz/public_html/sapphire/thirdparty:/usr/local/lib/php') in /home/massmaor/domains/mass.maori.nz/public_html/sapphire/dev/Log.php on line 2
at the top of your _config file (after the <?php). Some hosts also disable ini_set, php_value so check with your hosting provider that AllowOverride is set to something that allows you to edit it 'Options' or 'All'.
See http://www.sitepoint.com/forums/showthread.php?t=549437 for some more info.