[SOLVED] New user. Fatal Error question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
yardbird
New Member
New Member
Posts: 4
Joined: Sun Jul 26, 2009 4:46 pm

[SOLVED] New user. Fatal Error question

Post by yardbird »

CMSMS version 1.6.1
PHP 5.2.8
MySQL 5.0.77

I may have caused this error but can't seem to recover from it.
It affects one page.

This is a default 1.6.1 installation with sample data that was working perfectly before I started experimenting.

I deactivated the default sample pages while adding pages of my own. Trying to reactivate some of them was difficult and on one page I now get this error:

Fatal error: Call to a member function Id() on a non-object in /home/cmstesty/public_html/plugins/function.cms_selflink.php on line 85

and the entire page shows up with no styling at all. Not "Minimal style" ... I mean... NO style.

I'm really considering switching some sites over to CMSMS, but I'd like to try and figure out what I broke first. :)

Thanks,

yardbird
Last edited by yardbird on Wed Jul 29, 2009 1:28 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: New user. Fatal Error question

Post by Dr.CSS »

You might want to try clearing the site cache as it may be trying to pull something from it that no longer exist...

Site admin > global settings advanced tab...
yardbird
New Member
New Member
Posts: 4
Joined: Sun Jul 26, 2009 4:46 pm

Re: New user. Fatal Error question

Post by yardbird »

OK, clearing the cache did not solve the problem.

I have, however, managed to get that page back to normal.
the page was "Default Templates Explained" which is ranked (in order) as 3 in the list of pages.

I had previously deactivated all pages in that group (3, 3.1, 3.2, 3.3 and so on...)

I later reactivated 3, 3.2, 3.3, 3.4 (I skipped 3.1)

I can make it repeat this behavior by deactivating all pages in group 4 and then activating just Default Extensions page which is the page ranked as 4 (leaving 4.1 and 4.2 deactivated)

I have also discovered that if I then set 4.1 and 4.2 to parent = none, that 4 returns to normal.

In other words, it appears that a page with children can not be active if it's CHILDREN are deactivated and quite possibly there is some hierarchy involved but I really don't need to investigate this further. It seems sufficient for now to know that if I deactivate a child page, I must set its parent to none to avoid issues.

Is this expected behavior? As I said, I'm new to CMSMS and wasn't sure what rules it follows in the page hierarchy.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: New user. Fatal Error question

Post by Dr.CSS »

Thanks, that is a much better explanation of steps to take to replicate, will test and get back to you...

BTW. what browser aer you using?...
yardbird
New Member
New Member
Posts: 4
Joined: Sun Jul 26, 2009 4:46 pm

Re: New user. Fatal Error question

Post by yardbird »

Dr. CSS wrote: Thanks, that is a much better explanation of steps to take to replicate, will test and get back to you...

BTW. what browser aer you using?...
At home I use Firefox on linux OS.
At work I use both Firefox and IE7 on WindowsXP.

The error appears to cross-browser (not browser specific) as I have repeated it on firefox-linux, firefox-windows, ie7-windows.

VERY simple replication:
default install
in admin, go to Content -> Pages
Deactivate 3.1 only (check turns into red "X")
Got to Home page of site, click on "Default Templates Explained"

Error manifests on all browsers tested

Go back to admin -> Content -> Pages
Can not reactivate 3.1 by clicking on red "X" so we go to regular page edit -> Options, and select "Active"

Error goes away.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: New user. Fatal Error question

Post by Dr.CSS »

Seems it comes from the parent page having a selflink call to the next page in the content...

{cms_selflink page='cmsms_tags' text='CMSMS tags in the templates'}

If you just make it like so, it gives no error...

{cms_selflink page='' text='CMSMS tags in the templates'}

Fix should be out soon, in the mean time just make sure your not linking to an inactive page anywhere...
yardbird
New Member
New Member
Posts: 4
Joined: Sun Jul 26, 2009 4:46 pm

[SOLVED] Re: New user. Fatal Error question

Post by yardbird »

OK... thanks. I think I'm ready to take down my own personal web site and make it a CMSMS site. Will probably use default templates at first, but that's fine for now. :)

Thanks for the help. It is appreciated
Pierre M.

Re: [SOLVED] Re: New user. Fatal Error question

Post by Pierre M. »

yardbird wrote: Thanks for the help. It is appreciated
Thank you for reporting so nicely (which makes it straight to reproduce the issue and spot the problem).
Have fun with CMSms

Pierre M.
Post Reply

Return to “CMSMS Core”