transferred site, now can't upload... transferred site, now can't 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

transferred site, now can't upload...

Started by pwilly, February 20, 2006, 10:29:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pwilly

here's the log:

USER:
------------------
Array
(
    [ID] => c7afcb955f5cb26c638dd2efa5e312ef
    [am] => 1
    [liv] => Array
        (
           
  • => 70
                [1] => 282
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
  • => 178
        [user_id] => 178
        [1] => BlurCircle
        [user_name] => BlurCircle
        [2] => 0
        [user_level] => 0
        [groups] => Array
            (
               
  • => 2
            )

        [group_quota] => 10000
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 1
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [upload_form_config] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 1
        [custom_user_upload] => 0
        [disk_max] => 10000
        [disk_min] => 10000
        [ufc_max] => 0
        [ufc_min] => 0
        [has_admin_access] => 0
        [group_name] => Members
        [can_see_all_albums] => 0
        [group_id] => 2
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg134_filetypes;
        [1] => SELECT user_id, username as user_name, user_level FROM `db134742757`.shutter_sessions INNER JOIN `db134742757`.shutter_users ON session_user_id = user_id WHERE session_id='10cce8d93263a9119f99c826b9f0f50a' AND session_user_id ='178' AND user_active='1'
        [2] => SELECT (ug.group_id + 5) as group_id FROM `db134742757`.shutter_user_group as ug LEFT JOIN `db134742757`.shutter_groups as g ON ug.group_id = g.group_id WHERE user_id = 178 AND user_pending = 0 AND group_single_user = 0
        [3] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg134_usergroups WHERE group_id in (2)
        [4] => SELECT group_name FROM  cpg134_usergroups WHERE group_id= 2
        [5] => DELETE FROM cpg134_banned WHERE expiry < '2006-02-20 14:54:30'
        [6] => SELECT * FROM cpg134_banned WHERE ip_addr='66.31.6.229' OR ip_addr='66.31.6.229' OR user_id=178
        [7] => SELECT aid FROM cpg134_albums WHERE visibility != '0' AND visibility !='10178' AND visibility NOT IN (2)
        [8] => SELECT category FROM cpg134_albums WHERE aid='44' and (uploads = 'YES' OR category = '10178')
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 44
        [MAX_FILE_SIZE] => 1048576
        [title] => lkjl
        [caption] => lkjlkj
        [keywords] => lkj
        [event] => picture
    )

    ==========================
    Page generated in 0.128 seconds - 9 queries in 0.004 seconds - Album set :

    can anyone clue me in as to what is wrong there? I moved the site from one server to another, then this started. I've tried permissions both ways, and my test image is only 88k.


pwilly

nibbler, I've already been there. how else would I have posted the debug info?

I've now successfully uploaded 2 pics, both under 10k. That's all that I can get to work.

Nibbler

Please do as suggested or we can't help you.

"When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges."

Nowhere do we ask you to post debug output.

pwilly

ah, sorry I didn't see that bit. here you go:

UN: testme
PW: testme
URL: http://theshutter.co.uk/galleries/

Login is on the left. TIA!

Nibbler

Failed to create directory albums/userpics/10182 !

File: /home/ts3909/public_html/galleries/db_input.php - Line: 229


Warning: mkdir(albums/userpics/10182): Permission denied in /home/ts3909/public_html/galleries/db_input.php on line 228

CHMOD albums/userpic to 777/755 with your FTP client.

pwilly

Thanks for your help. I had 755, just switched to 777 and I got this:

Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /home/ts3909/public_html/galleries/include/picmgmt.inc.php on line 209

Warning: imagecreatefromjpeg(): './albums/edit/mHTTP_temp_7a02adf5.jpg' is not a valid JPEG file in /home/ts3909/public_html/galleries/include/picmgmt.inc.php on line 209

kegobeer

Is that image a valid JPEG?  Usually when GD reports an error, it's because of a bad image.  Your jpeg images must be in RGB format, not CMYK.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

pwilly

I just tried a pic right from the camera and got this:

The following uploads encountered errors: 
File Uploads: 
File Name/URL Error Message
1. Boat Show 04 004.jpg Not a GD extension.


how can that be?

pwilly

I've just tried a variety of other jpgs and this seems to be the most common error:

Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /home/ts3909/public_html/galleries/include/picmgmt.inc.php on line 209

Warning: imagecreatefromjpeg(): './albums/edit/mHTTP_temp_c9675ab8.jpg' is not a valid JPEG file in /home/ts3909/public_html/galleries/include/picmgmt.inc.php on line 209

Nibbler

Please provide a picture that does not work so we can test it.

pwilly


kegobeer

Have you tried images that haven't come from your camera?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

pwilly

I've also tried some I made with my graphic program. And the one above is a pic that I copied from the gallery already...

kegobeer

Have you reported those errors to your host?  There could possibly be something wrong with the PHP/GD package.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

pwilly

unfortunately, it's my own box. how would I know if that is the problem? and what is normally done to fix soemthing like that?

kegobeer

Your own box as in your personal computer, or as in a dedicated server located elsewhere that you control?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

pwilly


kegobeer

I would install ImageMagick, switch from GD2 to ImageMagick for the resize method, and see if your uploads work.  If so, you definitely know there's a problem with either GD or the PHP functions that work with GD.

We can't really help with installing ImageMagick.  You'll have to figure that out on your own.  (One of the benefits of having your own dedicated server.)
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots