Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: MortenMacFly on October 14, 2014, 07:21:53 AM

Title: Bug with preview function after 1.1.20 Security Patch
Post by: MortenMacFly on October 14, 2014, 07:21:53 AM
Hi there,
after installing the security update for 1.1.20 the preview function of the forum is not working anymore. I see:

Preview post
Fetching preview...

...and nothing happens. I've seen this bug being reported for earlier versions but none of the solutions worked for me. Additionally I've no access to the PHP files to modify them, all I can do is installing/updating packages on this forum..

Any idea whats going on and how I could resolve this is appreciated.
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: kat on October 14, 2014, 07:27:56 AM
http://www.simplemachines.org/community/index.php?topic=528614.msg3751749#msg3751749

Welcome to the forum, too. :)
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: Kindred on October 14, 2014, 08:31:51 AM
however, you WILL need to edit the php file to correct the issue.

How can you be running a site without access to the files?
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: Illori on October 14, 2014, 09:03:13 AM
Quote from: Kindred on October 14, 2014, 08:31:51 AM
How can you be running a site without access to the files?

Be admin but not the forum owner.
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: MortenMacFly on October 16, 2014, 02:41:19 AM
Quote from: Kindred on October 14, 2014, 08:31:51 AM
however, you WILL need to edit the php file to correct the issue.
Sorry, no chance atm. The forum owner is not available for some time.

Quote from: Kindred on October 14, 2014, 08:31:51 AM
How can you be running a site without access to the files?
Quote from: Illori on October 14, 2014, 09:03:13 AM
Be admin but not the forum owner.
True... so true... :-(

Sot it look I have no chance for a fix???
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: kat on October 16, 2014, 05:49:42 AM
Quote from: K@ on October 14, 2014, 07:27:56 AM
http://www.simplemachines.org/community/index.php?topic=528614.msg3751749#msg3751749
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: Kindred on October 16, 2014, 06:31:56 AM
k@... you posted that already... and the user said that he can't edit the php file....

so, MortenMacFly, there may eventually be a 1.1.21 fix since we introduced an error... but not soon
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: kat on October 16, 2014, 06:38:17 AM
Well, he CAN, if you think about it. :)

Admin>Configuration>Themes and layouts>Modify theme>Click on theme name>Click on file name.

No way to back it up, though, before you edit it, in this case. :(
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: Illori on October 16, 2014, 06:51:13 AM
in 1.1 you cant modify the default theme that way, so it is not a fix.
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: kat on October 16, 2014, 06:55:04 AM
Sure can, on mine...
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: Illori on October 16, 2014, 06:57:28 AM
that cant be from the default theme as it is not listed on the page to select from. in 1.1 they thought that the default [theme #1] should not be modified much at all so you cant modify it from the admin panel, where you can in 2.0.
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: kat on October 16, 2014, 06:59:48 AM
Ahhhhh... The swines! ;)
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: MortenMacFly on October 16, 2014, 08:27:52 AM
Quote from: K@ on October 16, 2014, 06:59:48 AM
Ahhhhh... The swines! ;)

Well - NO LUCK, unfortunately. In the Theme I use I see no post.php file there. Only files like index.php etc. Those I could edit, but the one in question I can't... :-( :( :( :(

Si I guess I've to wait for the update... but nice to hear you've one in mind... :D
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: Kindred on October 16, 2014, 08:38:03 AM
morten.... not post.php
post.template.php
Title: Re: Bug with preview function after 1.1.20 Security Patch
Post by: Oldiesmann on October 21, 2014, 01:11:53 PM
Also, if the theme you use doesn't have that file, that means it's using the one from "default", so you'll want to edit Themes/default/Post.template.php either way.