Strange problem with "upload_max_filesize"

Author Message

Felix Laate

Friday 17 September 2004 4:36:46 am

Hi all!

On one of my ez-installations (3.3-5) I get this message when one tries to upload an image or a file to the server:

Image: Size of uploaded file exceeds limit set by upload_max_filesize directive in php.ini.

Now, this could be a piece of cake to fix.. only problem is that this variable is allready set to 200 megs (which is allready too much) and the files in question are 0-2 MB of size.

For fun, I tried to set the variable to a much higher value, but to no avail.

Its obliously also of interest, that the other installaions running on this server (ranging from 3.0-2 to 3.4.1) all work well (at least concerning this).

Any help would be helpfull..!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Bård Farstad

Monday 20 September 2004 12:15:02 am

Felix,

there is also a setting for the max file size in eZ publish. This is set on class level, so if you go to your class setup and edit the class image you will find a setting for the maximum upload size there.

--bård

Documentation: http://ez.no/doc

Felix Laate

Monday 20 September 2004 3:33:12 am

Hi Bård,

thank you for your answer! I tried this and I still get the same message when trying to upload an image. When uploading a <b>file</b> I get this message after klicking the publish-button:

File: Oppgi en gyldig fil.

When I klick the publish-button again, it gets published.

Maybe its notworthy that this sytem was upgraded from 3.2-5 to 3.3-5. It worked very well in the previous version..

Best regards,
Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Bård Farstad

Monday 20 September 2004 3:51:57 am

If it works with smaller files check the following: upload_max_filesize, post_max_size in php.ini and the setting of the attribute in your class. If no files work check that file_uploads are set in php.ini.

--bård

Documentation: http://ez.no/doc

Felix Laate

Monday 20 September 2004 5:10:21 am

Thank you again for your swift answer..

Unfortunatly it still doesn't work. I've these settings:

PHP.INI
------------------
upload_max_filesize = 100M
post_max_size = 200M
file_uploads = On

Image and File Class
------------------
max size = 20M

There are some 20 sites running on the same server as this one, and none of them experience such problems... so I'm dazzled and puzzled and so on..

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:16:22
Script start
Timing: Jan 31 2025 06:16:22
Module start 'layout'
Timing: Jan 31 2025 06:16:22
Module start 'content'
Timing: Jan 31 2025 06:16:22
Module end 'content'
Timing: Jan 31 2025 06:16:22
Script end

Main resources:

Total runtime0.0168 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.2656151.2266
Module start 'layout' 0.00560.0024 739.492236.6797
Module start 'content' 0.00800.0070 776.171994.1875
Module end 'content' 0.01500.0017 870.359437.9922
Script end 0.0168  908.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002716.3378140.0002
Check MTime0.00137.5908140.0001
Mysql Total
Database connection0.00084.688910.0008
Mysqli_queries0.002514.768330.0008
Looping result0.00000.082410.0000
Template Total0.00137.710.0013
Template load0.00116.416110.0011
Template processing0.00021.227310.0002
Override
Cache load0.00084.849410.0008
General
dbfile0.002716.049580.0003
String conversion0.00000.046940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs