1042 Posts in 379 Topics by 372 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 582 Views |
-
MigrateSiteTreeLinkingTask.php

10 May 2010 at 9:03pm
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\largeherbivore.org\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. -
Re: MigrateSiteTreeLinkingTask.php

11 May 2010 at 8:56pm
Fixed in r104594 - please report these kinds of issues (and patch suggestions) on open.silverstripe.org - thanks!
| 582 Views | ||
|
Page:
1
|
Go to Top |


