FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » FUD 3.0.2 (preview image before sending)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
FUD 3.0.2 [message #163647] Sun, 21 November 2010 15:40 Go to next message
Martin_E is currently offline  Martin_E   Germany
Messages: 16
Registered: November 2010
Karma: 0
Junior Member
After upgrade to current version 3.0.2 it is not able to make a preview of the image, which was upload by forum itself.

If you look into fud_attach table you will see not the location of file is "placeholder" until the message will saved.

Re: FUD 3.0.2 [message #163657 is a reply to message #163647] Mon, 22 November 2010 02:36 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Definitely a bug!
Do you perhaps know if it was working in 3.0.1?
Aw: Re: FUD 3.0.2 [message #163661 is a reply to message #163657] Mon, 22 November 2010 10:34 Go to previous messageGo to next message
Martin_E is currently offline  Martin_E   Germany
Messages: 16
Registered: November 2010
Karma: 0
Junior Member
yes it was working fine with 3.0.1.

You can reproduce the issue. You will need a mysql tool and FUDForum 3.0.2.

Create a new message, chose a file (picture), upload it to forum and insert it to the message.
Now you will see in the fut_attch table a new entry and "location" is filled with "placeholder"

If you click on preview message, you will see the missing picture error.
If you click create message, the message was created and in the table the "placeholder" was replaced with the correct location.

[Updated on: Mon, 22 November 2010 10:35]

Report message to a moderator

Re: Aw: Re: FUD 3.0.2 [message #163663 is a reply to message #163661] Mon, 22 November 2010 14:02 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
A quick fix is to edit src/attach.inc.t, change
\'placeholder\'
to
\'\'
and rebuild your themes.

PS: This will not work for Oracle where '' is considered NULL (location is a NOT NULL col). I'll submit a proper patch later.
Aw: Re: Aw: Re: FUD 3.0.2 [message #163667 is a reply to message #163663] Mon, 22 November 2010 17:01 Go to previous messageGo to next message
Martin_E is currently offline  Martin_E   Germany
Messages: 16
Registered: November 2010
Karma: 0
Junior Member
This is a fine working workaround.
Thanks!
Re: Aw: Re: FUD 3.0.2 [message #165841 is a reply to message #163663] Tue, 16 August 2011 23:41 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
As of a few moments ago preview wasn't working in "forum suggestions", the code shows without the tags but no image, works normally when posted.

"I'm a Witcher, I solve human problems; not always using a sword!"
Aw: Re: Aw: Re: FUD 3.0.2 [message #165864 is a reply to message #165841] Thu, 18 August 2011 23:52 Go to previous messageGo to next message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
Image preview should be fixed in 3.0.3RC1. If you have installed it you could try it there. I could not reproduce it.

This forum here is still running version 3.0.2 that suffers from this bug.

[Updated on: Thu, 18 August 2011 23:52]

Report message to a moderator

Re: Aw: Re: Aw: Re: FUD 3.0.2 [message #165865 is a reply to message #165864] Fri, 19 August 2011 00:08 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
Yes I remember the patch; it was here I was referring to. I commented on it because I didn't remember the code showing without the tags in the previous issue and I had seen the same recently on another 3.0.2 install that had previously been patched.

I jumped over to my 3.0.3RC1 install and checked real quickly, and Image preview works 4.0 in 3.0.3RC1,


"I'm a Witcher, I solve human problems; not always using a sword!"
Aw: Re: Aw: Re: Aw: Re: FUD 3.0.2 [message #165866 is a reply to message #165865] Fri, 19 August 2011 01:08 Go to previous messageGo to next message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
I am not sure what tags you are referring to. In the text box you should see something like [img]index.php?t=getfile&id=6082&private=0[/img]. In the preview and the actual post you should see the uploaded image instead.
Re: Aw: Re: Aw: Re: Aw: Re: FUD 3.0.2 [message #165867 is a reply to message #165866] Fri, 19 August 2011 01:45 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
Right!
I expected to see something like this in preview:index.php?t=getfile&id=6192&private=0

Instead I saw something like this: (note that the image tags are missing) even though the image displays properly after posting!index.php?t=getfile&id=6193&private=0

Though you can see it in preview when editing!


"I'm a Witcher, I solve human problems; not always using a sword!"

[Updated on: Fri, 19 August 2011 01:46]

Report message to a moderator

Aw: FUD 3.0.2 [message #165878 is a reply to message #163647] Fri, 19 August 2011 10:57 Go to previous messageGo to next message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
I don't think the tags are missing. If you right click the address in the preview you will notice that it is actually an image.

The bug is that the forum fails to deliver the content of the image to browser. Because of this the address is shown as alternative text.

[Updated on: Fri, 19 August 2011 10:57]

Report message to a moderator

icon6.gif  Re: Aw: FUD 3.0.2 [message #165879 is a reply to message #165878] Fri, 19 August 2011 11:21 Go to previous message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
Ok that make sense, they are obviously there since the image shows after being posted, but its no biggie since it's fixed in 3.0.3RC1 which will be out soon enough.

"Preview is our friend!"


"I'm a Witcher, I solve human problems; not always using a sword!"
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: error message in 3.0.3rc1
Next Topic: Issues with captcha images
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 21:26:25 GMT 2024

Total time taken to generate the page: 0.02490 seconds