ElkArte Community

Elk Development => Bug Reports => Topic started by: Ruth on July 22, 2016, 12:05:56 am

Title: Error message by uploading attachments
Post by: Ruth on July 22, 2016, 12:05:56 am
Yesterday and right now I was getting error messages by uploading attachments here. The message said that maybe my pictures are to big, but they were not. I could save my posts anyway, the attachments are there.
Title: Re: Error message by uploading attachments
Post by: meetdilip on July 22, 2016, 12:23:40 am
I got this for a 16.48 KB file, just now

Quoteeasy.png : The post data is missing. This error could be caused by trying to submit a file larger than allowed by the server. Please contact your administrator if this problem continues.
Title: Re: Error message by uploading attachments
Post by: Ruth on July 22, 2016, 12:32:24 am
The same error happened a few times in my forum as well, but the attachments were sometimes not there after saving the post.
Title: Re: Error message by uploading attachments
Post by: emanuele on July 22, 2016, 02:00:09 am
Zip the image and attach the zip please. :)
Title: Re: Error message by uploading attachments
Post by: radu81 on July 22, 2016, 02:06:38 am
I got the same error yesterday, I uploaded 2 PNG files about 30kB each one. The files were correctly uploaded but I got an error message:
1.PNG : The post data is missing. This error could be caused by trying to submit a file larger than allowed by the server. Please contact your administrator if this problem continues.
Title: Re: Error message by uploading attachments
Post by: emanuele on July 22, 2016, 02:15:37 am
That may be two different errors, @Ruth could you please report exactly the error message if you encounter it again?
Also, what browser are you using?
Title: Re: Error message by uploading attachments
Post by: radu81 on July 22, 2016, 02:21:07 am
I get that error with PNG attachments, if can be useful here is a zip containing one PNG file that returns that error

well, another error message with zip files 1.zip : The post data is missing. This error could be caused by trying to submit a file larger than allowed by the server. Please contact your administrator if this problem continues.
Title: Re: Error message by uploading attachments
Post by: Ruth on July 22, 2016, 02:25:11 am
Sorry, I don't know how to zip something, Emanuele. It was the same error as meetdilip said.

I am using opera.

I try to upload the same file again...can see the message here now again:

Quotemobil.jpg : The post data is missing. This error could be caused by trying to submit a file larger than allowed by the server. Please contact your administrator if this problem continues.
Title: Re: Error message by uploading attachments
Post by: Jorin on July 22, 2016, 02:35:57 am
Same problem when uploading Ruth's file...

Quotemobil.jpg (111.19 KB)

mobil.jpg : The post data is missing. This error could be caused by trying to submit a file larger than allowed by the server. Please contact your administrator if this problem continues.
Title: Re: Error message by uploading attachments
Post by: emanuele on July 22, 2016, 02:43:32 am
What browser Jorin? O:-)
Title: Re: Error message by uploading attachments
Post by: ahrasis on July 22, 2016, 02:52:49 am
I get that error too using android webview.
Title: Re: Error message by uploading attachments
Post by: Ruth on July 22, 2016, 02:55:25 am
I am not sure about this, but this error message seems only to appear, if you are not admin. If it is happening to me, that the upload failes I will get no message in my forum, if I try the upload again, the picture will be there, but other users sometimes get this error message and the upload failed.

In the error log it is looking like this than:

QuoteRita
15. Juni 2016, 09:18 Uhr
xxx
Art des Fehlers: Undefiniert
8: Undefined index: attachment
http://xxx.de/index.php?action=post2;board=458;xml
Datei: /var/www/virtual/xxx.de/sources/subs/Attachments.subs.php
Zeile: 394

Rita is using Firefox, she showed me this screenshot. The error message is telling the same:
Title: Re: Error message by uploading attachments
Post by: Jorin on July 22, 2016, 03:02:10 am

Getting the same error message with my PNG file attached. I can test my Chrome and IE at home later, if needed.
Title: Re: Error message by uploading attachments
Post by: emanuele on July 22, 2016, 09:32:47 am
If it is IE11, the issue is likely:
http://caniuse.com/#feat=xhr2
QuotePartial support refers to not supporting json as responseType
meh...
Title: Re: Error message by uploading attachments
Post by: radu81 on July 22, 2016, 09:55:18 am
I'm using Chrome, so I think is not a browser problem
Title: Re: Error message by uploading attachments
Post by: meetdilip on July 22, 2016, 10:35:51 am
On FF
Title: Re: Error message by uploading attachments
Post by: emanuele on July 22, 2016, 11:18:47 am
Now it should work.

ETA: can someone test with IE? I would be sure it works with it.
Title: Re: Error message by uploading attachments
Post by: meetdilip on July 22, 2016, 11:21:43 am
Test
Title: Re: Error message by uploading attachments
Post by: radu81 on July 22, 2016, 12:07:18 pm
Test png from chrome

No problem from chrome
Title: Re: Error message by uploading attachments
Post by: radu81 on July 22, 2016, 12:09:34 pm
test from IE 11

no error from ie11
Title: Re: Error message by uploading attachments
Post by: emanuele on July 22, 2016, 12:59:43 pm
Good! :D
Title: Re: Error message by uploading attachments
Post by: Ruth on July 23, 2016, 04:37:09 am
No more error is shown while uploading attachments.

Please Emanuele, can you tell, what had been wrong before?
Some of our members are getting sometimes the same error message.
Title: Re: Error message by uploading attachments
Post by: emanuele on July 23, 2016, 07:52:16 am
The fix I applied, applies only to 1.1, so I guess it wouldn't make any good for your forum members.

Please, open a new topic and let's try to dig the issue to understand what's broken there. ;)