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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Warning: require_once(core/Core.php)


Reply


6 Posts   2306 Views

Avatar
Robert Dowell

Community Member, 17 Posts

13 April 2010 at 9:24am

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

Avatar
Willr

Forum Moderator, 5513 Posts

13 April 2010 at 10:37pm

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.

Avatar
Robert Dowell

Community Member, 17 Posts

14 April 2010 at 12:23am

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

Thanks,
Bob

Avatar
OwenW

Community Member, 45 Posts

14 April 2010 at 4:11am

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

Avatar
Robert Dowell

Community Member, 17 Posts

14 April 2010 at 10:22pm

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

Avatar
maxwell_s

Community Member, 2 Posts

24 September 2010 at 12:42pm

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