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!

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 31 2025 07:30:45
Script start
Timing: Jan 31 2025 07:30:45
Module start 'layout'
Timing: Jan 31 2025 07:30:45
Module start 'content'
Timing: Jan 31 2025 07:30:45
Module end 'content'
Timing: Jan 31 2025 07:30:45
Script end

Main resources:

Total runtime0.0137 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.0047 588.2344151.2109
Module start 'layout' 0.00470.0018 739.445336.6484
Module start 'content' 0.00640.0057 776.093894.2031
Module end 'content' 0.01220.0015 870.296937.9922
Script end 0.0137  908.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.5250140.0002
Check MTime0.00107.4609140.0001
Mysql Total
Database connection0.00075.080310.0007
Mysqli_queries0.001913.608330.0006
Looping result0.00000.072910.0000
Template Total0.00128.710.0012
Template load0.00096.194310.0009
Template processing0.00032.489810.0003
Override
Cache load0.00064.235310.0006
General
dbfile0.001813.410580.0002
String conversion0.00000.036440.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