Advanced search  

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]

Pages: [1]   Go Down

Author Topic: http://***.*****.***/coppermine/db_input.php - Blank Page On Upload  (Read 4033 times)

0 Members and 1 Guest are viewing this topic.

Stormdancing

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: http://***.*****.***/coppermine/db_input.php - Blank Page On Upload
« Reply #1 on: September 26, 2008, 07:48:41 pm »

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
Quote
No 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.
Logged

Stormdancing

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: http://***.*****.***/coppermine/db_input.php - Blank Page On Upload
« Reply #2 on: September 27, 2008, 01:46:36 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: http://***.*****.***/coppermine/db_input.php - Blank Page On Upload
« Reply #3 on: September 27, 2008, 08:25:47 am »

[ot]
Nice horse pic, BTW
The horse pic has been created by Blueiris during the "artists wanted" competition some time ago.
[/ot]
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.
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:
Quote
There 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
Quote
you may have to ask your webhost for support
Logged

Stormdancing

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: http://***.*****.***/coppermine/db_input.php - Blank Page On Upload
« Reply #4 on: September 27, 2008, 03:58:25 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.