Jump to:

1160 Posts in 2621 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Warning: require_once(core/Core.php)

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 2232 Views
  • Robert Dowell
    Avatar
    Community Member
    17 Posts

    Warning: require_once(core/Core.php) Link to this post

    I upgraded to 2.4, and after that I get the following error when I try to visit mysite.

    Warning: require_once(core/Core.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\silverstripe\sapphire\main.php on line 61

    Fatal error: require_once() [function.require]: Failed opening required 'core/Core.php' (include_path='.;C:\php5\pear') in C:\wamp\www\silverstripe\sapphire\main.php on line 61

    I have dataobject_manager, image_gallery and swfupload modules installed.

    If anyone can help I would appreciate it.

    Thanks,
    Bob

  • Willr
    Avatar
    Forum Moderator
    5502 Posts

    Re: Warning: require_once(core/Core.php) Link to this post

    No such file error so the first thing to check is to make sure sapphire/core/Core.php exists and is readable by the webserver user. Hmm I wonder if it makes a difference that its core/Core where as on Windows it might need to be core\Core I would be surprised if that was the issue.

  • Robert Dowell
    Avatar
    Community Member
    17 Posts

    Re: Warning: require_once(core/Core.php) Link to this post

    No, there isn't a core directory in sapphire. Should the upgrade put it there?

    Thanks,
    Bob

  • OwenW
    Avatar
    Community Member
    45 Posts

    Re: Warning: require_once(core/Core.php) Link to this post

    Hi Bob,

    It sounds like something went really askew with your upgrade process. The path sapphire/core is a major part of the silverstripe framework, and is something that will have been there in the original installation as well as the upgrade.

    Make sure that you followed the upgrade instructions from here http://doc.silverstripe.org/doku.php?id=upgrading&s=upgrade (as appropriate for your build)

    Cheers
    Owen

  • Robert Dowell
    Avatar
    Community Member
    17 Posts

    Re: Warning: require_once(core/Core.php) Link to this post

    Willr and Owen

    Thanks for your help! I'm a dunce, but finally got it figured out. I'm able to see my site and get into the cms, haven't started using it yet but the modules seem to be working.

    Thanks again.
    Bob

  • maxwell_s
    Avatar
    Community Member
    2 Posts

    Re: Warning: require_once(core/Core.php) Link to this post

    Hi,

    I struck the same problem installing Silverstripe on Win XP SP 3, XAMPP. The problem with the missing /core files was with the extractor I used. I used Winace to extract the files initially, and the /core files were missing. Then I tried using 7-zip ( http://www.7-zip.org/ ), and it extracted all files accurately.

    cheers,

    Duncan

    2232 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.