Post Preview not working

Started by justjim, May 15, 2009, 12:59:13 PM

Previous topic - Next topic

justjim

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

Kermit

Does the same problem occur on default core theme ?
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

justjim

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


JimM

Jim "JimM" Moore
Former Support Specialist

justjim

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.


JimM

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.
Jim "JimM" Moore
Former Support Specialist

justjim

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

satman007

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




JimM

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.
Jim "JimM" Moore
Former Support Specialist

satman007

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

satman007

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?

JimM

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.
Jim "JimM" Moore
Former Support Specialist

satman007

i will try..any better way to put these html banners then?

JimM

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.
Jim "JimM" Moore
Former Support Specialist

Advertisement: