Page 1 of 1

Everything going fine, then BOOM!

Posted: Tue Sep 12, 2006 5:43 pm
by goldhilwebmaster
Greetings,

I'm building a site using 0.13, and all was going well, until after submitting a page as normal, I received the following error in the admin when attempting to access the "Pages" tab:

Fatal error: Call to a member function getLevel() on a non-object in /home/goldhil/public_html/cmsmadesimple/lib/classes/class.content.inc.php on line 2139

Problem seems to be in a file called "admin/listcontent.php," so perhaps I can simply obtain and copy a fresh version of this file to the admin directory and be back in business?

I'm kinda on deadline here, so any help you can provide would be ever so welcome.

Thanks,

Lawrence Ullman
http://209.51.149.250/~goldhil/cmsmades ... x.php/home

Re: Everything going fine, then BOOM!

Posted: Tue Sep 12, 2006 5:50 pm
by Dr.CSS
You should be able to upload it from the folder on your PC that was made when you unzipped the CMSMS file.

Re: Everything going fine, then BOOM!

Posted: Tue Sep 12, 2006 6:00 pm
by goldhilwebmaster
Okay, I uploaded fresh copies of /lib/classes/class.content.inc.php and /admin/listcontent.php, but still getting same error message:

Fatal error: Call to a member function getLevel() on a non-object in /home/goldhil/public_html/cmsmadesimple/lib/classes/class.content.inc.php on line 2139

It seems I have to fix the code in the above file, but how? I'm not a programmer, but know enough to be dangerous, if you can tell me what to fix.

Might upgrading to Version 1.0 help, or just make things worse?

Thanks!

Lawrence Ullman

Re: Everything going fine, then BOOM! [Fixed it!]

Posted: Tue Sep 12, 2006 6:16 pm
by goldhilwebmaster
Okay, I searched the forum here and found the fix, which involves nulling out the collapse parameter in the SQL table "cms_userprefs." Dodged the bullet for now . . .  Hope there are no more surprises in store! :o

Re: Everything going fine, then BOOM!

Posted: Tue Sep 19, 2006 7:43 pm
by wfunderberg
Wow, funny..i am just clickining on the up down arrows and the same thing happened to me....  ??? >:(