Unable to upload after server move, but everything else works ok. Unable to upload after server move, but everything else works ok.
 

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

Unable to upload after server move, but everything else works ok.

Started by Chad-wl, March 16, 2007, 04:01:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chad-wl

I've searched, and nothing else (Except for another un-answered post) matched.

I've moved my coppermine gallery from my work server to a 1and1 account.

When I moved, things looked fine, and I was able to upload a single photo.

When I tried to batch add using the xp publish, it uploaded with no errors and created a new album, but it didn't upload any of the files.

I switched to manual upload and batch upload, but neither are working.

When I upload using batch add, the files come up as NA as in No Album Selected, but I did select the new album.


Here is the debug information... Any thoughts?
I'm thinking maybe a database errors, but I can't seem to find any errors.


USER:
------------------
Array
(
    [ID] => 8088380479b9c635ebac8549283e7f51
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 0
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => admin
        [groups] => Array
            (
               
  • => 1
            )

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

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.001s)
        [1] => select * from cpg143_plugins order by priority asc; (0.001s)
        [2] => delete from `db93830585`.cpg143_sessions where time<1174009805 and remember=0; (0.001s)
        [3] => delete from `db93830585`.cpg143_sessions where time<1172803805; (0s)
        [4] => select user_id from `db93830585`.cpg143_sessions where session_id=md5("1ee7a29a600f89248b0464bd45f2561e7871fb087d0bc4e9e13c710e049b0b4b"); (0.001s)
        [5] => select user_id as id, user_password as password from `db93830585`.cpg143_users where user_id=1 (0.001s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `db93830585`.cpg143_users AS u INNER JOIN `db93830585`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `db93830585`.cpg143_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [8] => 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 cpg143_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0.001s)
        [10] => update `db93830585`.cpg143_sessions set time='1174013405' where session_id=md5('1ee7a29a600f89248b0464bd45f2561e7871fb087d0bc4e9e13c710e049b0b4b'); (0.001s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg143_banned WHERE expiry < '2007-03-15 21:50:05' (0.001s)
        [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='72.1.215.227' OR ip_addr='72.1.215.227' OR user_id=1) AND brute_force=0 (0.001s)
        [14] => SELECT aid, title FROM cpg143_albums WHERE 1 (0.001s)
        [15] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.001s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [insert] => 1
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [d0000] => 0
        [pics] => Array
            (
               
  • => i0000
                [1] => i0001
                [2] => i0002
                [3] => i0003
                [4] => i0004
                [5] => i0005
                [6] => i0006
                [7] => i0007
                [8] => i0008
                [9] => i0009
                [10] => i0010
                [11] => i0011
                [12] => i0012
                [13] => i0013
                [14] => i0014
                [15] => i0015
                [16] => i0016
                [17] => i0017
                [18] => i0018
                [19] => i0019
                [20] => i0020
                [21] => i0021
                [22] => i0022
                [23] => i0023
                [24] => i0024
                [25] => i0025
                [26] => i0026
                [27] => i0027
                [28] => i0028
                [29] => i0029
            )

        [album_lb_id_i0000] => d0000
        [picfile_i0000] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwNTBfKE1lZGl1bSkuSlBH
        [album_lb_id_i0001] => d0000
        [picfile_i0001] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwNjBfKE1lZGl1bSkuSlBH
        [album_lb_id_i0002] => d0000
        [picfile_i0002] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwNjRfKE1lZGl1bSkuSlBH
        [album_lb_id_i0003] => d0000
        [picfile_i0003] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwNzBfKE1lZGl1bSkuSlBH
        [album_lb_id_i0004] => d0000
        [picfile_i0004] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwNzFfKE1lZGl1bSkuSlBH
        [album_lb_id_i0005] => d0000
        [picfile_i0005] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwNzJfKE1lZGl1bSkuSlBH
        [album_lb_id_i0006] => d0000
        [picfile_i0006] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwNzNfKE1lZGl1bSkuSlBH
        [album_lb_id_i0007] => d0000
        [picfile_i0007] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwNzRfKE1lZGl1bSkuSlBH
        [album_lb_id_i0008] => d0000
        [picfile_i0008] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwODBfKE1lZGl1bSkuSlBH
        [album_lb_id_i0009] => d0000
        [picfile_i0009] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwODdfKE1lZGl1bSkuSlBH
        [album_lb_id_i0010] => d0000
        [picfile_i0010] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwOTJfKE1lZGl1bSkuSlBH
        [album_lb_id_i0011] => d0000
        [picfile_i0011] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwOTNfKE1lZGl1bSkuSlBH
        [album_lb_id_i0012] => d0000
        [picfile_i0012] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwOTRfKE1lZGl1bSkuSlBH
        [album_lb_id_i0013] => d0000
        [picfile_i0013] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwOTdfKE1lZGl1bSkuSlBH
        [album_lb_id_i0014] => d0000
        [picfile_i0014] => dXBsb2Fkcy9zYW5hbmRyZXMvSFBJTTAwOThfKE1lZGl1bSkuSlBH
        [album_lb_id_i0015] => d0000
        [picfile_i0015] => dXBsb2Fkcy9zYW5hbmRyZXMvSFIwMTAwNzVfKE1lZGl1bSkuSlBH
        [album_lb_id_i0016] => d0000
        [picfile_i0016] => dXBsb2Fkcy9zYW5hbmRyZXMvSFIwMTAwNzZfKE1lZGl1bSkuSlBH
        [album_lb_id_i0017] => d0000
        [picfile_i0017] => dXBsb2Fkcy9zYW5hbmRyZXMvSFIwMTAwNzdfKE1lZGl1bSkuSlBH
        [album_lb_id_i0018] => d0000
        [picfile_i0018] => dXBsb2Fkcy9zYW5hbmRyZXMvSFIwMTAwNzhfKE1lZGl1bSkuSlBH
        [album_lb_id_i0019] => d0000
        [picfile_i0019] => dXBsb2Fkcy9zYW5hbmRyZXMvSFIwMTAwNzlfKE1lZGl1bSkuSlBH
        [album_lb_id_i0020] => d0000
        [picfile_i0020] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAwNjZfKE1lZGl1bSkuSlBH
        [album_lb_id_i0021] => d0000
        [picfile_i0021] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAwOTBfKE1lZGl1bSkuSlBH
        [album_lb_id_i0022] => d0000
        [picfile_i0022] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAxMDRfKE1lZGl1bSkuSlBH
        [album_lb_id_i0023] => d0000
        [picfile_i0023] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAxMjVfKE1lZGl1bSkuSlBH
        [album_lb_id_i0024] => d0000
        [picfile_i0024] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAxNzFfKE1lZGl1bSkuanBn
        [album_lb_id_i0025] => d0000
        [picfile_i0025] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAxNzJfKE1lZGl1bSkuanBn
        [album_lb_id_i0026] => d0000
        [picfile_i0026] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAxNzNfKE1lZGl1bSkuanBn
        [album_lb_id_i0027] => d0000
        [picfile_i0027] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAxNzRfKE1lZGl1bSkuanBn
        [album_lb_id_i0028] => d0000
        [picfile_i0028] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAxNzVfKE1lZGl1bSkuanBn
        [album_lb_id_i0029] => d0000
        [picfile_i0029] => dXBsb2Fkcy9zYW5hbmRyZXMvSU1HXzAxNzZfKE1lZGl1bSkuanBn
        [insert] => Insert selected files
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.4 - OK
    ------------------
    mySQL version: 4.0.27-standard-log
    ------------------
    Coppermine version: 1.4.10(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support:
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.25
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/run/mysqld/mysqld.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.1
    Linked Version 1.2.1
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 50000 | 50000
    max_input_time | -1 | -1
    upload_max_filesize | 20M | 20M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.226 seconds - 16 queries in 0.013 seconds - Album set : ; Meta set: ;

Joachim Müller


Chad-wl

I thought I had followed them, but setting to single seems to give more of an output.
Should the aid key be auto incrementing?

Chad


-----------------------------------------------------------------------------------------------------------
There was an error while processing a database query.

While executing query "INSERT INTO cpg143_pictures (aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip, position) VALUES ('0', 'userpics/10001/', 'Winter.jpg', '105542', '141562', '800', '600', '1174048603', '1', 'admin','Winter Test Image', 'Here is a Windows sample image from the default my documents.', '', 'YES', '', '', '', '', '204.101.26.106', '204.101.26.106', '0')" on 0 mySQL error: Duplicate entry '0' for key 1


File: /homepages/32/d93816027/htdocs/wanderinglost.ca/cpg1410/include/functions.inc.php - Line: 249

Chad-wl

I located an old database I had, and auto_increment was missing on the new database.

It seems that when you use mysql_dump there is a bug: http://bugs.mysql.com/bug.php?id=14515 that does not include auto_export if you are exporting to an older format of mysql database.

It this case I was going from 5 to 4, so I had to use the compatible switch, and that dropped the auto increments.

Chad-wl

After adding the auto_increment tags, everything is working fine.

Thanks,

Chad