Wedge

Public area => The Pub => Bug reports => Topic started by: Pandos on March 5th, 2014, 08:50 AM

Title: [Posting] Wrong attachment is uploaded
Post by: Pandos on March 5th, 2014, 08:50 AM
Simple to reproduce:

Write a new post and select an attachment.
Then change the attachment in favour for another attachment.
Click Post.
Result: the first choosen attachment is uploaded.
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Pandos on March 5th, 2014, 09:01 AM
Seems that this issue is a bit older :)
http://wedge.org/pub/bugs/8072/attachment-upload-bug/msg288200/#msg288200
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Nao on March 5th, 2014, 02:04 PM
Just like Arantor said originally: did you test locally, and if yes, without the mass-attach plugin..?
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Pandos on March 5th, 2014, 02:21 PM
Working correct on a fresh install.
So it's a problem with mass_attach.
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Nao on March 5th, 2014, 02:34 PM
Shouldn't be too hard to fix then... Once I'm done with my game :P
Unless @Dragooon wants first look!
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Nao on March 9th, 2014, 08:13 PM
Bump for @Dragooon.

This one's fucked up. Not only the plugin, but also the attachment system overall.

Tested on my local site...
- Dropped a file. Instead of uploading it, it just reverted to the regular system.
- Added a second file with the Attach selector. Removed it. Added a third.

As a result, after submitting, all 3 files were uploaded. :-/

Can anyone confirm on their local sites?
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Farjo on March 10th, 2014, 06:13 PM
It looks OK without the plugin. With it I get the same as you.
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Pandos on March 10th, 2014, 09:15 PM
Dig a bit deeper in it and found out that json_encode() was removed from PHP core in 5.5 due to a licensing problem.

Will install it and see if it is working :)
Title: Re: [Posting] Wrong attachment is uploaded
Post by: MultiformeIngegno on March 10th, 2014, 09:46 PM
Quote from Pandos on March 10th, 2014, 09:15 PM
Dig a bit deeper in it and found out that json_encode() was removed from PHP core in 5.5 due to a licensing problem.

Will install it and see if it is working :)
What? I'm on PHP 5.5 and it works..
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Farjo on March 10th, 2014, 09:53 PM
And I'm on 5.3.
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Nao on March 10th, 2014, 10:35 PM
Quote from Pandos on March 10th, 2014, 09:15 PM
Dig a bit deeper in it and found out that json_encode() was removed from PHP core in 5.5 due to a licensing problem.

Will install it and see if it is working :)
Ubuntu only.

Do this:
apt-get install php5-json
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Nao on March 11th, 2014, 07:21 AM
Also, I should mention that since Wedge has a drop in fallback for JSON, there's no reason for it not to work without the instruction above...
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Pandos on March 11th, 2014, 09:09 AM
He :)
Thought I've found the culprit :)
OK, do a little more search on it.
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Dragooon on March 18th, 2014, 09:01 AM
Ohhhh interesting, I'll take a look in weekend.
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Nao on March 18th, 2014, 10:52 AM
Thanks! :)
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Farjo on April 10th, 2014, 02:54 PM
Is there any progress? I could do some testing this evening if so.
Title: Re: [Posting] Wrong attachment is uploaded
Post by: Nao on April 10th, 2014, 03:10 PM
Nope, I haven't been working on this... I usually rely on the original authors to fix problems (Dragooon, TE...), but feel free to work on them, just as I fixed the importer bug myself. ;)