Batch Upload no Error but fails Batch Upload no Error but fails
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Batch Upload no Error but fails

Started by xn85turbo, November 06, 2005, 03:44:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xn85turbo

I am not a new user to Coppermine nor Linux world and have a problem.

I installed the newest 1.3.5 and setup the app to spec. I have these versions installed;

httpd-2.0.54-10.2

php-5.0.4-10
php-gd-5.0.4-10

in my /etc/php.ini:  safe_mode = Off

I set all the permissions (idiot proof here as coppermine tells you it needs to be 777 on certain directories).

I go to do any amount of pictures 3, 10 , what ever and I get no thumb nail on the first link to the picures but if I click them I can see the picture in full size. I then click "insert selected files" and it runs very fast and I get the same no thumb nail picture. When I click on it to see the error there is none. Any ideas?



Joachim Müller


xn85turbo

Yeah I did the following and I think what was screwwing me was #7. I got it all working thanks.

Things to check:

1. max_input_time- 60 seconds is the default time limit for uploading files.

This time limit includes the time it takes for the files to upload, so if you exceed this limit, the file will not even parse, and the browser will not get a response. You can workaround this by trying to upload smaller or fewer files, or you can try uploading over broadband. The best solution, of course, is to increase the time limit to something more in line with your needs.

2. upload_max_filesize - 2MB is the default limit for individual files.

3. post_max_size - 8MB is the default limit for post requests.

4. memory_limit - 8MB is the default size.

5. PHP's LimitRequestBody - 512KB default limit. (mainly an issue on Redhat/Apache systems.  Found in /etc/http/conf.d)

In general, upload_max_filesize < post_max_size < memory_limit in order for uploads to function properly. Coppermine may warn you if a file exceeds upload_max_filesize, but it cannot warn you if the total size of all the files exceeds the post limit or the memory limit.

6. file_uploads - This determines whether or not PHP will allow file uploads. It must be set to 'On'.

7. upload_tmp_dir - This specifies the temporary directory where PHP stores uploaded files.

The most common issue caused by this setting is an open_basedir warning.  In this situation, your server administrator has restricted the files that PHP can work with to a certain directory.  If he does not create and specify a temporary directory within the open_basedir restriction, PHP will attempt to use the OS temporary directory, and it will be rebuffed by the open_basedir restriction.

8. allow_fopen_url - This controls PHP's ability to read files using URL/URIs.  If it is disabled, Coppermine will not be able to upload from URLs.