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

[solved] Strange 'random' loading error - ClassLoader.php problem


Go to End


6 Posts   2892 Views

Avatar
w1l

Community Member, 13 Posts

26 August 2013 at 10:49pm

Hi guys. Using SS 3.0.5 I have deployed my upgraded site to its server. I also upgraded userform module ... now every 10th (ish) page load i get this error:

Warning: require_once(/nfs/c03/h01/mnt/81833/domains/wellingtoncitymission.org.nz/html/public/userforms(old)/_config.php) [function.require-once]: failed to open stream: No such file or directory in /nfs/c03/h01/mnt/81833/domains/wellingtoncitymission.org.nz/html/public/framework/core/manifest/ClassLoader.php on line 57

Fatal error: require_once() [function.require]: Failed opening required '/nfs/c03/h01/mnt/81833/domains/wellingtoncitymission.org.nz/html/public/userforms(old)/_config.php' (include_path='.:/nfs/c03/h01/mnt/81833/domains/wellingtoncitymission.org.nz/html/public/framework:/nfs/c03/h01/mnt/81833/domains/wellingtoncitymission.org.nz/html/public/framework/parsers:/nfs/c03/h01/mnt/81833/domains/wellingtoncitymission.org.nz/html/public/framework/thirdparty:.:/usr/local/php-5.3.27/share/pear') in /nfs/c03/h01/mnt/81833/domains/wellingtoncitymission.org.nz/html/public/framework/core/manifest/ClassLoader.php on line 57

So it seems that somehow the ClassLoader is looking for the old (deleted) userform module? Any ideas how i stop it from doing this?

Thanks for reading
/w

Avatar
Willr

Forum Moderator, 5523 Posts

27 August 2013 at 8:02pm

Try blowing away the cache directory (/tmp/silverstripe-cache) or 'silverstripe-cache'. If you have an opcode cache installed (like APC) you'll also need to clear the cache (restarting PHP is the the quick method)

Avatar
w1l

Community Member, 13 Posts

28 August 2013 at 2:26am

Thanks Willr. Your advice on cache clearing ... bought back an old memory of - www.mysite.com/?flush=all ... which seems to have done the trick.

Boooyaa.

Many thanks
Wil

Avatar
suganya

Community Member, 9 Posts

5 March 2014 at 6:55pm

Edited: 05/03/2014 7:37pm

how to clear the cache. can please tell the procedure :-)

Attached Files
Avatar
w1l

Community Member, 13 Posts

6 March 2014 at 9:35am

adding /?flush=all after your site root url should do the trick. However in my experience some hosting environments have trouble clearing cache directories ... in which case you can create a folder in the silverstripe root directory called 'silverstripe-cache' - the instal will then use this to store cache files. So to clear the cache in future can you just delete the contents of /silverstripe-cache/ ...

not sure how secure that is, but its a work around which has worked for me.

Avatar
suganya

Community Member, 9 Posts

3 April 2014 at 10:48pm

Its working thanks a lot :-o