22997 Posts in 11853 Topics by 2828 members
|Go to End|
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
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)
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.
5 March 2014 at 6:55pm Last edited: 5 March 2014 7:37pm
how to clear the cache. can please tell the procedure
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.
3 April 2014 at 10:48pm
Its working thanks a lot :-o
|Go to Top|