coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: joejk2 on December 19, 2005, 03:50:53 PM

Title: Database update problems
Post by: joejk2 on December 19, 2005, 03:50:53 PM
Dear All.

I hope I have not missed anything, but I cannot find any solution to my upload problem....

Initially I was able to upload photos by batch add but I am now returned click for details or to reload and this link contains no data.    However, the thumbnails are generated, it is just that nothing is entered into my cpg140_pictures table.  The debug info is below.

As instructed I have then limited to single file uploads and attempted httpd - this gives the error....

No file was uploaded !

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

File: /home/fhlinux204/a/angryfruit.co.uk/user/htdocs/db_input.php - Line: 300


... although the files are uploaded to my usperpics/10001 folder.  Debug info below.
 
I have tried recreating my edit directory, I have added the define('SILLY_SAFE_MODE', 1); to my config.inc.php.  I don't think permissions are an issue since the thumbnails are happily created. 

I have created a guest account (username - guest password - tseug) with upload rights to www.angryfruit.co.uk.


Many thanks for some great software and any help you can offer,


joe



The debug info is as follows...

For Batch Add

USER:
------------------
Array
(
    [ID] => 7ed14ff4d5f827ca3c1a8513e805f053
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => joejk2
    [groups] => Array
        (
           
Title: Re: Database update problems
Post by: Joachim Müller on December 20, 2005, 09:21:57 AM
disable admin approval temporarily to let us see any errors.
Title: Re: Database update problems
Post by: joejk2 on December 20, 2005, 10:01:30 PM
Done.  Many thanks for your time GauGau.

joe
Title: Re: Database update problems
Post by: Joachim Müller on December 21, 2005, 02:43:44 AM
everything works as expected for me: http://www.angryfruit.co.uk/thumbnails.php?album=4
Make sure to test with small, known-good jpeg files. You (as admin) should use FTP-upload plus batch-add anyway, especially when uploading videos. Attach the file you got an error message with.
Title: Re: Database update problems
Post by: joejk2 on December 22, 2005, 12:50:37 PM
Problem solved - my error for not comprehensively debugging.  The problem is a server time-out whilst trying to create thumbnails and intermediate pictures - this is the source of the Click for details or to reload in the batch add process.

I instead resize my photos on my laptop and then upload. From a linux terminal I use the script

for file in *
do
        sips -Z 400 $file --out normal_$file
        sips -Z 100 $file --out thumb_$file
done


Many thanks for your time GauGau and for a most incredible photo gallery.

joe