Page 1 of 1

[Solved] Preview Fatal Error

Posted: Mon Mar 09, 2009 3:15 am
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?

Re: Preview Fatal Error

Posted: Mon Mar 09, 2009 3:52 am
by Nullig
Was this an upgrade? or a fresh install?

Try clearing the cache in Admin.

Nullig

Re: Preview Fatal Error

Posted: Mon Mar 09, 2009 2:09 pm
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.

Re: Preview Fatal Error

Posted: Mon Mar 09, 2009 6:43 pm
by stevew
Same error here on a Linux server with php 5.2.8 and MySQL 5.0.67

Re: Preview Fatal Error

Posted: Tue Mar 10, 2009 2:56 am
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.

Re: [Solved] Preview Fatal Error

Posted: Thu Jul 30, 2009 4:13 pm
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.

Re: [Solved] Preview Fatal Error

Posted: Fri Jul 31, 2009 1:44 pm
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...

Re: [Solved] Preview Fatal Error

Posted: Wed Aug 05, 2009 4:59 pm
by Pierre M.
Upgrade to 1.6.3 now.

Pierre M.