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

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


Reply

2 Posts   1325 Views

Avatar
socks

24 September 2009 at 7:47am (Last edited: 24 September 2009 7:41pm), Community Member, 190 Posts

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

24 September 2009 at 7:41pm Community Member, 190 Posts

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