Closed (fixed)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2011 at 07:01 UTC
Updated:
20 Feb 2012 at 06:04 UTC
I'd created a MigrateDestination but didn't implement __toString() since it wasn't defined as abstract or listed in the commented out blocks. But when I went to view the migration using migrate_ui I got the following exception:
Recoverable fatal error: Object of class BuccellaProductDest could not be converted to string in migrate_migration_info() (line 518 of /Users/amorton/Sites/buccella/sites/all/modules/migrate/migrate_ui/migrate_ui.pages.inc).
Comments
Comment #1
mikeryanOK, declared an abstract __toString() in MigrateDestination, for D6 and D7. Also added __toString() implementations where missing in migrate_extras.
Comment #3
mototribe commentedI got this error with the current production release. After adding __tostring it worked.