"No images uploaded" on XP, Apache PHP5

garym

Joined: 2004-09-27
Posts: 30
Posted: Mon, 2005-02-14 04:28

I have got an issue with uploading multiple images on my gallery:

If I upload one image of 5MB it works fine, however when I try to upload multiple images of 5MB (2 or more) all I get is the error message "No images uploaded".

I can upload multiple photos of smaller size so the issues seems to be related more to size of the upload, I did a test and was able to upoad 4 images totalling 7680kb but when i went to 5 images totalling 8864kb I got the error.

In order to fix this I have tried to do these things:

Read FAQ C.6. Why can't I upload big files (over a megabyte or two)?

Done everything he suggests in point 1 & 2

PHP.INI: MAX_EXECUTION_TIME = 300 (in seconds)
PHP.INI: MEMORY_LIMIT = 128M
PHP.INI: POST_MAX_SIZE = 128M
PHP.INI: UPLOAD_MAX_FILESIZE = 128M

Added this to .htaccess

.htaccess: php_value post_max_size 128M
.htaccess: php_value upload_max_size 128M

but in Point 3 he says: edit the add_photos.php file and change the line that says:

<input type="hidden" name="max_file_size" value="10000000">
so it reads
<input type="hidden" name="max_file_size" value="134217728">

I don’t have this line in the add_photos.php document.

Read C.14. Why, when I try to upload images, does it say "No images uploaded" ?

Have done what is suggested here but again it refers back to C6.

When I upload one image (successfully) with DeBug turned on I get lots (30+ lines) of output describing the process.

However when I turn on DeBug mode and upload multiple files, the only output I get is the following:

Quote:
Processing status...
No email sent as no valid email addresses were found No images uploaded!

Email for the Gallery has always been turned off so it shouldn't work.

Any help would be appreciated. TIA.

-------------------------------------------------------------------

Gallery URL: my local intranet
Gallery version: 1.4.4pl4
Apache version: 2.0.52
PHP version: 5.0.3
Graphics Toolkit: Netpbm
Operating system: Win XP

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-02-14 18:25

garym, what does your apache error_log say?

 
garym

Joined: 2004-09-27
Posts: 30
Posted: Mon, 2005-02-14 22:46

nothing!! there is no error recorded in the logs.

however;

When I upload one file successfully I get the error:

[Tue Feb 15 09:31:44 2005] [error] [client 10.1.74.86] C:\\Apache2\\htdocs\\gallery\\netpbm\\jpegtopnm: WRITING PPM FILE, referer: http://10.1.74.54/gallery/add_photos.php?set_albumName=album01
[Tue Feb 15 09:31:44 2005] [error] [client 10.1.74.86] C:\\Apache2\\htdocs\\gallery\\netpbm\\jpegtopnm: WRITING PPM FILE, referer: http://10.1.74.54/gallery/add_photos.php?set_albumName=album01

When I upload 2 images, in the browser, I get the error:

"Processing status...
No email sent as no valid email addresses were found No images uploaded!"

but there is no info recorded in the Apache Error log. I have tried this a number of times receiving the same results each time.

Is it unusual that I don't have the following lines in the add_photos.php document:

<input type="hidden" name="max_file_size" value="10000000">
so it reads
<input type="hidden" name="max_file_size" value="134217728">

as mentioned in FAQ C6?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-02-14 22:55

garym, no thats not unusual, since that has been removed since the faq item was written.

Something is limiting your uploads though, if it's not PHP it has to be something in you apache config.

 
garym

Joined: 2004-09-27
Posts: 30
Posted: Mon, 2005-02-28 01:27

I have now got my Apache/Gallery using .htaccess files correctly, though still having the same problem uploading as described above.

I currently have the .htaccess file in the top level of the "gallery" folder, is this the correct place? I have tried a couple of other directories where i thought it might belong but issue is still unresolved. Thanks.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-02-28 06:07

gallery/.htaccess is correct. Check http://yoursite.com/gallery/setup/phpinfo.php to make sure the values you set there are actually being honored.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Mon, 2005-02-28 08:05

Have you tried putting gallery into debug mode and uploading multiple images with the form? When you upload 4 or 5 images, are you using the applet, gallery remote or putting them in a .zip file or something?

 
garym

Joined: 2004-09-27
Posts: 30
Posted: Mon, 2005-02-28 23:42
Quote:
Check http://yoursite.com/gallery/setup/phpinfo.php to make sure the values you set there are actually being honored.

Unfortunately the PHP.INI directive POST_MAX_SIZE = had reverted to the original 8MB instead of the 128MB that I had set it to. I can now upload files as required. Thanks for your input h0bbel.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-02-28 23:45

I see! Well, glad you got it fixed now! :)