Error in log-file. Where does it come from?

Author Message

Maarten Daniels

Monday 09 March 2009 3:03:34 pm

Hi,

I'm (still) using 3.8.3 and regularly I'm getting this error?

 Mar 09 2009 17:08:05 ] [86.83.252.211] eZTemplate:eZTemplateCompiler:
PHP variable $show['enable_comments'] does not exist, cannot fetch the value.
[ Mar 09 2009 17:08:05 ] [86.83.252.211] eZTemplate:eZTemplateCompiler:
PHP variable $show is not an object, cannot fetch content()

Is this a bug or is it something in my settings?

Jean-Yves Zinsou

Tuesday 10 March 2009 1:43:37 am

Hi there,

seems like log with template coding origin.

As if $show variable was declared but not set, and you was trying to get the 'enable_comments' key of an empty array.
As if

{def $show=""}
{def $show =hash('enable comment', yes, 'other thing', 'no')}
enable comment : {show['enable comment']}

was turned into


enable comment : {show['enable comment']}

Try to check out which template is used when having this error and/or make a grep on your templates directory to see where $show is used

Hope this helps,

Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Maarten Daniels

Tuesday 10 March 2009 3:36:02 am

Hi Jey,

Thanks! I've found the error in my template.

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 19 2025 01:09:41
Script start
Timing: Jan 19 2025 01:09:41
Module start 'layout'
Timing: Jan 19 2025 01:09:41
Module start 'content'
Timing: Jan 19 2025 01:09:42
Module end 'content'
Timing: Jan 19 2025 01:09:42
Script end

Main resources:

Total runtime0.9893 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 589.2891152.6406
Module start 'layout' 0.00800.0036 741.929739.4766
Module start 'content' 0.01160.9762 781.4063539.1094
Module end 'content' 0.98780.0015 1,320.515612.1250
Script end 0.9893  1,332.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3463160.0002
Check MTime0.00130.1354160.0001
Mysql Total
Database connection0.00130.132210.0013
Mysqli_queries0.933594.3553570.0164
Looping result0.00060.0586550.0000
Template Total0.954796.520.4774
Template load0.00220.225220.0011
Template processing0.952596.274620.4762
Template load and register function0.00010.008910.0001
states
state_id_array0.00100.099710.0010
state_identifier_array0.00080.078720.0004
Override
Cache load0.00180.1794240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.059020.0003
Fetch class attribute name0.00140.137050.0003
XML
Image XML parsing0.00110.108320.0005
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00110.1133220.0001
String conversion0.00000.001340.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs