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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Site showing php error (ClassLoader.php on line 57)


Go to End


2 Posts   1893 Views

Avatar
try2dream

Community Member, 5 Posts

7 May 2013 at 12:45pm

I just checked my website and haven't edited any content or files and have checked with my hosting company to confirm that nothing has been changed on the server and my website is showing this PHP error:

Warning: require_once(/home/******/public_html/cms/_config.php) [function.require-once]: failed to open stream: No such file or directory in /home2/******/public_html/framework/core/manifest/ClassLoader.php on line 57

Fatal error: require_once() [function.require]: Failed opening required '/home/******/public_html/cms/_config.php' (include_path='.:/home2/******/public_html/framework:/home2/******/public_html/framework/parsers:/home2/******/public_html/framework/thirdparty:.:/usr/lib/php:/usr/local/lib/php') in /home2/******/public_html/framework/core/manifest/ClassLoader.php on line 57

It was working fine last night, anyone know how can I fix this?

Avatar
martimiz

Forum Moderator, 1391 Posts

8 May 2013 at 7:46pm

I'm finding it a bit weird that the error is referring to 2 separate absolute paths /home/... And /home2/... At this point it seems the directory used to be called /home/ but is now called /home2/. I don't quite understand how this could be if your provider sais nothing changed...

But I suppose doing a /dev/build/?flush=1 should flush your cache and point silverstripe back to the correct path...

Martine