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.