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?
[Solved] Preview Fatal Error
-
- New Member
- Posts: 3
- Joined: Mon Mar 09, 2009 2:57 am
[Solved] Preview Fatal Error
Last edited by hardatwork on Tue Mar 10, 2009 2:57 am, edited 1 time in total.
Re: Preview Fatal Error
Was this an upgrade? or a fresh install?
Try clearing the cache in Admin.
Nullig
Try clearing the cache in Admin.
Nullig
-
- New Member
- Posts: 3
- Joined: Mon Mar 09, 2009 2:57 am
Re: Preview Fatal Error
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
Same error here on a Linux server with php 5.2.8 and MySQL 5.0.67
-
- New Member
- Posts: 3
- Joined: Mon Mar 09, 2009 2:57 am
Re: Preview Fatal Error
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.
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
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.
-
- Forum Members
- Posts: 75
- Joined: Sun Jun 15, 2008 2:29 pm
Re: [Solved] Preview Fatal Error
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...
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...