Page 1 of 1

Preview Content not working after install

Posted: Tue Mar 31, 2009 3:59 pm
by cerebus180
Hi,

After installing, the preview function in Content->Pages displays the following error msg:

Fatal error: Call to a member function GetURL() on a non-object in C:\wamp\apps\cmsmadesimple\tmp\templates_c\%%2B^2B8^2B8175A3%%preview%3AcmsE7.tmp.php on line 14

I tried clearing the cache in the admin settings, but the error persists.

Has anybody experienced this?

I'm using cmsmadesimple 1.5.3, on wamp 2.0g-1, windows 2003 server enterprise sp2.

Much thanks,

Jim

Re: Preview Content not working after install

Posted: Tue Mar 31, 2009 4:14 pm
by alby
cerebus180 wrote: After installing, the preview function in Content->Pages displays the following error msg:
Will be correct with next release

Alby

Re: Preview Content not working after install

Posted: Wed May 13, 2009 9:01 am
by WebGirl
I checked my Error Logs when I got hundreds of Fatal Errors, and have been scouring the forums.

I just came across this:

http://forum.cmsmadesimple.org/index.ph ... #msg149871
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.
I've just updated my template, and will see if that helps - fingers' crossed!