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



2 Posts   675 Views


10 May 2010 at 9:03pm Community Member, 164 Posts

Running the task 'Migrate SiteTree Linking Task' gives an error if there are no linked pages.

Fatal error: Call to a member function removeDuplicates() on a non-object in G:\localhost\\sapphire\tasks\MigrateSiteTreeLinkingTask.php on line 27

Update Line 27 to:

      // Databases like MSSQL will give duplicate results - remove them
      // This would normally be fixed by using SELECT DISTINCT, but DataObject::get() doesn't support it
      if ($linkedPages) $linkedPages->removeDuplicates();

avoids the error.


11 May 2010 at 8:56pm Forum Moderator, 801 Posts

Fixed in r104594 - please report these kinds of issues (and patch suggestions) on - thanks!