Forums / Setup & design / Error in log-file. Where does it come from?

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.

eZ debug

Timing: Jan 18 2025 22:32:12
Script start
Timing: Jan 18 2025 22:32:12
Module start 'content'
Timing: Jan 18 2025 22:32:12
Module end 'content'
Timing: Jan 18 2025 22:32:13
Script end

Main resources:

Total runtime0.1644 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 587.8438180.8125
Module start 'content' 0.00660.0050 768.656394.0547
Module end 'content' 0.01160.1524 862.7109522.2500
Script end 0.1640  1,384.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00311.8918200.0002
Check MTime0.00130.7664200.0001
Mysql Total
Database connection0.00070.445910.0007
Mysqli_queries0.115570.25871410.0008
Looping result0.00140.86121390.0000
Template Total0.152092.510.1520
Template load0.00090.568910.0009
Template processing0.151191.927210.1511
Override
Cache load0.00050.318310.0005
Sytem overhead
Fetch class attribute can translate value0.00080.468610.0008
XML
Image XML parsing0.00030.209910.0003
General
dbfile0.00332.0065200.0002
String conversion0.00000.005730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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