[Posting] Wrong attachment is uploaded

Pandos

  • Living on the edge of Wedge
  • Posts: 635
[Posting] Wrong attachment is uploaded
« 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.
# dpkg-reconfigure brain
error: brain is not installed or configured

Nao

  • Dadman with a boy
  • Posts: 16,079
[Posting] Re: Wrong attachment is uploaded
« Reply #2, on March 5th, 2014, 02:04 PM »
Just like Arantor said originally: did you test locally, and if yes, without the mass-attach plugin..?

Pandos

  • Living on the edge of Wedge
  • Posts: 635
[Posting] Re: Wrong attachment is uploaded
« Reply #3, on March 5th, 2014, 02:21 PM »
Working correct on a fresh install.
So it's a problem with mass_attach.

Nao

  • Dadman with a boy
  • Posts: 16,079
[Posting] Re: Wrong attachment is uploaded
« Reply #5, 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?

Farjo

  • "a valuable asset to the community"
  • Posts: 492

Pandos

  • Living on the edge of Wedge
  • Posts: 635
[Posting] Re: Wrong attachment is uploaded
« Reply #7, 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 :)

MultiformeIngegno

  • Posts: 1,337
[Posting] Re: Wrong attachment is uploaded
« Reply #8, 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..

Farjo

  • "a valuable asset to the community"
  • Posts: 492

Nao

  • Dadman with a boy
  • Posts: 16,079
[Posting] Re: Wrong attachment is uploaded
« Reply #10, 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
[Posting] Re: Wrong attachment is uploaded
« Reply #11, 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...

Pandos

  • Living on the edge of Wedge
  • Posts: 635
[Posting] Re: Wrong attachment is uploaded
« Reply #12, on March 11th, 2014, 09:09 AM »
He :)
Thought I've found the culprit :)
OK, do a little more search on it.

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
The way it's meant to be

Nao

  • Dadman with a boy
  • Posts: 16,079