Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 23. Nov 2024, 18:40

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 31. Aug 2010, 18:43 
Offline
User avatar

Joined: 10. Jul 2010, 01:11
Posts: 11
Been reading the various posts on this, but I should comment that this was a working system until my hosting site did some server upgrades (the details of which they refuse to comment on). They claim they increased the PHP memory limit - which is wierd since they say it's in the .htaccess file, but it seems to be commented out in there -- but since then, I've not been able to upload files, getthing the above error.

The site is http://www.metrowesthog.com/Gallery

PHP version >= 4.3.0 Yes (5.2.14)
- XML support Available
- GD lib support Available
- GD lib >= 2.0 Yes (2.0.34)
- File Uploads Available
- Upload max filesize 20M

There's a file: error_log in the admin/uploads directory which shows a series of:

PHP Warning: POST Content Length exceeds the limit of 20 bytes in unknown on line 0

I have no idea what this means.

HELP!?


Top
 Profile  
 
 Post subject:
PostPosted: 31. Aug 2010, 18:56 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Looks like the php post_max_size is set to 20 instead of 20 MB.
But all the configs say it is 20 MB...

how does the .htaccess look like. I know that this sometimes happend if there are invalid values.

e.g (wrong).
php_flag post_max_size 128M
instead of (o.k.)
php_value post_max_size 128M

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 31. Aug 2010, 19:17 
Offline
User avatar

Joined: 10. Jul 2010, 01:11
Posts: 11
Here's the whole file as created by my hosting company in the HTML root for this site:

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 85.140.8.0/24
deny from 93.174.93.0/24
deny from 194.8.74.0/23
deny from 91.76.0.0/15
deny from 91.78.0.0/17
deny from 85.140.10.0/24
deny from 95.215.1.0/24

<IfModule php_config>
php_value default_socket_timeout 1800
php_value max_execution_time 1800
php_value max_input_time 1800
#php_value memory_limit 55M
php_value post_max_size 20M
php_value upload_max_filesize 20M
</IfModule>


Top
 Profile  
 
 Post subject:
PostPosted: 31. Aug 2010, 21:41 
Offline
User avatar

Joined: 10. Jul 2010, 01:11
Posts: 11
OK, Michael... Not sure why, but working from your hint, and the info from:

http://www.php.net/manual/en/ini.core.p ... x-filesize

I modified the .htaccess as follows:

<IfModule php_config>
php_value default_socket_timeout 1800
php_value max_execution_time 1800
php_value max_input_time 1800
php_value memory_limit 67108864
php_value post_max_size 20971520
php_value upload_max_filesize 20971520
</IfModule>


Guess what? IT WORKS!!!

I'm wondering if the "20M" needs to be in quotes or something like that?

Not sure why it was working before the mysterious "server upgrade"...


Top
 Profile  
 
 Post subject:
PostPosted: 31. Aug 2010, 23:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
different version of php seems to read this values differently.

But good to know that this can be the problem!

- Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy