Preview Content not working after install

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
cerebus180
Forum Members
Forum Members
Posts: 10
Joined: Tue Mar 31, 2009 3:33 pm

Preview Content not working after install

Post 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
alby

Re: Preview Content not working after install

Post by alby »

cerebus180 wrote: After installing, the preview function in Content->Pages displays the following error msg:
Will be correct with next release

Alby
WebGirl

Re: Preview Content not working after install

Post 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!
Post Reply

Return to “CMSMS Core”