Upgrading database error (1.2.1 to 2.2.2)

Attempting to upgrade the database in going from 1.2.1 to 2.2.2, I encountered this:

Fatal error: Undefined class constant 'COLLECTOR_DELIMITER' in /home/eclectro/www/dlib/application/migrations/20100810120000_detachCollectorsFromEntities.php on line 135

Has this been seen before? Can anyone on the dev team point me toward a fix?

That looks like a bug in the upgrade: it's referring to a constant from an older version of Omeka.

You could work around that problem by replacing Collection::COLLECTOR_DELIMITER with "\n" on line 135 of that file mentioned in the error, so the resulting line is

$db->update("$db->Collection", array('collectors' => implode("\n", $collectorArray)), 'id = ' . (int)$collectionId);

You would have to restore your backup and re-do the upgrade after making that change.

John, thanks for the tip. It got me past that snag, only to run into another. I eventually decided to forego the upgrade and clean-install Omeka 2.2.2, which is now up and running, and looking good.

Sorry about the upgrade issues, though good news at least that your fresh install is working well. The original problem you reported will be fixed in the next release of Omeka.

We're always interested in squashing issues if they arise, so if you feel like trying the upgrade again some time, feel free to report any further problem you encountered.