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.