[Solved] Preview always showing default page only

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
simon_a
Forum Members
Forum Members
Posts: 26
Joined: Wed Oct 01, 2008 8:42 am

[Solved] Preview always showing default page only

Post by simon_a »

Hi,

I'm using MLE 1.4.1 on PHP 4.7.

Basically, the problem is that the preview pane for editing content always displays the home (default) page, no matter what page I'm editing.

I checked the $tmpfname variable in /admin/editcontent.php, and it seems to hold the value for the file being created in /tmp/cache/. So at the very least, some sort of preview is being generated, but just not the correct page.

Any ideas much appreciated :)
Simon
Last edited by simon_a on Thu Oct 09, 2008 9:58 am, edited 1 time in total.
simon_a
Forum Members
Forum Members
Posts: 26
Joined: Wed Oct 01, 2008 8:42 am

Re: Preview always showing default page only

Post by simon_a »

I thought I had solved this, that the problem was messed up file version.

But.. after I fixed some files that I had messed up, the problem is still there  :-\

???
simon_a
Forum Members
Forum Members
Posts: 26
Joined: Wed Oct 01, 2008 8:42 am

Re: Preview always showing default page only

Post by simon_a »

Could the problem be due to the fact that I change the following lines in editcontent.php

Code: Select all

		$tmpfname = createtmpfname($contentobj);
	?>

<?php

}
to:

Code: Select all

		$tmpfname = createtmpfname($contentobj);

}
??
alby

Re: Preview always showing default page only

Post by alby »

simon_a wrote: Could the problem be due to the fact that I change the following lines in editcontent.php

Code: Select all

		$tmpfname = createtmpfname($contentobj);
	?>

<?php

}
to:

Code: Select all

		$tmpfname = createtmpfname($contentobj);

}
??
Maybe but I don't think
I have tested with SVN version and works well
If other confirm this I can check for problem in 1.4.1 ....

Alby
simon_a
Forum Members
Forum Members
Posts: 26
Joined: Wed Oct 01, 2008 8:42 am

Re: Preview always showing default page only

Post by simon_a »

Hi Alby,

thanks as always.  I did a re-install last night with fresh files, and applied my code changes bit by bit, and the preview is now working. I have no idea what might have gone wrong!

Simon
simon_a
Forum Members
Forum Members
Posts: 26
Joined: Wed Oct 01, 2008 8:42 am

Re: Preview always showing default page only

Post by simon_a »

Solved!

Well, I found what was causing it for me, anyway. It was the redirect_lang tag. When I created it and placed the redirect tagin my template, the problem started again. So no I've just taken away the redirect tag and it works again.

Simon
alby

Re: Preview always showing default page only

Post by alby »

simon_a wrote: Well, I found what was causing it for me, anyway. It was the redirect_lang tag. When I created it and placed the redirect tagin my template, the problem started again. So no I've just taken away the redirect tag and it works again.
Good.
redirect_lang don't work from 1.2.5
I think to release a new version 1.4.1-2 with this bugfix and renew admin interface for look close to 2.0

Alby
Locked

Return to “[locked] CMSMS MLE fork”