Forums / Install & configuration / kernel/common/eztreemenuoperator.php on line 180

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}

eZ debug

Timing: Jan 18 2025 19:26:12
Script start
Timing: Jan 18 2025 19:26:12
Module start 'content'
Timing: Jan 18 2025 19:26:13
Module end 'content'
Timing: Jan 18 2025 19:26:13
Script end

Main resources:

Total runtime1.2419 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 589.0938180.8047
Module start 'content' 0.00921.0930 769.8984540.5391
Module end 'content' 1.10220.1396 1,310.4375338.0703
Script end 1.2418  1,648.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3387210.0002
Check MTime0.00160.1296210.0001
Mysql Total
Database connection0.00180.143910.0018
Mysqli_queries1.171494.32432020.0058
Looping result0.00190.15442000.0000
Template Total1.202196.820.6010
Template load0.00210.170420.0011
Template processing1.199996.624220.6000
Template load and register function0.00010.010410.0001
states
state_id_array0.00100.078610.0010
state_identifier_array0.00100.079120.0005
Override
Cache load0.00180.1479340.0001
Sytem overhead
Fetch class attribute can translate value0.00120.097040.0003
Fetch class attribute name0.00100.077950.0002
XML
Image XML parsing0.00060.047740.0001
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00200.1594210.0001
String conversion0.00000.000430.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs