[Solved] Preview Fatal Error

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
hardatwork
New Member
New Member
Posts: 3
Joined: Mon Mar 09, 2009 2:57 am

[Solved] Preview Fatal Error

Post by hardatwork »

Hi,

I've installed CMS made simple version 1.5.3 running on a CentOS 5 server with Apache 2.2.3 and PHP 5.1.6. All the function in the admin console seems to work fine, except the preview function. Whenever I edit any content page and click the Preview tab, I'll get an error similar to what is shown below:

<link rel="canonical" href="
Fatal error: Call to a member function GetURL() on a non-object in /var/www/html/cmsmadesimple/tmp/templates_c/%%AE^AEF^AEFC19DC%%preview%3AcmspreviewYXUCYu.php on line 14

I can submit after updating the content without any error and then view the updated content page. Just the "Preview" tab is not working.

What seems to be the problem with my installation?
Last edited by hardatwork on Tue Mar 10, 2009 2:57 am, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Preview Fatal Error

Post by Nullig »

Was this an upgrade? or a fresh install?

Try clearing the cache in Admin.

Nullig
hardatwork
New Member
New Member
Posts: 3
Joined: Mon Mar 09, 2009 2:57 am

Re: Preview Fatal Error

Post by hardatwork »

It's a fresh install. I did clear the cache as suggested, but I'm still getting the same message when I previewed any of the pages.
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: Preview Fatal Error

Post by stevew »

Same error here on a Linux server with php 5.2.8 and MySQL 5.0.67
hardatwork
New Member
New Member
Posts: 3
Joined: Mon Mar 09, 2009 2:57 am

Re: Preview Fatal Error

Post by hardatwork »

This is caused by the line in the default templates:

GetURL()}{/if}" />

I changed the above line to be

{if isset($canonical)}{elseif isset($content_obj)}GetURL()}" />{/if}

so that the GetURL is not executed and the canonical link is not written at all during preview.
soili

Re: [Solved] Preview Fatal Error

Post by soili »

Thanks, You are Genius, my menu bar works also now. I have cms simple made 1.6.1. The children menu bar did not work properly, but now it works good.
NashBridges
Forum Members
Forum Members
Posts: 75
Joined: Sun Jun 15, 2008 2:29 pm

Re: [Solved] Preview Fatal Error

Post by NashBridges »

seems to be an error in the 1.6.1 resp. 1.6.2 release...
i have the same problems after update, luckily it tried in an test environment frist :)

don't know if the solution above is working but i will wait for a bug fix...
Pierre M.

Re: [Solved] Preview Fatal Error

Post by Pierre M. »

Upgrade to 1.6.3 now.

Pierre M.
Post Reply

Return to “CMSMS Core”