Jump to:

1160 Posts in 2621 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Files & Images tab gives an error after upgrade [SOLVED]

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: 1312 Views
  • socks
    Avatar
    Community Member
    190 Posts

    Files & Images tab gives an error after upgrade [SOLVED] Link to this post

    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.

  • socks
    Avatar
    Community Member
    190 Posts

    Re: Files & Images tab gives an error after upgrade [SOLVED] Link to this post

    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

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