fatal erroe : sems like php or permission problem

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
akronim

fatal erroe : sems like php or permission problem

Post 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?
Last edited by akronim on Thu Dec 29, 2005 1:21 am, edited 1 time in total.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

Re: fatal erroe : sems like php or permission problem

Post 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) ?
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
akronim

Re: fatal erroe : sems like php or permission problem

Post by akronim »

yes i've tryed
but it is shown even in the default install
an only in ellNav

???
badhoy

Re: fatal erroe : sems like php or permission problem

Post by badhoy »

FWIW I get a similar error and haven't been able to figure it out.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

Re: fatal erroe : sems like php or permission problem

Post 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.
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
badhoy

Re: fatal erroe : sems like php or permission problem

Post by badhoy »

Just tested again and had exact same error.  Getting it on 3 sites.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

Re: fatal erroe : sems like php or permission problem

Post 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___
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
Dana
Forum Members
Forum Members
Posts: 41
Joined: Tue Jul 26, 2005 8:46 am

Re: fatal erroe : sems like php or permission problem

Post by Dana »

Thank you, thank you...... that was the error!!!!!!
akronim

Re: fatal erroe : sems like php or permission problem

Post by akronim »

yes  you're a genius!!!
it is fixed
tnx a lot
;) ;)
jcbroad

Re: fatal erroe : sems like php or permission problem

Post by jcbroad »

Thanks for the fix, spent a while tring to suss this one out with no resolve!
vKevin

Re: fatal erroe : sems like php or permission problem

Post by vKevin »

Got the same problem, this solved it for me  ;D thank you very much!  :-*
martin1660
Forum Members
Forum Members
Posts: 42
Joined: Tue Jan 17, 2006 2:47 pm

Re: fatal erroe : sems like php or permission problem

Post 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?
Locked

Return to “[locked] Installation, Setup and Upgrade”