update 3.2.3 to 3.3-1

Author Message

Hapee de Groot

Friday 09 January 2004 3:19:28 am

I received some errors like:

Fatal error: Call to a member function on a non-object in /var/www/elektra.hivos.nl/ezpublish/kernel/classes/ezcontentobjectattribute.php on line 682
Fatal error: eZ publish did not finish it's request

after upgrading from 3.2.3 to 33-1. I discovered that the problem was caused by a difference in the ezcontentobject_attribute table. In 3.3.1 there is a data_type_string field added with a Not Null option and records like ezboolean, ezstring, ezobject etc.

Because I added already 450 records to the ezcontentobject_attribute table in 3.2.3 it is much work to add all these daty_type_string by hand, so two things I would like to know:

can this be done easear?
and if not which attribute should fit what when I have to do it by hand?

Thanks in advance.

Hapee

Hapee de Groot

Friday 09 January 2004 3:53:02 am

formulating a question often leads to finding the answer:

update ezcontentobject_attribute, ezcontentclass_attribute set ezcontentobject_attribute.data_type_string=ezcontentclass_attribute.data_type_string where ezcontentobject_attribute.contentclassattribute_id=ezcontentclass_attribute.id;

as found in dbupdate-3.2-3--to-3.3.0-1.sql

So no fatal errors anymore, only some Module not found errors, which I hope to fix also.

Hapee

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.