Jump to content

Help with this Error Notice: Trying to get property of non-object in


Recommended Posts

Hi I just enabled the error log in my presta And I get this error

 

 Notice: Trying to get property of non-object in C:\wamp\www\harm\cache\smarty\compile\bc96664e87485901a4154db091bd5c34313ef153.file.metromenu2-home.tpl.php on line 65 Call Stack # Time Memory Function Location 1 0.0013 255240 {main}( ) ..\index.php:0 2 0.3050 7198680 DispatcherCore->dispatch( ) ..\index.php:28 3 0.3268 7807760 ControllerCore->run( ) ..\Dispatcher.php:349 4 0.4487 11245680 IndexControllerCore->initContent( ) ..\Controller.php:167 5 0.4487 11245800 FrontControllerCore->initContent( ) ..\IndexController.php:37 6 6.6074 21831632 HookCore::exec( ) ..\FrontController.php:426 7 6.7265 23073176 metromenu2->hooktop( ) ..\Hook.php:423 8 6.7265 23073208 metromenu2->hookHome( ) ..\metromenu2.php:91 9 6.7265 23073464 ModuleCore->display( ) ..\metromenu2.php:119 10 6.7276 23078816 Smarty_Internal_TemplateBase->fetch( ) ..\Module.php:1621 11 7.3247 26137080 content_5317af6c930076_05906233( ) ..\smarty_internal_templatebase.php:180

 

 

Differents hooks I have in my Module file : 

function hooktop($params){		
		return $this->hookHome( $params);
	}
	
	
	function hookDisplaySlideshow($params){ 		
		return $this->hookHome( $params);
	}
	
	function hookDisplayPromoteTop($params){ 		
		return $this->hookHome( $params);
	}
	
	function hookDisplayBottom($params){ 		
		return $this->hookHome( $params);
	}
	
	function hookDisplayContentBottom($params){
		return $this->hookHome( $params);
	}
	
	function hookDisplayFootNav($params){ 		
		return $this->hookHome( $params);
	}
	
	public function hookHome($params)
	{
		 
		return $this->display(__FILE__, 'metromenu2-home.tpl');
	}
Link to comment
Share on other sites

×
×
  • Create New...