• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: [Solved] Preview always showing default page only
PostPosted: Wed Oct 08, 2008 9:24 am 
Offline
Forum Members
Forum Members

Joined: Wed Oct 01, 2008 8:42 am
Posts: 26
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.

Top
 Profile  
 
 Post subject: Re: Preview always showing default page only
PostPosted: Wed Oct 08, 2008 4:38 pm 
Offline
Forum Members
Forum Members

Joined: Wed Oct 01, 2008 8:42 am
Posts: 26
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  :-\

???


Top
 Profile  
 
 Post subject: Re: Preview always showing default page only
PostPosted: Wed Oct 08, 2008 6:19 pm 
Offline
Forum Members
Forum Members

Joined: Wed Oct 01, 2008 8:42 am
Posts: 26
Could the problem be due to the fact that I change the following lines in editcontent.php

Code:
      $tmpfname = createtmpfname($contentobj);
   ?>

<?php

}


to:

Code:
      $tmpfname = createtmpfname($contentobj);

}

??


Top
 Profile  
 
 Post subject: Re: Preview always showing default page only
PostPosted: Wed Oct 08, 2008 7:43 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4820
Location: Ferrara, Italy
simon_a wrote:
Could the problem be due to the fact that I change the following lines in editcontent.php

Code:
      $tmpfname = createtmpfname($contentobj);
   ?>

<?php

}


to:

Code:
      $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

_________________
CMSMS Support Team
Italian Admin and Moderator

Plugins: Geolocate hostip, Multiple random image, Image rotator (beta), Content Pagination
Modules: ForumMadeSimple (Howto), TranslationManager
Multilingual: MLE is not CMSMS


Top
 Profile  
 
 Post subject: Re: Preview always showing default page only
PostPosted: Thu Oct 09, 2008 8:37 am 
Offline
Forum Members
Forum Members

Joined: Wed Oct 01, 2008 8:42 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: Preview always showing default page only
PostPosted: Thu Oct 09, 2008 9:58 am 
Offline
Forum Members
Forum Members

Joined: Wed Oct 01, 2008 8:42 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: Preview always showing default page only
PostPosted: Thu Oct 09, 2008 10:09 am 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4820
Location: Ferrara, Italy
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

_________________
CMSMS Support Team
Italian Admin and Moderator

Plugins: Geolocate hostip, Multiple random image, Image rotator (beta), Content Pagination
Modules: ForumMadeSimple (Howto), TranslationManager
Multilingual: MLE is not CMSMS


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner