Forums / Install & configuration / I've got an unknown error

I've got an unknown error

Author Message

Børge Warvik

Thursday 28 September 2006 2:16:07 am

The error message I get when trying to create or edit an node with datatypes of type objectrelationlist.

This is the error:

Error: eZTemplate @ design/standard/templates/content/datatype/edit/ezobjectrelationlist.tpl:2[0]  	Sep 28 2006 11:14:26

Cannot retrieve attribute of a boolean

Any ideas what causes this?

Kristof Coomans

Thursday 28 September 2006 3:03:04 am

Hi Borge

There's probably some code in the template like this:

$somevar.someattribute

while $somevar is a boolean (but it has to be an object or array).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Børge Warvik

Thursday 28 September 2006 3:21:09 am

Hi, thanks for answering!

These are the first lines of thetemplate:


{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{let class_content=$attribute.class_content
     class_list=fetch( class, list, hash( class_filter, $class_content.class_constraint_list ) )
     can_create=true()
     new_object_initial_node_placement=false()
     browse_object_start_node=$attribute.class_content.default_placement.node_id}

I'm not sure what to variable is causing this. Do you have any idea?

Kristof Coomans

Thursday 28 September 2006 3:27:19 am

Do you see the attribute input fields correctly?

Did you override edit.tpl or edit_attribute.tpl for the specific content class? Or do you get the errors with all classes?

Try to put {$attribute|get_type} before the first line. What's the result?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Børge Warvik

Thursday 28 September 2006 3:34:11 am

I'm getting this:

object[ezcontentobjectattribute]

Børge Warvik

Thursday 28 September 2006 3:39:55 am

Strange this is that everything seems to be working just fine?!?

I can add and remove object (nodes) from that list as before this error occured!