kernel/common/eztreemenuoperator.php on line 180

Author Message

Brygida Walczak

Monday 14 February 2005 2:16:25 pm

Hello,
Could someone help me with this install problem?

When executing
http://www.victimology.be/portail/ezpublish/index.php

I am receiving this message:

Fatal error: Call to a member function on a non-object in /home/victimol/public_html/portail/ezpublish/kernel/common/eztreemenuoperator.php on line 180
Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

General server information

Server name smarty
Apache version 1.3.33 (Unix)
PHP version 4.3.10
PERL version 5.8.4

Thank in advance you for any advice,
Brygida

Erling Owe

Monday 28 February 2005 3:14:28 am

I get the same error on several different installs of eZ publish. Does that mean that this is coused by some wrong ini-settings on my site? In that case, what exactly is cousing this?

Simon Phillips

Monday 28 February 2005 6:07:12 am

When I've had this problem, it's been caused by an error in the parameters you pass to the treemenu template function.

The problem I had was that while previously it was possible to specify that you didn't want to filter on content classes by passing false() as the relevant parameter, the new release of ezPublish fails on this (with the above error).

The only solution I found was to sepcify each template class I wanted to include - ie pass array('article', 'folder',...) etc instead of false() for the content filter parameter.

Hope that helps.
Simon

Erling Owe

Monday 28 February 2005 6:58:56 am

I'm quite new to eZ publish, so I didn't really understand all that. Could you explain it a little more newbie-like, you know, step by step. Thanks.

Erling Owe

Monday 28 February 2005 7:03:00 am

Btw., this is how my menu is built up:

topmenu.tpl

{* Set your top category here *}
{let top_cat=2

      used_node=false()}

{* See if we have already a node id otherwise use the top category as current node *}
{section show=is_set($DesignKeys:used.node)}
        {set used_node=$DesignKeys:used.node}
{section-else}
        {set used_node=$top_cat}
{/section}

{* Get a proper node object *}
{let node_obj=fetch(content,node,hash(node_id,$used_node))}

{section loop=fetch(content,list,hash(parent_node_id,$top_cat, class_filter_type, "include", class_filter_array, array(1),sort_by,array(array(priority))))}
  {section show=$node_obj.path_array|contains($:item.node_id)}
    <a href={$:item.url_alias|upcase|ezurl}><img src="{concat("http://krfu.no/",$:item.object.data_map.aktiv_folder.content[small].full_path)}" border="0" /></a>
  {section-else}
    <a href={$:item.url_alias|upcase|ezurl}><img src="{concat("http://krfu.no/",$:item.object.data_map.inaktiv_folder.content[small].full_path)}" border="0" /></a>
  {/section}
{/section}

{/let}
{/let}

submenu.tpl

{let menulevel2=treemenu($module_result.path, $module_result.node_id,array('folder', 'statisk_artikkel'),1,2)}
{section name=Menu2 loop=$menulevel2}
	{section show=$Menu2:item.is_selected}
		<a href={$Menu2:item.url_alias|ezurl} class="menu"><b>{$Menu2:item.text|wash}</b></a>
	{section-else}
		<a href={$Menu2:item.url_alias|ezurl} class="menu">{$Menu2:item.text|wash}</a>
	{/section}
{delimiter}&nbsp;&nbsp;&nbsp;{/delimiter}
{/section}
{/let}

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 06:13:48
Script start
Timing: Jan 31 2025 06:13:48
Module start 'layout'
Timing: Jan 31 2025 06:13:48
Module start 'content'
Timing: Jan 31 2025 06:13:48
Module end 'content'
Timing: Jan 31 2025 06:13:48
Script end

Main resources:

Total runtime0.6993 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.3828151.2422
Module start 'layout' 0.00440.0015 739.625036.7109
Module start 'content' 0.00590.6925 776.3359958.6641
Module end 'content' 0.69840.0009 1,735.000011.7969
Script end 0.6993  1,746.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4393160.0002
Check MTime0.00120.1749160.0001
Mysql Total
Database connection0.00060.080110.0006
Mysqli_queries0.646292.3991650.0099
Looping result0.00050.0775630.0000
Template Total0.670995.920.3355
Template load0.00170.249120.0009
Template processing0.669295.685020.3346
Template load and register function0.00170.242710.0017
states
state_id_array0.00120.178010.0012
state_identifier_array0.00130.191920.0007
Override
Cache load0.00150.2101340.0000
Sytem overhead
Fetch class attribute can translate value0.00050.074830.0002
Fetch class attribute name0.00200.293050.0004
XML
Image XML parsing0.00030.036930.0001
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00200.2890100.0002
String conversion0.00000.000840.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs