New datatype fatal error

Author Message

Lo' F.

Sunday 01 May 2011 5:53:08 am

Guys, please help!

I was trying to create a new datatype, let's call it ezobjparent, which had to simply return the parent object name of the current object.

The think went smoothly up till I had it appear in the list of available attributes.

I added the new attribute in the content class and saved it.

The new created attribute needed of course some adjustments, but after I made some changes to the ezobjparenttype.php and its templates, and then reloaded the extension autoload, the datatype went off the list and not only... I can't remove the added attribute from the class and any of the actions I make to that class returns a fatal error:

Fatal error: Call to a member function isClassAttributeRemovable() on a non-object

Well I guess I am in a bad situation...

What can you suggest I can do to clean the mess up?

Please, help me!

loredanaebook.it

Lo' F.

Thursday 05 May 2011 7:49:44 am

Since I don't see how to easily remove this attribute/datatype from inside the class or the class itself, I moved the sibling classes to a new class group folder and deleted the class group folder containing just the class with this corrupt attribute. At least it doesn't appear among the list of available classes while creating a new object but, even though the group has been deleted that class lingers so...

..was wondering if it's there a way I can remove this class from the script? Does it exist somewhere within the ez folders?

Thanks

loredanaebook.it

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 04:10:19
Script start
Timing: Jan 18 2025 04:10:19
Module start 'layout'
Timing: Jan 18 2025 04:10:19
Module start 'content'
Timing: Jan 18 2025 04:10:20
Module end 'content'
Timing: Jan 18 2025 04:10:20
Script end

Main resources:

Total runtime0.7884 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.0313152.6250
Module start 'layout' 0.00690.0044 741.656339.4531
Module start 'content' 0.01130.7757 781.1094488.2031
Module end 'content' 0.78700.0013 1,269.31258.1641
Script end 0.7883  1,277.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4538160.0002
Check MTime0.00160.2053160.0001
Mysql Total
Database connection0.00080.107310.0008
Mysqli_queries0.738593.6694520.0142
Looping result0.00050.0575500.0000
Template Total0.752995.520.3765
Template load0.00220.284820.0011
Template processing0.750795.219320.3753
Template load and register function0.00010.012210.0001
states
state_id_array0.00100.125610.0010
state_identifier_array0.00060.080320.0003
Override
Cache load0.00190.2397190.0001
Sytem overhead
Fetch class attribute can translate value0.00100.127710.0010
Fetch class attribute name0.00140.175730.0005
XML
Image XML parsing0.00060.077610.0006
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00080.1032160.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs