Jump to:

22997 Posts in 11853 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » [solved] Strange 'random' loading error - ClassLoader.php problem

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

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

Page: 1
Go to End
Author Topic: 551 Views
  • w1l
    Avatar
    Community Member
    13 Posts

    [solved] Strange 'random' loading error - ClassLoader.php problem Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: [solved] Strange 'random' loading error - ClassLoader.php problem Link to this post

    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)

  • w1l
    Avatar
    Community Member
    13 Posts

    Re: [solved] Strange 'random' loading error - ClassLoader.php problem Link to this post

    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

  • suganya
    Avatar
    Community Member
    8 Posts

    Re: [solved] Strange 'random' loading error - ClassLoader.php problem Link to this post

    how to clear the cache. can please tell the procedure

    Attached Files
  • w1l
    Avatar
    Community Member
    13 Posts

    Re: [solved] Strange 'random' loading error - ClassLoader.php problem Link to this post

    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.

  • suganya
    Avatar
    Community Member
    8 Posts

    Re: [solved] Strange 'random' loading error - ClassLoader.php problem Link to this post

    Its working thanks a lot :-o

    551 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.