http://***.*****.***/coppermine/db_input.php - Blank Page On Upload http://***.*****.***/coppermine/db_input.php - Blank Page On Upload
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

http://***.*****.***/coppermine/db_input.php - Blank Page On Upload

Started by Stormdancing, September 26, 2008, 05:21:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Stormdancing

 I have successfully uploaded an 842kb jpg, but when I try an 847kb file I get this message and a blank page
http://www.photographyunplugged.net/coppermine/db_input.php

I have set up the debug settings as asked in the trouble shooting guidelines.
I have set up a test account  - Tester   Pass: test0926
I have checked Chmod on albums, includes and all subfolders within.

This is what my php.ini file says  (I changed this from 60 after turning off Safe Mode, making the change and then Safe Mode On)
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 300     ; Maximum execution time of each script, in seconds
max_input_time = 120    ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M

but I'm missing something because my phpinfo says

max_execution_time   30   30
max_input_time   60   60
memory_limit   32M   32M
open_basedir   /var/www/vhosts/photographyunplugged.net/httpdocs:/tmp   no valu

I'm trying to set this up for a photography club and the larger sizes are needed for critique and evaluation by the club members.

Thanks for any help.

Joachim Müller

Works as expected for me, with an image sized 752 KB, see http://www.photographyunplugged.net/coppermine/displayimage.php?pos=-9
Trying with a file sized 1.4 MB I get the error message
QuoteNo file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /var/www/vhosts/photographyunplugged.net/httpdocs/coppermine/db_input.php - Line: 311
Search the board for that error message.

Stormdancing

Well I've tried for two full days to figure this out.  I guess they will just have to live with files under 842.

I've read all the links that come up when searching both db_input.php and No files where uploaded as well as the stickies.  I've tried most every suggestion on those posts with no luck.

I still don't understand why the phpinfo is not updating.  I've made the changes to php.ini and saved them but they do not change when I run phpinfo.php again.

Thank for your help and testing it for me with your file.  Nice horse pic, BTW

Joachim Müller

[ot]
Quote from: Stormdancing on September 27, 2008, 01:46:36 AMNice horse pic, BTW
The horse pic has been created by Blueiris during the "artists wanted" competition some time ago.
[/ot]
Quote from: Stormdancing on September 27, 2008, 01:46:36 AMI still don't understand why the phpinfo is not updating.  I've made the changes to php.ini and saved them but they do not change when I run phpinfo.php again.
If the changes to php.ini don't stick then your webhost probably doesn't allow you to make those changes, i.e. your custom php.ini file is not being taken into account. I suggest asking your webhost to increase the limitations for you.

The error message you get is being explained in more detail in the preliminary docs for cpg1.5.x. The recommendations there apply to cpg1.4.x as well:
QuoteThere may be several reasons for this error message. The file you tried to upload did not "reach" the folder on the webserver where it is suppossed to go. If the server isn't yours to administer, you may have to ask your webhost for support. Here is what you should check:
  • test file "too large"
    If you encounter this error message in the first place, make sure that the file you test uploading with is not to large in terms of file size and dimensions. Test with a known-good, small file first. You are welcome to download one from the coppermine demo gallery and use that for testing purposes.
  • "file_uploads" enabled
    Go to your phpinfo page (available as admin menu item), search it for file_uploads and make sure that it is set to "on". If you are on shared webhosting, only your webhost can enable this for you.
  • "upload_tmp_dir" needs to be set
    On the phpinfo page, make sure that upload_tmp_dir needs to be set. If you are on shared webhosting, only your webhost can set this up for you. The script (i.e. the user the webserver runs under) needs to be allowed to write to that file.
Key section is the sentence
Quoteyou may have to ask your webhost for support

Stormdancing

Thanks again!  Maybe after taking a break for a day or two I'll go back at it.   There are plenty more things I need to do in setting up the board and getting it like they want it.