Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
that file size issue
i read a bunch of threads but nothing really cleared this up for me. in my web host panel, i got it to release a php.ini file into my public_html folder. i edited the field that says maximum upload size from 2m up to 150m (in case i ever want to use this panel for podcasts or dj mixes).
but the file size in txp admin is still locked at 2097152 even after i try bumping this number up.
EDIT: phpinfo() is telling me i’m still at 2 meg, so i’m trying to figure out how to get my host to see the updated .ini file
Last edited by mrtunes (2009-04-30 05:38:43)
Offline
Re: that file size issue
Does it work if you add the following in your .htaccess instead:
php_value post_max_size 150M
php_value upload_max_filesize 150M
Btw. the “memory_limit” will also affect the upload files. But you will see this by another error, I think.
Last edited by trenc (2009-04-30 07:47:33)
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: that file size issue
trenc wrote:
Does it work if you add the following in your .htaccess instead:
php_value post_max_size 150M
php_value upload_max_filesize 150M
Btw. the “memory_limit” will also affect the upload files. But you will see this by another error, I think.
i’ll try that next. i read that on shared hosting it can take like a day for changes in your php.ini file to show up because they have to restart apache.
Offline
Re: that file size issue
I know this thread is pretty old, but I am having a similar problem. I have a new site using TXP 4.4.1 and it’s hosted in Media Temple. I am not able to upload files bigger than 8M. I have tried modifying the php.ini file and also adding the same information to the .htaccess file, and it didn’t work.
memory_limit = 192M
max_execution_time = 360
upload_max_filesize = 100M
post_max_size = 100M
Every time I try to modify the preferences for the size file of uploads in TXP, it resets that value to 8388608. I created a phpinfo(); page and it says that I should be able to upload bigger files!
Carlos Cuellar
blog: carloscuellar.net
mail: hola[at]carloscuellar[dot]net
Offline
Re: that file size issue
Hi Carlos
Did you also change the size in Admin > Preferences > Advanced > Maximum file size of uploads (in bytes)?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: that file size issue
Hi Yiannis,
Yes, I did. Every time I try to enter a value bigger than 8Mb, when I save the preferences it goes back to 8388608 bytes
Carlos Cuellar
blog: carloscuellar.net
mail: hola[at]carloscuellar[dot]net
Offline
Re: that file size issue
Another way (or until somebody with a better knowledge than mine comes with advise), you could upload the file in the files folder via ftp and then go to files tab to add it to the database.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: that file size issue
Yes, I know I have the alternative of the FTP, but I’m trying to make things easier for my client.
Carlos Cuellar
blog: carloscuellar.net
mail: hola[at]carloscuellar[dot]net
Offline
Re: that file size issue
Have you checked with the host? Sometimes they have file limits which supersede any individual preferences.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: that file size issue
Yes, I contacted Media Temple a couple of days ago and they told me that server configuration was ok and the problem might be the application (Textpattern). I also checked my error_log file and I saw several lines like this one:
[Tue Jul 17 19:49:42 2012] [warn] [client 00.000.00.00] mod_fcgid: stderr: PHP Warning: POST Content-Length of 11112790 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://mywebsite.com:7080/textpattern/index.php?event=file
Carlos Cuellar
blog: carloscuellar.net
mail: hola[at]carloscuellar[dot]net
Offline
Re: that file size issue
txarly wrote:
Yes, I did. Every time I try to enter a value bigger than 8Mb, when I save the preferences it goes back to 8388608 bytes
The value gets dumped down to the smallest of between the one you supplied, post_max_size
, upload_max_filesize
and PHP_INT_MAX.
If you add those options options to PHP.ini, the server needs to be restarted to the options to take affect. If you use those options in a Apache’s on-request loaded configuration files (i.e. .htaccess), they would follow different syntax and require the use of php_value
. E.g.
php_value upload_max_filesize 30M
php_value post_max_size 30M
php_value memory_limit 64M
Above would go to a .htaccess
file placed to your textpattern
directory. Maximum execution time doesn’t need to be changed (it doesn’t affect uploads), and anways, for a long processes it would preferably be unlimited.
Please note that its unadvised to set upload and memory limits or execution times to extremely high values for server-wide. Unless you want slight problems with abusing.
Last edited by Gocom (2012-07-19 02:48:25)
Offline
Re: that file size issue
The value gets dumped down to the smallest of between the one you supplied, post_max_size, upload_max_filesize and PHP_INT_MAX.
I have both post_max size and upload_max_filesize set to 100M, but I have no idea about PHP_INT_MAX. Should I ask my host about that? I’ve been restarting the server every time I have changed something in php.ini and I think everything else should be fine.
Thanks guys!
Carlos Cuellar
blog: carloscuellar.net
mail: hola[at]carloscuellar[dot]net
Offline