Advanced search  

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

Pages: [1]   Go Down

Author Topic: Strange PID problem  (Read 2666 times)

0 Members and 1 Guest are viewing this topic.

tonyfromparis

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
    • My weblog !
Strange PID problem
« on: April 05, 2006, 12:21:26 am »

Hello,

I have a Coppermine 1.4.3 on my website working wiith a Wordpress blog through the Wordpress Coppermine Plugin (work very well !). Recently I moved my entire site to a new server. Worked fine... UNTIL NOW !
I was uploading files... And suddenly, an error occured each time after the uploading proces... Uploading was well ! Descrptions,... I clicked process and then CRITICAL ERROR !

I activated the debug mode but I found what is wrong  : when I add a pictures, now (why not before, I don't know... ?!?), in the cp143_pictures table, the new pictures appears with a 0 pid ! It should be something like 285 (the logical suite) but ... No ! Why I don't know !

Can somebody help me ?

Here the report of the adding (pid : 0) but I can't find any information in there !

Code: [Select]
USER:
------------------
Array
(
    [ID] => bfe5643268def230e3c3a93ebdf66c10
    [am] => 1
    [lang] => french
    [sort] => da
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => antoineclaude
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.017s)
    [1] => select * from cpg143_plugins order by priority asc; (0s)
    [2] => delete from `antoineccsql`.cpg143_sessions where time<1144184732 and remember=0; (0.008s)
    [3] => delete from `antoineccsql`.cpg143_sessions where time<1142978732; (0s)
    [4] => select user_id from `antoineccsql`.cpg143_sessions where session_id=md5("afcd17b4c02b24f9029e8749f1e69e729493b5ea85bbccc0bcc43799f49a4661"); (0s)
    [5] => select user_id as id, user_password as password from `antoineccsql`.cpg143_users where user_id=1 (0s)
    [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 `antoineccsql`.cpg143_users AS u INNER JOIN `antoineccsql`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `antoineccsql`.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 (0s)
    [10] => update `antoineccsql`.cpg143_sessions set time='1144188332' where session_id=md5('afcd17b4c02b24f9029e8749f1e69e729493b5ea85bbccc0bcc43799f49a4661'); (0s)
    [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-04-04 23:05:32' (0.001s)
    [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='82.237.148.189' OR ip_addr='82.237.148.189' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg143_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg143_albums WHERE category='10001' ORDER BY title (0.001s)
    [16] => SELECT encoded_string FROM cpg143_temp_data WHERE unique_ID = '64ae9097' (0.001s)
    [17] => UPDATE cpg143_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = '64ae9097' (0.057s)
    [18] => SELECT category FROM cpg143_albums WHERE aid='8' (0.001s)
    [19] => 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 ('8', 'userpics/10001/', 'logo_sm.gif', '4707', '6850', '150', '55', '1144188332', '1', 'antoineclaude','Google', 'Logo', '', 'YES', '', '', '', '', '82.237.148.189', '82.237.148.189', '0') (0.003s)
    [20] => DELETE FROM cpg143_temp_data WHERE unique_ID = '64ae9097' (0.001s)
    [21] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.001s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 8
    [title] => Google
    [caption] => Logo
    [keywords] =>
    [control] => phase_2
    [unique_ID] => 64ae9097
    [debugtext] => USER:
------------------
Array
(
    [ID] => bfe5643268def230e3c3a93ebdf66c10
    [am] => 1
    [lang] => french
    [sort] => da
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => antoineclaude
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.006s)
    [1] => select * from cpg143_plugins order by priority asc; (0.001s)
    [2] => delete from `antoineccsql`.cpg143_sessions where time<1144184698 and remember=0; (0s)
    [3] => delete from `antoineccsql`.cpg143_sessions where time<1142978698; (0s)
    [4] => select user_id from `antoineccsql`.cpg143_sessions where session_id=md5("afcd17b4c02b24f9029e8749f1e69e729493b5ea85bbccc0bcc43799f49a4661"); (0.001s)
    [5] => select user_id as id, user_password as password from `antoineccsql`.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 `antoineccsql`.cpg143_users AS u INNER JOIN `antoineccsql`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `antoineccsql`.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 (0s)
    [10] => update `antoineccsql`.cpg143_sessions set time='1144188298' where session_id=md5('afcd17b4c02b24f9029e8749f1e69e729493b5ea85bbccc0bcc43799f49a4661'); (0.001s)
    [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-04-04 23:04:59' (0s)
    [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='82.237.148.189' OR ip_addr='82.237.148.189' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg143_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg143_albums WHERE category='10001' ORDER BY title (0.001s)
    [16] => SELECT encoded_string FROM cpg143_temp_data WHERE unique_ID = '64ae9097' (0s)
    [17] => UPDATE cpg143_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMToibG9nb19zbS5naWYiO3M6MTQ6InRlbXBvcmFyeV9uYW1lIjtzOjIyOiJtVVJJX3RlbXBfNzk5Nzk0MjAuZ2lmIjtzOjEyOiJwcmV2aWV3X3BhdGgiO3M6MzQ6Ii4vYWxidW1zL2VkaXQvcHJldmlld184ZjQ2Y2U1MS5naWYiO319' WHERE unique_ID = '64ae9097' (0s)
    [18] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.001s)
    [19] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='17' AND cat.cid=alb.category (0.001s)
    [20] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='22' AND cat.cid=alb.category (0s)
    [21] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='20' AND cat.cid=alb.category (0s)
    [22] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='13' AND cat.cid=alb.category (0s)
    [23] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='14' AND cat.cid=alb.category (0s)
    [24] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='21' AND cat.cid=alb.category (0s)
    [25] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='4' AND cat.cid=alb.category (0s)
    [26] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='11' AND cat.cid=alb.category (0s)
    [27] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='19' AND cat.cid=alb.category (0s)
    [28] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='18' AND cat.cid=alb.category (0s)
    [29] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='12' AND cat.cid=alb.category (0s)
    [30] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='10' AND cat.cid=alb.category (0s)
    [31] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='6' AND cat.cid=alb.category (0s)
    [32] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='5' AND cat.cid=alb.category (0s)
    [33] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='7' AND cat.cid=alb.category (0s)
    [34] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='16' AND cat.cid=alb.category (0s)
    [35] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='8' AND cat.cid=alb.category (0s)
    [36] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='2' AND cat.cid=alb.category (0s)
    [37] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='3' AND cat.cid=alb.category (0s)
    [38] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='9' AND cat.cid=alb.category (0.001s)
)

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

==========================
POST :
------------------
Array
(
    [unique_ID] => 64ae9097
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => bfe5643268def230e3c3a93ebdf66c10
    [am] => 1
    [lang] => french
    [sort] => da
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => antoineclaude
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.001s)
    [1] => select * from cpg143_plugins order by priority asc; (0s)
    [2] => delete from `antoineccsql`.cpg143_sessions where time<1144184694 and remember=0; (0.002s)
    [3] => delete from `antoineccsql`.cpg143_sessions where time<1142978694; (0s)
    [4] => select user_id from `antoineccsql`.cpg143_sessions where session_id=md5("afcd17b4c02b24f9029e8749f1e69e729493b5ea85bbccc0bcc43799f49a4661"); (0s)
    [5] => select user_id as id, user_password as password from `antoineccsql`.cpg143_users where user_id=1 (0s)
    [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 `antoineccsql`.cpg143_users AS u INNER JOIN `antoineccsql`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `antoineccsql`.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 (0s)
    [10] => update `antoineccsql`.cpg143_sessions set time='1144188294' where session_id=md5('afcd17b4c02b24f9029e8749f1e69e729493b5ea85bbccc0bcc43799f49a4661'); (0s)
    [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-04-04 23:04:55' (0s)
    [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='82.237.148.189' OR ip_addr='82.237.148.189' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg143_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg143_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.001s)
    [17] => SELECT unique_ID FROM cpg143_temp_data (0.002s)
    [18] => INSERT INTO cpg143_temp_data VALUES ('64ae9097', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMToibG9nb19zbS5naWYiO3M6MTQ6InRlbXBvcmFyeV9uYW1lIjtzOjIyOiJtVVJJX3RlbXBfNzk5Nzk0MjAuZ2lmIjt9fQ==', '1144188295') (0.009s)
)

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

==========================
POST :
------------------
Array
(
    [URI_array] => Array
        (
            [0] => http://www.google.com/images/logo_sm.gif
            [1] =>
            [2] =>
        )

    [control] => phase_1
)

Pleeaaase heeeeeelp coz I have to modify each time the pid of every pictures manually directly on the SQL table !!!
« Last Edit: April 05, 2006, 10:06:19 am by GauGau »
Logged

tonyfromparis

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
    • My weblog !
Re: Strange PID problem
« Reply #1 on: April 05, 2006, 12:38:22 am »

And the error I get when I'm trying to upload a new image :

Code: [Select]
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 ('8', 'userpics/10001/', 'topic_musique.jpg', '1125', '2326', '32', '32', '1144190156', '1', 'antoineclaude','test', 'test', '', 'YES', '', '', '', '', '82.237.148.189', '82.237.148.189', '0')" on 0

mySQL error: Duplicate entry '0' for key 1

The PID is 0...  :'(
I understang what's goin on but I don't understand why ! Why didn't it upload it whith the PID next to the one before ? Is there a counter somewhere ? Something's buged !
Logged

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: Strange PID problem
« Reply #2 on: April 05, 2006, 02:20:12 am »

check your picture table if its got autoincrement.

 `pid` int(11) NOT NULL auto_increment,

Check which value it thinks it should be in the part:

Next Autoindex (is displayed in your phpmyadmin at bottom right under row statistics)

« Last Edit: April 05, 2006, 02:26:25 am by xplicit »
Logged
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

tonyfromparis

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
    • My weblog !
Re: Strange PID problem
« Reply #3 on: April 05, 2006, 09:32:06 am »

Works ! Thanxxx ! It was the auto_increment... But strange I can't understand what happened !

But thanks a lot !
Merci beaucoup  :P
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.