4945 Posts in 17872 Topics by 1494 members
Page: 1 2
|Go to End||Next >|
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.
28 June 2010 at 7:05pm
Hi BridC, Welcome to the forums.
Please see these threads for answers
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
28 June 2010 at 7:39pm
thanks for getting back to me, I had read through the posts you mentioned and still got confused.
Do I need to set the include_path inside the .htaccess file or inside the sapphire/_config.php.
28 June 2010 at 7:46pm
You can set it in either. I think .htaccess would be better than the _config file but both should work.
28 June 2010 at 8:13pm
I've put it in the sapphire/_config.php, as I couldn't get access to edit the .htaccess file on my hosting site.
I don't think I have the correct syntax though.
php_value include_path = “.:/home/massmaor/domains/mass.maori.nz/public_html/sapphire:/home/massmaor/domains/mass.maori.nz/public_html/sapphire/thirdparty:/home/massmaor/domains/mass.maori.nz/public_html/sapphire/parsers/";
This is the original error msg i was getting:
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
28 June 2010 at 8:24pm Last edited: 28 June 2010 8:24pm
php_value 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/Zend/Log.php;
I just also tried the above aswell and still getting errors.
28 June 2010 at 8:37pm
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.
28 June 2010 at 9:05pm
i tried that and still getting an error. Thanks for your help I really appreciate it. I'll check with the hosting provider ion the morning about the ini_set, php_value
Page: 1 2
|Go to Top||Next >|