Class attributes gone when editing class

Author Message

Claus Jensen

Friday 07 November 2003 1:22:16 am

Hi,
I experience strange this when editing a class after objects have been instansiated from it. If I add new attributes to the class and save the class, afterwards I can only see the new attributes, the old ones are GONE!! I have reported this as a bug. Does anybody have the same problems? I have two live sites now where this is the case.

link to bug: http://ez.no/developer/ez_publish_3/bug_reports/class_attributes_gone_when_editing_class

ezpublish help?

Additional comment: I have looked for the attributes in the database, and they are still there, luckily there is still hope!

claÜs

Claus Jensen

Wednesday 19 November 2003 3:10:57 am

New comment:
Strange thing. I have looked in the database and the table ezcontentclass_attribute contain all the 69 attributes. But after Im making an object of this class, the object does only contain 4 of these 69 attributes in ezcontentobject_attribute. Has anybody experienced this yet, or is it just me?

claÜs

Paul Borgermans

Wednesday 19 November 2003 6:12:18 am

Hi

I never tried that many, but with classes containing around 20 attributes, I have not seen any problem (yet)

Do you get debug output?

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Claus Jensen

Wednesday 19 November 2003 6:51:45 am

Hi,
Thanks for replying Paul.
No I get no error in the debug-output. But I traced all the sql queries and those that fetch the attributes, only manages to fetch 4 attributes. The objects of this class only contain 4 attributes, even though it displays all 69 when I create an object of this class. And the class have all 69 attributes. The strange thing we also have experienced, is that this class have disappeared from the classgroup-list (class/classlist/4). Its not listed, but when I manually edit it, with "class/classlist/28" it displays the class with all attributes. Isnt this strange?? I think its a bug somewhere.

By the way, we have more than 3000 objects of this type, and more is coming.

regards,
claÜs

Bård Farstad

Thursday 04 December 2003 6:02:55 am

I've never experienced this before. This sounds very destructive, please do alot of backups while you gather more information about this.

It would be great if you could get a database dump and a description on how to reproduce this problem so we can get it fixed.

PS: just a guess - your disk which runs MySQL is not full right?

--bård

Documentation: http://ez.no/doc

Claus Jensen

Friday 05 December 2003 1:30:17 am

Hi Bård!
Finally one from ezcrew after almost a month, phuh! Disk is not full. This is happening in several versions that we use now. We are using sites on 3.2.1, 3.2.2 and 3.2.3 and all seem to have this problem. I have reported this long ago, and its serious and timeconsuming having critical impact on us in several projects.

Well here is the deal. If you have created some objects of a certain class, and you edit that class, then sometimes you will end up having your old objects of that class corrupted. This meaning that all the "old" attributes are gone when trying to edit, and in the db, when querying that contentobject, the only attributes connected is the new ones. The only solution we have had on this is to delete the old objects and create them again. And this is a major problem when we in one of these cases have over 3600 objects. I will send you a database-dump on this. In one of these sites we also use object-translation and it makes it even worse! There is also a problem with this when editing the user-class, my admin suddenly lost his name.

The dumps are coming your way Bård. Thanks!

regards,
claÜs

Adolfo Barragán

Friday 05 December 2003 11:09:30 pm

I observe a similar problem.

I have a class with many attributes, two of these attributes are object relations. If I create a class without relations, and later if I edit the class and add the object relations, some other attributes (price and date) are empty.

Claus Jensen

Friday 12 December 2003 1:10:28 am

hello ezsystems,
http://ez.no/developer/ez_publish_3/forum/general/problem_with_changing_attributes_of_a_class

please put some effort in this matter...

cheers,
claÜs

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

eZ debug

Timing: Jan 18 2025 16:24:02
Script start
Timing: Jan 18 2025 16:24:02
Module start 'layout'
Timing: Jan 18 2025 16:24:02
Module start 'content'
Timing: Jan 18 2025 16:24:02
Module end 'content'
Timing: Jan 18 2025 16:24:02
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0391152.6406
Module start 'layout' 0.00630.0035 740.679739.4609
Module start 'content' 0.00990.0055 780.140697.3203
Module end 'content' 0.01540.0019 877.460938.3047
Script end 0.0173  915.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.6864140.0002
Check MTime0.00116.5835140.0001
Mysql Total
Database connection0.00095.350510.0009
Mysqli_queries0.003319.061630.0011
Looping result0.00000.081310.0000
Template Total0.00158.610.0015
Template load0.00095.014410.0009
Template processing0.00063.547310.0006
Override
Cache load0.00063.494910.0006
General
dbfile0.00031.595280.0000
String conversion0.00000.066140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs