Page 1 of 1

fatal erroe : sems like php or permission problem

Posted: Wed Dec 28, 2005 9:51 pm
by akronim
hi there
i get this error when try to using ellnav module
averything else seems to go right but...
{nocache:7594236932d156fe14392818ae5edccc#1}
Fatal error: Call to a member function on a non-object in /srv/www/htdocs/******/modules/EllNav/EllNav.module.php on line 218
seems like a php problem or permission problem
all temp-cache directory are chmod 777
i'v version 0.11.2
PHP Version 4.3.3

any idea?

Re: fatal erroe : sems like php or permission problem

Posted: Thu Dec 29, 2005 6:27 am
by sjg
This doesn't look like a permissions problem.

It's in the line where the menu tries to find where the current page fits in the Hierarchy.

It's not generating that error for me. Have you tried clearing your cache (admin > site admin > global settings > clear cache) ?

Re: fatal erroe : sems like php or permission problem

Posted: Thu Dec 29, 2005 2:36 pm
by akronim
yes i've tryed
but it is shown even in the default install
an only in ellNav

???

Re: fatal erroe : sems like php or permission problem

Posted: Fri Dec 30, 2005 2:13 am
by badhoy
FWIW I get a similar error and haven't been able to figure it out.

Re: fatal erroe : sems like php or permission problem

Posted: Fri Dec 30, 2005 4:24 am
by sjg
OK. Sounds like a consistent problem. I'll have to set up a fresh install and see if I can track the problem down there.

Re: fatal erroe : sems like php or permission problem

Posted: Fri Dec 30, 2005 4:33 am
by badhoy
Just tested again and had exact same error.  Getting it on 3 sites.

Re: fatal erroe : sems like php or permission problem

Posted: Fri Dec 30, 2005 6:22 am
by sjg
OK. Found it. It's actually a bug in PHP 4.3.3. But it's not hard to work around...

You'll have to edit CMS_ROOT/modules/EllNav/EllNav.module.php

At line 165, insert the following:

Code: Select all

global $gCms;
Then, at line 213 (which used to be line 212), replace

Code: Select all

            $curPageID = $this->cms->variables['content_id'];
with

Code: Select all

            $curPageID = $gCms->variables['content_id'];
That should make it work. I've tested this under later versions of PHP, and it still works there after the fix, so I'll merge the change into svn.

Take it easy,
___Samuel___

Re: fatal erroe : sems like php or permission problem

Posted: Fri Dec 30, 2005 8:46 am
by Dana
Thank you, thank you...... that was the error!!!!!!

Re: fatal erroe : sems like php or permission problem

Posted: Fri Dec 30, 2005 12:44 pm
by akronim
yes  you're a genius!!!
it is fixed
tnx a lot
;) ;)

Re: fatal erroe : sems like php or permission problem

Posted: Tue Jan 10, 2006 11:32 am
by jcbroad
Thanks for the fix, spent a while tring to suss this one out with no resolve!

Re: fatal erroe : sems like php or permission problem

Posted: Tue Jan 17, 2006 5:29 pm
by vKevin
Got the same problem, this solved it for me  ;D thank you very much!  :-*

Re: fatal erroe : sems like php or permission problem

Posted: Tue Sep 05, 2006 8:45 pm
by martin1660
With your description I was able to solve the problem with ellnav, first...

But if i try to make a new template with an existing or new code i get an error message
like this
{nocache:d0c7235777f772d5db28b036d33e6849#0} Fatal error: Call to a member function on a non-object in .../public_html/cms/modules/EllNav/EllNav.module.php on line 219

So I can use only the existing, original templates but no new ones.
Does anyone know a solution for this problem?