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 :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
FUD 3.0.2 [message #163647] Sun, 21 November 2010 10:40 Go to next message
Martin_E is currently offline  Martin_E   Germany
Messages: 16
Registered: November 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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] Sun, 21 November 2010 21: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
add to buddy list
ignore all messages by this user
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 05: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
add to buddy list
ignore all messages by this user
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 05: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 09: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
add to buddy list
ignore all messages by this user
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 12: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
add to buddy list
ignore all messages by this user
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 19: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
add to buddy list
stop ignoring messages by this user
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 19: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
remove from buddy list
ignore all messages by this user
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 19:52]

Report message to a moderator

Re: Aw: Re: Aw: Re: FUD 3.0.2 [message #165865 is a reply to message #165864] Thu, 18 August 2011 20: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
add to buddy list
stop ignoring messages by this user
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] Thu, 18 August 2011 21: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
remove from buddy list
ignore all messages by this user
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] Thu, 18 August 2011 21: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
add to buddy list
stop ignoring messages by this user
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: Thu, 18 August 2011 21:46]

Report message to a moderator

Aw: FUD 3.0.2 [message #165878 is a reply to message #163647] Fri, 19 August 2011 06: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
remove from buddy list
ignore all messages by this user
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 06: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 07: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
add to buddy list
stop ignoring messages by this user
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!"
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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 02 04:52:48 EDT 2024

Total time taken to generate the page: 0.04823 seconds