Ïðîèçîøëà îøèáêà ïðè îáðàùåíèè ê áàçå äàííûõ Ïðîèçîøëà îøèáêà ïðè îáðàùåíèè ê áàçå äàííûõ
 

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

Ïðîèçîøëà îøèáêà ïðè îáðàùåíèè ê áàçå äàííûõ

Started by pipemba, October 09, 2006, 10:20:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pipemba

íà÷íó ñ íà÷àëà..
êàêèå òî òâàðè çàëåçëè â áàçó äàííûõ SQL è óäàëèëè ïàðó òàáëèö
ñàìàÿ ãëàâíàÿ áûëà òàáëèöà êàòåãîðèé..
âñå ôîòêè ïîòåðÿëè ñâîè êàòåãîðèè...
ÿ óäàëèë èíñòàëë.áàê è ïðîèíñòàëèðîâàë çàíîãî âñþ ãàëåðåþ...
áûëà 148 ñòàëà 149
áûëà èíòåãðèðîâàíà â ipb
ïðîøåë åùå ðàç ïîñëå óñòàíîâêè 149 ïî èíòåãðàöèè
ïîëüçîâàòåëè ïîÿâèëèñü..
âðîäå ðàáîòàåò íî åñòü êàêèå òî îøèáêè..
çàìåòèë 2 èç íèõ... êîãäà çàõîäèøü â Èíñòðóìåíòû àäìèíèñòðàòîðà è Óäàëèòü îñèðîòåâøèå êîììåíòàðèè
òî ïèøåò êðèòè÷åñêàÿ îøèáêà
Ïðîèçîøëà îøèáêà ïðè îáðàùåíèè ê áàçå äàííûõ

è êîãäà â êîíôèãå ñòàâèø îòëàäî÷íàÿ èíôîðìàøèÿ
ïèøåò
Âíèìàíèå: Ýòî èíôîðìàöèîííîå ñîîáùåíèå è îíî íå îçíà÷àåò, ÷òî â Âàøåé ãàëåðåå ñîäåðæèòñÿ îøèáêà.)
è íèæå áîëüøîé êîä..
÷òî äåëàòü? êóäà ïîñìîòðåòü?

Makc666

Quote from: pipemba on October 09, 2006, 10:20:41 PM
íà÷íó ñ íà÷àëà..
êàêèå òî òâàðè çàëåçëè â áàçó äàííûõ SQL è óäàëèëè ïàðó òàáëèö
ñàìàÿ ãëàâíàÿ áûëà òàáëèöà êàòåãîðèé..
âñå ôîòêè ïîòåðÿëè ñâîè êàòåãîðèè...
ÿ óäàëèë èíñòàëë.áàê è ïðîèíñòàëèðîâàë çàíîãî âñþ ãàëåðåþ...
áûëà 148 ñòàëà 149
áûëà èíòåãðèðîâàíà â ipb
ïðîøåë åùå ðàç ïîñëå óñòàíîâêè 149 ïî èíòåãðàöèè
ïîëüçîâàòåëè ïîÿâèëèñü..
âðîäå ðàáîòàåò íî åñòü êàêèå òî îøèáêè..
çàìåòèë 2 èç íèõ... êîãäà çàõîäèøü â Èíñòðóìåíòû àäìèíèñòðàòîðà è Óäàëèòü îñèðîòåâøèå êîììåíòàðèè
òî ïèøåò êðèòè÷åñêàÿ îøèáêà
Ïðîèçîøëà îøèáêà ïðè îáðàùåíèè ê áàçå äàííûõ

è êîãäà â êîíôèãå ñòàâèø îòëàäî÷íàÿ èíôîðìàøèÿ
ïèøåò
Âíèìàíèå: Ýòî èíôîðìàöèîííîå ñîîáùåíèå è îíî íå îçíà÷àåò, ÷òî â Âàøåé ãàëåðåå ñîäåðæèòñÿ îøèáêà.)
è íèæå áîëüøîé êîä..
÷òî äåëàòü? êóäà ïîñìîòðåòü?

Ìîæåò áûòü ó òåáÿ â ãàëåðåå âêëþ÷åí äåáàã?
Íàñòðîéêè äëÿ îòëàäî÷íûõ ðàáîò
Âêëþ÷èòü ðåæèì îòëàäêè
Îòîáðàæàòü ñîîáùåíèÿ â ðåæèìå îòëàäêè


Êîíå÷íî æåëàòåëüíî äàííûé êîä îá îøèáêå ñþäà çàïîñòèòü, ïîòîìó ÷òî èíà÷å íèêòî íå ïîìîæåò.
Óáåäèñü òîëüêî â íà÷àëå, ÷òî òàì íåò ïåðñîíàëüíûõ äàííûõ.
Âñå ññûëêè îäèíàêîâûå çàìåíè íà http://test.com/_äàëüøå_ïóòü_ñîõðàíèòü

pipemba

ýòî ñîîáùåíèå ïîÿâëÿåòñÿ â ðåæèìå îòëàäêè

USER:
------------------
Array
(
    [ID] => d4df00e6127af043b3b8dc1039f348ab
    [am] => 1
    [lang] => russian
    [liv] => Array
        (
            [0] => 195
        )

    [lap] => 1
    [search] => Array
        (
            [search] =>
        )

    [theme] => fotogallery
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => pipemba
    [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] => 1
    [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 cpg149_filetypes; (0.001s)
    [1] => select * from cpg149_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg149_bridge (0s)
    [3] => SELECT u.id AS id, u.name AS username, u.member_login_key AS password, u.mgroup+100 AS group_id FROM `chat`.ipb_members AS u INNER JOIN `chat`.ipb_groups AS g ON u.mgroup=g.g_id WHERE u.id='1' (0.001s)
    [4] => 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 cpg149_usergroups WHERE group_id in (1) (0.001s)
    [5] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 1 (0s)
    [6] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.001s)
    [7] => DELETE FROM cpg149_banned WHERE expiry < '2006-10-10 08:44:54' (0s)
    [8] => SELECT * FROM cpg149_banned WHERE (ip_addr='10.1.61.120' OR ip_addr='10.1.61.120' OR user_id=1) AND brute_force=0 (0s)
    [9] => SELECT cid, name, description, thumb FROM cpg149_categories WHERE parent = ''  ORDER BY pos (0.001s)
    [10] => SELECT aid FROM cpg149_albums as a WHERE category>=10000 (0s)
    [11] => SELECT count(*) FROM cpg149_pictures as p, cpg149_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.001s)
    [12] => SELECT cid, name, description, thumb FROM cpg149_categories WHERE parent = '1'  ORDER BY pos (0.001s)
    [13] => SELECT aid FROM cpg149_albums WHERE category = 4 (0s)
    [14] => SELECT count(*) FROM cpg149_pictures as p, cpg149_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0s)
    [15] => SELECT count(*) FROM cpg149_albums as a WHERE category = '4' (0.001s)
    [16] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg149_albums as a LEFT JOIN cpg149_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,3 (0.001s)
    [17] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg149_albums AS a  LEFT JOIN cpg149_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (17, 18, 19)GROUP BY a.aid (0.001s)
    [18] => SELECT cid, name, description, thumb FROM cpg149_categories WHERE parent = '4'  ORDER BY pos (0.001s)
    [19] => SELECT aid FROM cpg149_albums WHERE category = 3 (0s)
    [20] => SELECT count(*) FROM cpg149_pictures as p, cpg149_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
    [21] => SELECT count(*) FROM cpg149_albums as a WHERE category = '3' (0.001s)
    [22] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg149_albums as a LEFT JOIN cpg149_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,4 (0.001s)
    [23] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg149_albums AS a  LEFT JOIN cpg149_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (12, 13, 14, 15)GROUP BY a.aid (0.001s)
    [24] => SELECT cid, name, description, thumb FROM cpg149_categories WHERE parent = '3'  ORDER BY pos (0.001s)
    [25] => SELECT aid FROM cpg149_albums WHERE category = 2 (0s)
    [26] => SELECT count(*) FROM cpg149_pictures as p, cpg149_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
    [27] => SELECT count(*) FROM cpg149_albums as a WHERE category = '2' (0.001s)
    [28] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg149_albums as a LEFT JOIN cpg149_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,5 (0.001s)
    [29] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg149_albums AS a  LEFT JOIN cpg149_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (7, 8, 9, 10, 11)GROUP BY a.aid (0.001s)
    [30] => SELECT cid, name, description, thumb FROM cpg149_categories WHERE parent = '2'  ORDER BY pos (0.001s)
    [31] => SELECT aid FROM cpg149_albums WHERE category = 5 (0s)
    [32] => SELECT count(*) FROM cpg149_pictures as p, cpg149_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0s)
    [33] => SELECT count(*) FROM cpg149_albums as a WHERE category = '5' (0.001s)
    [34] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg149_albums as a LEFT JOIN cpg149_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,4 (0.001s)
    [35] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg149_albums AS a  LEFT JOIN cpg149_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (20, 21, 22, 23)GROUP BY a.aid (0.001s)
    [36] => SELECT cid, name, description, thumb FROM cpg149_categories WHERE parent = '5'  ORDER BY pos (0.001s)
    [37] => SELECT aid FROM cpg149_albums WHERE category = 6 (0s)
    [38] => SELECT count(*) FROM cpg149_pictures as p, cpg149_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
    [39] => SELECT count(*) FROM cpg149_albums as a WHERE category = '6' (0.001s)
    [40] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg149_albums as a LEFT JOIN cpg149_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,9 (0.001s)
    [41] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg149_albums AS a  LEFT JOIN cpg149_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (24, 25, 26, 27, 28, 29, 30, 31, 32)GROUP BY a.aid (0.001s)
    [42] => SELECT cid, name, description, thumb FROM cpg149_categories WHERE parent = '6'  ORDER BY pos (0.001s)
    [43] => SELECT aid FROM cpg149_albums as a WHERE category = '0' (0.001s)
    [44] => SELECT count(*) FROM cpg149_albums as a WHERE 1 (0s)
    [45] => SELECT count(*) FROM cpg149_pictures as p LEFT JOIN cpg149_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [46] => SELECT count(*) FROM cpg149_comments as c LEFT JOIN cpg149_pictures as p ON c.pid=p.pid LEFT JOIN cpg149_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [47] => SELECT count(*) FROM cpg149_categories WHERE 1 (0s)
    [48] => SELECT sum(hits) FROM cpg149_pictures as p LEFT JOIN cpg149_albums as a ON p.aid=a.aid WHERE 1 (0s)
    [49] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.001s)
    [50] => SELECT count(*) FROM cpg149_albums as a WHERE category = '0' (0.001s)
    [51] => SELECT a.aid, a.title, a.description, category, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg149_albums as a LEFT JOIN cpg149_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,6 (0.001s)
    [52] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg149_albums AS a  LEFT JOIN cpg149_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1, 2, 3, 4, 5, 6)GROUP BY a.aid (0.001s)
    [53] => SELECT COUNT(*) from cpg149_pictures WHERE approved = 'YES'  (0.001s)
    [54] => SELECT * FROM cpg149_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0s)
    [55] => SELECT count(*) from cpg149_comments where pid=1 and msg_id!=0 (0s)
    [56] => SELECT COUNT(*) from cpg149_pictures WHERE approved = 'YES'  (0.001s)
    [57] => SELECT * FROM cpg149_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0s)
    [58] => SELECT count(*) from cpg149_comments where pid=1 and msg_id!=0 (0s)
)

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

==========================
POST :
------------------
Array
(
)

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

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.24
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.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php | .:/usr/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 | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.206 seconds - 59 queries in 0.034 seconds - Album set : ; Meta set: ;



Makc666

Quote from: pipemba on October 10, 2006, 10:38:46 AM
ýòî ñîîáùåíèå ïîÿâëÿåòñÿ â ðåæèìå îòëàäêè
Îáû÷íîå ñîîáùåíèå îòëàäêè.
À ñàìà îøèáêà êàêàÿ?
Ñêîïèðîâàòü ìîæíî?

pipemba

ýòî?

/bridge/udb_base.inc.php
Notice line 149: Undefined property: cpg_udb::$multigroups
/include/functions.inc.php
Warning line 483: sprintf() [function.sprintf]: Too few arguments
Warning line 483: sprintf() [function.sprintf]: Too few arguments
Warning line 483: sprintf() [function.sprintf]: Too few arguments
Warning line 483: sprintf() [function.sprintf]: Too few arguments
Warning line 483: sprintf() [function.sprintf]: Too few arguments
Warning line 483: sprintf() [function.sprintf]: Too few arguments
/themes/fotogallery/theme.php
Notice line 118: Undefined index: cat_thumb
Notice line 120: Undefined index: cat_albums

pipemba

åùå ýòî

/bridge/udb_base.inc.php
Notice line 149: Undefined property: cpg_udb::$multigroups

Makc666

/bridge/udb_base.inc.php
ýòî ïðîáëåìà ñ áðèäæåì
Èëè íå òàê íàñòðîåí, èëè ãäå-òî íåñîâìåñòèì

/themes/fotogallery/theme.php
ýòî ïðîáëåìà ñ òåìîé
èëè å¸ íå îáíîâèëè, èëè îíà ñîäåðæèò áàã

 ëþáîì ñëó÷àå îá ýòèõ îøèáêàõ íóæíî ïèñàòü â English ÷àñòü ôîðóìà