Page 1 of 1
[Solved] Preview always showing default page only
Posted: Wed Oct 08, 2008 9:24 am
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
Re: Preview always showing default page only
Posted: Wed Oct 08, 2008 4:38 pm
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

Re: Preview always showing default page only
Posted: Wed Oct 08, 2008 6:19 pm
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);
}
??
Re: Preview always showing default page only
Posted: Wed Oct 08, 2008 7:43 pm
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
Re: Preview always showing default page only
Posted: Thu Oct 09, 2008 8:37 am
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
Re: Preview always showing default page only
Posted: Thu Oct 09, 2008 9:58 am
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
Re: Preview always showing default page only
Posted: Thu Oct 09, 2008 10:09 am
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