FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Can't upload any file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Re : Re: Re : Re: Re : Re: Can't upload any file [message #166382 is a reply to message #165751] Wed, 30 November 2011 03:16 Go to previous message
ShineOn is currently offline  ShineOn   United States
Messages: 53
Registered: July 2011
Karma:
Member
Frank, I am having the same problem - no matter the size of the attachment, it says it's too big.

The hosting provider's canned php.ini has both upload_max_filesize and post_max_size set to 10M.

I was able to use an .htaccess AddHandler to change the php handler to look in the document root, and put a customized copy of their php.ini in the document root and in fudforum/adm, with upload_max_filesize set to 10M and post_max_size set to 20M.

I am still getting the error.

Are there any other places where php files are executed from besides the fudforum root and fudforum/adm? Because I'm overriding the default "everyone use the same php.ini" I believe I have to have a copy of the customized php.ini in every directory a .php file might be executed from, because running a phpinfo() script in the fudforum root showed the customized php.ini in that directory was being used, but running the more php info in the adm cp still showed it coming from /etc/php.ini.

When I added a copy of the customized php.ini to fudforum/adm, the more php info in adm cp showed it was using the custom php.ini in fudforum/adm.

Any ideas?

<edit> More info: Uploads work just fine in the ACP file management panel, so it's not the upload process that's broken.
It must be something in the attachment process. I have added the custom php.ini to the /themes/<my theme> and themes/default directories, as they also have php files that are executed, but that didn't make post attachment uploads work.

Uploads to the ACP file management panel worked fine before I started messing with custom php.ini.

Note: I am using the path_info template in my theme and have path_info style URLs enabled. Could that be the problem? I will try changing themes and turning off the path_info style urls just for a test run and will post back. </edit>

<edit2> Well that didn't work. I changed the theme back to default, turned path_info style urls off and changed my profile to use the default theme. No joy, BUT -

I noticed that if you do something within the post form, without even entering in the browse box or selecting Upload File, the error message
File Attachment is too big (over allowed limit of 10485760 bytes)
shows up, which tells me it's not the upload part of the process that's causing the error to be thrown... I think it's a true bug and not just me screwing it up... </edit2>

<edit3> New info - sometimes when not doing any sort of file attachments, the "file is too big" message appears when you click "submit." Doesnt' sound like a php.ini issue to me, but I could be wrong... I'd like to at least have an idea where to look or how to debug this process. </edit>

[Updated on: Sat, 03 December 2011 04:39]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plugin settings not maintained when backup and restored
Next Topic: Forum post attachments fail
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 20:43:36 GMT 2024

Total time taken to generate the page: 0.03922 seconds