Probleme cpg14x_comments' doesn't exist Probleme cpg14x_comments' doesn't exist
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Probleme cpg14x_comments' doesn't exist

Started by darkazuria, December 23, 2008, 12:06:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darkazuria

Bonjour à tous,

J'ai un problème avec ma galerie Coppermine depuis que Free avait suspendue mon site à cause des spams dans la base mysql. J'ai activé le mode 'debug_mode' pour voir où i ly avait les problemes et sur ma galerie il y a marqué ça :

USER:
------------------
Array
(
    [ID] => 37f0ba1a2fe793c4092f06576c5b6a78
    [am] => 1
    [lang] => french
    [liv] => Array
        (
            [0] => 5254
            [1] => 7619
            [2] => 6639
            [3] => 2479
            [4] => 8474
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Kendra
    [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 cpg14x_filetypes; (0.004s)
    [1] => select * from cpg14x_plugins order by priority asc; (0.003s)
    [2] => delete from `fascinating_kristen`.cpg14x_sessions where time<1230026115 and remember=0; (0.002s)
    [3] => delete from `fascinating_kristen`.cpg14x_sessions where time<1228820115; (0s)
    [4] => select user_id from `fascinating_kristen`.cpg14x_sessions where session_id=md5("c09833ae3bd3550627d762a0b23edd990676a160d3aeed43ed242b686d58d98f"); (0s)
    [5] => select user_id as id, user_password as password from `fascinating_kristen`.cpg14x_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 `fascinating_kristen`.cpg14x_users AS u INNER JOIN `fascinating_kristen`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.002s)
    [7] => SELECT user_group_list FROM `fascinating_kristen`.cpg14x_users AS u WHERE user_id='1' and user_group_list <> ''; (0.001s)
    [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 cpg14x_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 (0s)
    [10] => update `fascinating_kristen`.cpg14x_sessions set time='1230029715' where session_id=md5('c09833ae3bd3550627d762a0b23edd990676a160d3aeed43ed242b686d58d98f'); (0.001s)
    [11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0.007s)
    [12] => DELETE FROM cpg14x_banned WHERE expiry < '2008-12-23 10:55:15' (0.01s)
    [13] => SELECT * FROM cpg14x_banned WHERE (ip_addr='82.122.204.196' OR ip_addr='82.122.204.196' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = ''  ORDER BY pos (0.001s)
    [15] => SELECT aid FROM cpg14x_albums as a WHERE category>=10000 (0.001s)
    [16] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.001s)
    [17] => SELECT aid FROM cpg14x_albums WHERE category = 3 (0s)
    [18] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0.003s)
    [19] => SELECT aid FROM cpg14x_albums WHERE category = 12 (0.001s)
    [20] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 12 (0.003s)
    [21] => SELECT aid FROM cpg14x_albums WHERE category = 2 (0.003s)
    [22] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0.003s)
    [23] => SELECT aid FROM cpg14x_albums WHERE category = 14 (0s)
    [24] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 14 (0.004s)
    [25] => SELECT aid FROM cpg14x_albums WHERE category = 13 (0.004s)
    [26] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 13 (0s)
    [27] => SELECT aid FROM cpg14x_albums WHERE category = 32 (0.001s)
    [28] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 32 (0s)
    [29] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '32' (0.003s)
    [30] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=32 ORDER BY a.pos LIMIT 0,1 (0s)
    [31] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg14x_albums AS a  LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (158)GROUP BY a.aid (0s)
    [32] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='5543' (0s)
    [33] => SELECT aid FROM cpg14x_albums WHERE category = 42 (0s)
    [34] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 42 (0s)
    [35] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '42' (0s)
    [36] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=42 ORDER BY a.pos LIMIT 0,1 (0.001s)
    [37] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg14x_albums AS a  LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (206)GROUP BY a.aid (0.001s)
    [38] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='6920' (0s)
    [39] => SELECT aid FROM cpg14x_albums as a WHERE category = '0' (0s)
    [40] => SELECT count(*) FROM cpg14x_albums as a WHERE 1 (0s)
    [41] => SELECT count(*) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.004s)
    [42] => SELECT count(*) FROM cpg14x_comments as c LEFT JOIN cpg14x_pictures as p ON c.pid=p.pid LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [43] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0.002s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.3-dev - OK
------------------
mySQL version: 5.0.67
------------------
Coppermine version: 1.4.16(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
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Client API version 5.0.51a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/mysql-client/include/mysql
MYSQL_LIBS -L/usr/mysql-client/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3.3
Linked Version 1.2.3.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
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 | On | On
disable_functions | no value | no value
file_uploads | On | On
include_path | /mnt/104/sdb/7/7/fascinating.kristen/include:.:/usr/php4/lib/php | .:/usr/php4/lib/php/
open_basedir | /mnt/104/sdb/7/7/fascinating.kristen | 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 | 2M | 2M
==========================
Page generated in 0.353 seconds - 44 queries in 0.068 seconds - Album set : ; Meta set: ;[/quote]



Et un peu plus haut, il y a marqué ça aussi :

While executing query "SELECT count(*) FROM cpg14x_comments as c LEFT JOIN cpg14x_pictures as p ON c.pid=p.pid LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1" on 0

mySQL error: Table 'fascinating_kristen.cpg14x_comments' doesn't exist


Fichier: /mnt/104/sdb/7/7/fascinating.kristen/galerie/include/functions.inc.php - Ligne: 249


Est ce que vous pouvez m'expliquer comment résoudre ce problème, je ne m'y connait vraiment pas avec coppermine.
Merci d'avance.

François Keller

QuoteWhile executing query "SELECT count(*) FROM cpg14x_comments as c LEFT JOIN cpg14x_pictures as p ON c.pid=p.pid LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1" on 0

mySQL error: Table 'fascinating_kristen.cpg14x_comments' doesn't exist
ça veut dire que la table citée n'existe pas (c'est la table des commentaires) elle a certainement été effacée par free à cause des spams.
Il faut donc la recrée.
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

darkazuria

Merci pour votre réponse.
Comment fait on pour la créer? j'ai essayer de chercher mais je trouve pas :(

François Keller

dans phpmyadmin, à l'onglet sql entrez le code ci-dessous et exectutez le en changeant TABLE CPG_comments par fascinating_kristen.cpg14x_comments
CREATE TABLE CPG_comments (
  pid mediumint(10) NOT NULL default '0',
  msg_id mediumint(10) NOT NULL auto_increment,
  msg_author varchar(25) NOT NULL default '',
  msg_body text NOT NULL,
  msg_date datetime NOT NULL default '0000-00-00 00:00:00',
  msg_raw_ip tinytext,
  msg_hdr_ip tinytext,
  author_md5_id varchar(32) NOT NULL default '',
  author_id int(11) NOT NULL default '0',
  PRIMARY KEY  (msg_id),
  KEY com_pic_id (pid)
) TYPE=MyISAM COMMENT='Used to store comments made on pics';

P.S. la prochaine fois n'incluez la sortie de deboggage que si on vous le demande, le message d'erreur suffisait  :)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

darkazuria

J'ai fait ce que vous m'avez dit et ça me marque cela :

Erreur
requête SQL:

CREATE fascinating_kristen.cpg14x_comments(

pid mediumint( 10 ) NOT NULL default '0',
msg_id mediumint( 10 ) NOT NULL AUTO_INCREMENT ,
msg_author varchar( 25 ) NOT NULL default '',
msg_body text NOT NULL ,
msg_date datetime NOT NULL default '0000-00-00 00:00:00',
msg_raw_ip tinytext,
msg_hdr_ip tinytext,
author_md5_id varchar( 32 ) NOT NULL default '',
author_id int( 11 ) NOT NULL default '0',
PRIMARY KEY ( msg_id ) ,
KEY com_pic_id( pid )
) TYPE = MYISAM COMMENT = 'Used to store comments made on pics'

MySQL a répondu:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fascinating_kristen.cpg14x_comments (
  pid mediumint(10) NOT NULL default '0',' at line 1

François Keller

oups, petite erreur de ma part, la bonne requête est
CREATE TABLE fascinating_kristen.cpg14x_comments(
pid mediumint( 10 ) NOT NULL default '0',
msg_id mediumint( 10 ) NOT NULL AUTO_INCREMENT ,
msg_author varchar( 25 ) NOT NULL default '',
msg_body text NOT NULL ,
msg_date datetime NOT NULL default '0000-00-00 00:00:00',
msg_raw_ip tinytext,
msg_hdr_ip tinytext,
author_md5_id varchar( 32 ) NOT NULL default '',
author_id int( 11 ) NOT NULL default '0',
PRIMARY KEY ( msg_id ) ,
KEY com_pic_id( pid )
) TYPE = MYISAM COMMENT = 'Used to store comments made on pics'
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

darkazuria

Merci beaucoup, ma galerie remarche parfaitement  :)

darkazuria

A oui, et j'aurais une autre question. Existe t-il un systeme anti spam pour les commentaires de Coppermine ?

François Keller

oui, il y a le plugin captcha (faites une recherche sur le forum vous trouverez)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog