Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: justjim on May 15, 2009, 12:59:13 PM

Title: Post Preview not working
Post by: justjim on May 15, 2009, 12:59:13 PM
Post preview does not work. It says "fetching preview" but that's it.
I am using a custom theme Black Pheonix3, but have been for some time.

Do you have any suggestions on where I could start looking for the problem, and what to look for.

This is one of the 2 remaining problems after cleaning up from the recent code injection attack.

Thanks
Title: Re: Post Preview not working
Post by: Kermit on May 15, 2009, 02:06:48 PM
Does the same problem occur on default core theme ?
Title: Re: Post Preview not working
Post by: justjim on May 15, 2009, 03:59:36 PM
Thanks for your reply

Don't know?

I 'll try it on the default theme tonight and see, then get back to you.

The PM post preview works, just not the one on the boards. If that is any help

Title: Re: Post Preview not working
Post by: JimM on May 17, 2009, 09:11:43 PM
Take a look at this topic and use the file_check tool that is mentioned.

http://www.simplemachines.org/community/index.php?topic=294342.msg2048965#msg2048965
Title: Re: Post Preview not working
Post by: justjim on May 18, 2009, 10:29:09 AM
Thank you.

I used the tool suggested to find the errors.

I also Downloaded and used the Bablepad mentioned to find the blank spaces that were not obvious in NotePad.

Title: Re: Post Preview not working
Post by: JimM on May 18, 2009, 11:00:45 PM
Great, did that fix your issue?  If this is solved, please mark it solved by clicking the Mark Topic Solved link at the bottom left.
Title: Re: Post Preview not working
Post by: justjim on May 19, 2009, 08:51:58 AM
Quote from: JimM on May 18, 2009, 11:00:45 PM
Great, did that fix your issue?  If this is solved, please mark it solved by clicking the Mark Topic Solved link at the bottom left.
Sorry I wasn't clear in my previous post. Yes After finding and editing the files, it did sove the issue.

The link on the bottom right?

Thanks again
Title: Re: Post Preview not working
Post by: satman007 on May 26, 2009, 04:30:35 AM
Hi i am having the same PReview too...

I tried the File_Check.php file & it shows many  as below?

    *  /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/PrettyUrls.french.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/TreasuryHelp.english-utf8.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/PrettyUrls.english.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/TreasuryHelp.english.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/Modifications.french.php
          o File does not begin with <?php
          o File does not end with ?>


    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/languages/GlobalAnnouncementsAdmin.english.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/GlobalAnnouncements.template.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/GlobalAnnouncementsAdmin.template.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Themes/default/PrettyUrls.template.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/ssi_examples.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/index.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/GlobalAnnouncementsAdmin.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/PrettyUrls-Filters.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/GlobalAnnouncements.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/TreasuryUpdate.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/Subs-GlobalAnnouncementsAdmin.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/PrettyUrls.php
          o File does not end with ?>

    * /home/vol4/xyz.org/accountid/abc.xyz.com/htdocs/Sources/Subs-PrettyUrls.php
          o File does not end with ?>


what to do next? 
Should i add what it says is not there...without  taking any measure?
Thanks in advance



Title: Re: Post Preview not working
Post by: JimM on May 26, 2009, 09:51:49 PM
Yes and keep in mind that posting your issue in a topic that is marked solved will severely limit the number of members that will see your post.  It's always best to start a new topic with your issue fully described.
Title: Re: Post Preview not working
Post by: satman007 on May 27, 2009, 01:18:13 AM
i just looked that index.php and i see that ?> is do there but not at the end...actually i aded some html banner there...long back...
so what shd be done?

i mean i shd move that ?> to end and include that html banner code before it or
add another ?> i end

Thanks
Title: Re: Post Preview not working
Post by: satman007 on May 27, 2009, 11:46:19 AM
any way ..i edited all the files

and placed another ?> 2nd time in the end after that banner html code


now no file is shown by that php utility as having problems...but i cant still use preview function..whats wrong?
Title: Re: Post Preview not working
Post by: JimM on May 27, 2009, 03:38:10 PM
Each php file can only contain 1 ending marker ?>.  My recommendation would be to place the end marker ?> at the end of the file and remove the banner code to see if that is possibly causing some of the problem.
Title: Re: Post Preview not working
Post by: satman007 on May 28, 2009, 12:11:11 AM
i will try..any better way to put these html banners then?
Title: Re: Post Preview not working
Post by: JimM on May 28, 2009, 10:09:03 PM
There are lots of folks that use this mod http://custom.simplemachines.org/mods/index.php?mod=255 to place ads, banners, just about anything on their site.  You can also use the search for "adding banners" and will get a number of hits.