Attachments: when i try to upload a specific file it sends me to new topic

Started by cecherel, March 21, 2012, 08:16:58 AM

Previous topic - Next topic

cecherel

Hello, when i try to upload a specific file, for example rc.dem, i end up being redirected to a new topic form without getting any error. This problem has been reported by many users of my forum. I've made the settings for php to allow uploads bigger than 2M, memory allocated for scripts etc. Also in smf.
What can it be?

pkrack


cecherel

No, for the record, the file has 13 mb.
Thanks for the quick reply.

pkrack

Did you get success on small files? Or problem is same for all uploads?

cecherel


Bigguy

Your host may have set an upload limit and/or you have not set the attachments options in the forums admin panel.

Kays

Hi cecherel, welcome to SMF. :)

It almost sounds like the php limit is still at default. Download and install my attachments error mod (link in my sig). It has improved error reporting and if the problem is the php limit it should report that.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

pkrack

Create a php file and add this code to it and run it <?php php_info(); ?> and then visit that page through your browser . You will get upload limit. As op has said that he has set the both php and smf settings so i guess that the problem is some thing more than the upload limit.

Bigguy

I must have missed that for some reason. What is a .dem file. Has that extension been added to the attachments settings. ???

pkrack

May be extension is causing problem but if it isnt supported then it should give "extension not supported errory"

cecherel

I've said in my first post that i already made the settings in php and smf.
Settings in smf:
In allowed attachment extension i've added .dem extension (now it's not just that extension, it's every extension, but i just uploaded a zip file who was about 6 mb, and tried one with 90 mb and got the same error.)
Max attachment folder space: 0
Max attachment size per post: 0
Max size per attachment: 0
Re-encode potentially dangerous image attachments - checked
The rest is default.

Settings in php (with phpinfo script)
upload_max_filesize   750M
memory_limit   128M
max_execution_time   30   30
max_file_uploads   20

@Kays it does the same thing, where can i see the errors?
My smf version is 2.0.2

pkrack

There is a link in kays' signature. He says that download it and install it for error reporting

Kays

If there are any errors generated they will be in the error log in the admin cp.

Try increasing the memory limit. Also what is "post_max_size" set at?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

cecherel

Quote from: pkrack on March 21, 2012, 02:05:00 PM
There is a link in kays' signature. He says that download it and install it for error reporting
Already installed, i was asking where to find the errors log
Quote from: Kays on March 21, 2012, 02:15:40 PM
If there are any errors generated they will be in the error log in the admin cp.

Try increasing the memory limit. Also what is "post_max_size" set at?
I can't find anything in the error log about this problem
post_max_size    8M (tried to set at 40M but it didn't worked, i restarted the apache server and still..)



pkrack

I think no one is getting his head on diagnosing your problem. Solution will be easy. Have you tried a test forum on that server?

Kays

Quote from: Kays on March 21, 2012, 02:15:40 PM
If there are any errors generated they will be in the error log in the admin cp.

Try increasing the memory limit. Also what is "post_max_size" set at?

Have you tried increasing the memory limit. 128 is default and probably not enough.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: