I get this error when I'm uploading 6 files, that totals more than 30MB.

The files are named blabla1.mp3 blabla2.mp3 etc.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM content_ WHERE vid = 0 LIMIT 0, 1' at line 1 query: SELECT FROM content_ WHERE vid = 0 LIMIT 0, 1 in /home/vusers/domains/MYDOMAIN.com/wwwdocs/innhold/includes/database.mysql.inc on line 172.

This error fills the Ajax interface, and files are removed from whereever they are temporarly stored.

Does this has something to do with my SQL/PHP settings? Since uploading 6 files that is under 30mb in total works just fine.

Comments

jpetso’s picture

Status: Active » Closed (duplicate)

Yes, this is due to not properly catching the case when $_POST is empty, and that happens when your PHP file upload size limit is exceeded. Duplicate of issue 180023.

gladideg’s picture

Yes.

Even if I save the 3 first files, then upload 3 more it still gives the same error.

But I'll try to raise the file size limit.

Thank you

EDIT: Found out that I needed to change :

; Maximum size of POST data that PHP will accept.
post_max_size = 8M

to

; Maximum size of POST data that PHP will accept.
post_max_size = 50M

Not just :

; Maximum allowed size for uploaded files.
upload_max_filesize = 100M