Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: cecherel on March 21, 2012, 08:16:58 AM

Title: Attachments: when i try to upload a specific file it sends me to new topic
Post by: cecherel on March 21, 2012, 08:16:58 AM
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?
Title: Re: Attachements: when i try to upload a specific file it sends me to new topic
Post by: pkrack on March 21, 2012, 08:20:47 AM
Does your file uploading takes too much time?
Title: Re: Attachements: when i try to upload a specific file it sends me to new topic
Post by: cecherel on March 21, 2012, 08:22:26 AM
No, for the record, the file has 13 mb.
Thanks for the quick reply.
Title: Re: Attachements: when i try to upload a specific file it sends me to new topic
Post by: pkrack on March 21, 2012, 08:25:30 AM
Did you get success on small files? Or problem is same for all uploads?
Title: Re: Attachements: when i try to upload a specific file it sends me to new topic
Post by: cecherel on March 21, 2012, 09:06:28 AM
Yes, on small files it seems to work. But larger than 2 mb
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: Bigguy on March 21, 2012, 09:46:26 AM
Your host may have set an upload limit and/or you have not set the attachments options in the forums admin panel.
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: Kays on March 21, 2012, 09:56:01 AM
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.
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: pkrack on March 21, 2012, 10:32:55 AM
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.
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: Bigguy on March 21, 2012, 12:35:03 PM
I must have missed that for some reason. What is a .dem file. Has that extension been added to the attachments settings. ???
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: pkrack on March 21, 2012, 12:38:18 PM
May be extension is causing problem but if it isnt supported then it should give "extension not supported errory"
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: cecherel on March 21, 2012, 01:42:49 PM
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
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: 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
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: 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?
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: cecherel on March 21, 2012, 02:29:56 PM
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..)
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: cecherel on March 22, 2012, 02:08:45 AM
up!
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: cecherel on March 23, 2012, 08:19:46 AM
up again, for the last time..
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: pkrack on March 23, 2012, 08:49:34 AM
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?
Title: Re: Attachments: when i try to upload a specific file it sends me to new topic
Post by: Kays on March 24, 2012, 01:54:52 PM
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.