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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Files & Images tab gives an error after upgrade [SOLVED]


Go to End


2 Posts   2322 Views

Avatar
socks

Community Member, 191 Posts

24 September 2009 at 7:47am

Edited: 24/09/2009 7:41pm

Just upgraded from 2.2.x and now clicking the Files & Images tab gives me this error. http://pastie.org/627246

I ran dev/build and ?flush=all many times, deleted sapphire, cms and other folders then copied new ones back up to the server. Not sure what else to do.

Avatar
socks

Community Member, 191 Posts

24 September 2009 at 7:41pm

For whatever reason, I needed to change this:

sapphire > filesystem > Folder.php

foreach($usedFiles as $file) {
     $where .= $file->ID . ',';
} 

to this:

foreach($usedFiles as $file) {
     if($file->ID) $where .= $file->ID . ',';
}

thanks to sminnee & mobiusnz on the IRC