Friday 12 September 2003 1:48:08 pm
Hello everyone, especially Wenyue ;)
I'm trying again the import scripts to import data from 2.2 to 3.1 (or later 3.2).
I tried "importuser.php" first, but the problem is the same. I did a cleandatabase with kernel_clean.sql. All necessary object classes and class attributes are in the (clean) database.
Debugging show me one warning and then fails with an error:
Warning: Invalid argument supplied for foreach() in [docroot]/kernel/classes/ezpersistentobject.php on line 552. (caused by $contentObject =& $class->instantiate( $userID, 1 ); )
The fatal error is this:
Fatal error: Call to a member function on a non-object in [docroot]/importuser.php on line 125. This is caused by $contentObjectAttributes[0]->setAttribute( 'data_text', $name ); Looks a lot, like the preceeding line ($contentObjectAttributes =& $version->contentObjectAttributes(); ) does not return the expected array of object attributes.
Why?
How can I debug this? (The data from the ez2-tables in the DB are looking fine.) What DB entries are needed for the import scripts to work? I really need some help here, because I think, it's a silly small bug, but I cannot figure it out.
Marco
http://www.hyperroad-design.com
|