Erreur critique (réparer Tables MySQL) Erreur critique (réparer Tables MySQL)
 

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

Erreur critique (réparer Tables MySQL)

Started by zettili, September 22, 2006, 05:14:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zettili

salut à tous, aidez moi s'il vous plait, je suis partis en vacances (4jours) et en revenant j'ai eu le probléme suivant :

Il y eu une erreur lors de l'exécution de la requête.
While executing query "SELECT sum(hits) FROM cpg148_pictures as p LEFT JOIN cpg148_albums as a ON p.aid=a.aid WHERE 1" on 0
mySQL error: Got error 127 from storage engine
Fichier: /cpg148/include/functions.inc.php - Ligne: 249


et pour les infos du debogage

USER:
------------------
Array
(
    [ID] => bd620f222f8a483df7ad2117b2c151ee
    [am] => 1
    [lang] => french
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => xxx
    [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 cpg148_filetypes; (0.001s)
    [1] => select * from cpg148_plugins order by priority asc; (0.001s)
    [2] => delete from `photos`.cpg148_sessions where time<1158933633 and remember=0; (0.003s)
    [3] => delete from `photos`.cpg148_sessions where time<1157727633; (0.001s)
    [4] => select user_id from `photos`.cpg148_sessions where session_id=md5("64521889af1067ea8cbc492f770bcfb1f5d3073be60668cfb3a08a7f0336bbdc"); (0.001s)
    [5] => select user_id as id, user_password as password from `photos`.cpg148_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 `photos`.cpg148_users AS u INNER JOIN `photos`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `photos`.cpg148_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 cpg148_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 1 (0.001s)
    [10] => update `photos`.cpg148_sessions set time='1158937233' where session_id=md5('64521889af1067ea8cbc492f770bcfb1f5d3073be60668cfb3a08a7f0336bbdc'); (0.002s)
    [11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg148_banned WHERE expiry < '2006-09-22 15:00:33' (0.002s)
    [13] => SELECT * FROM cpg148_banned WHERE (ip_addr='81.52.163.8' OR ip_addr='81.52.163.8' OR user_id=1) AND brute_force=0 (0.001s)
    [14] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = ''  ORDER BY pos (0.004s)
    [15] => SELECT aid FROM cpg148_albums as a WHERE category>=10000 (0.006s)
    [16] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.003s)
    [17] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '1'  ORDER BY pos (0.002s)
    [18] => SELECT aid FROM cpg148_albums WHERE category = 5 (0.001s)
    [19] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0.001s)
    [20] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '5'  ORDER BY pos (0.002s)
    [21] => SELECT aid FROM cpg148_albums WHERE category = 8 (0.003s)
    [22] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 8 (0.002s)
    [23] => SELECT aid FROM cpg148_albums WHERE category = 3 (0.001s)
    [24] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0.002s)
    [25] => SELECT aid FROM cpg148_albums WHERE category = 9 (0s)
    [26] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 9 (0.001s)
    [27] => SELECT aid FROM cpg148_albums WHERE category = 11 (0.001s)
    [28] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 11 (0.001s)
    [29] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '11'  ORDER BY pos (0.001s)
    [30] => SELECT aid FROM cpg148_albums WHERE category = 13 (0.001s)
    [31] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 13 (0.007s)
    [32] => SELECT aid FROM cpg148_albums WHERE category = 14 (0.002s)
    [33] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 14 (0.001s)
    [34] => SELECT aid FROM cpg148_albums WHERE category = 15 (0.001s)
    [35] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 15 (0.001s)
    [36] => SELECT aid FROM cpg148_albums WHERE category = 10 (0.002s)
    [37] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 10 (0.001s)
    [38] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '10'  ORDER BY pos (0.001s)
    [39] => SELECT aid FROM cpg148_albums WHERE category = 12 (0s)
    [40] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 12 (0.002s)
    [41] => SELECT aid FROM cpg148_albums WHERE category = 16 (0.001s)
    [42] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 16 (0.001s)
    [43] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '16'  ORDER BY pos (0.001s)
    [44] => SELECT aid FROM cpg148_albums WHERE category = 18 (0.001s)
    [45] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 18 (0.001s)
    [46] => SELECT aid FROM cpg148_albums WHERE category = 19 (0.001s)
    [47] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 19 (0.009s)
    [48] => SELECT aid FROM cpg148_albums WHERE category = 20 (0.02s)
    [49] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 20 (0.002s)
    [50] => SELECT aid FROM cpg148_albums WHERE category = 21 (0s)
    [51] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 21 (0.001s)
    [52] => SELECT aid FROM cpg148_albums WHERE category = 29 (0.001s)
    [53] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 29 (0.001s)
    [54] => SELECT aid FROM cpg148_albums WHERE category = 17 (0.001s)
    [55] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 17 (0.001s)
    [56] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '17'  ORDER BY pos (0.001s)
    [57] => SELECT aid FROM cpg148_albums WHERE category = 22 (0.001s)
    [58] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 22 (0.001s)
    [59] => SELECT aid FROM cpg148_albums WHERE category = 23 (0.065s)
    [60] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 23 (0.002s)
    [61] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '23'  ORDER BY pos (0.001s)
    [62] => SELECT aid FROM cpg148_albums WHERE category = 24 (0.001s)
    [63] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 24 (0.14s)
    [64] => SELECT aid FROM cpg148_albums WHERE category = 25 (0s)
    [65] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 25 (0.001s)
    [66] => SELECT aid FROM cpg148_albums WHERE category = 26 (0.001s)
    [67] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 26 (0.001s)
    [68] => SELECT aid FROM cpg148_albums WHERE category = 27 (0.001s)
    [69] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 27 (0.001s)
    [70] => SELECT aid FROM cpg148_albums WHERE category = 28 (0.001s)
    [71] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 28 (0.001s)
    [72] => SELECT count(*) FROM cpg148_albums as a WHERE category = '28' (0.001s)
    [73] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg148_albums as a LEFT JOIN cpg148_pictures as p ON a.thumb=p.pid WHERE category=28 ORDER BY a.pos LIMIT 0,1 (0.002s)
    [74] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg148_albums AS a  LEFT JOIN cpg148_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (41)GROUP BY a.aid (0.688s)
    [75] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='1141' (0.007s)
    [76] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '28'  ORDER BY pos (0.001s)
    [77] => SELECT aid FROM cpg148_albums as a WHERE category = '0' (0.001s)
    [78] => SELECT count(*) FROM cpg148_albums as a WHERE 1 (0.001s)
    [79] => SELECT count(*) FROM cpg148_pictures as p LEFT JOIN cpg148_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.004s)
    [80] => SELECT count(*) FROM cpg148_comments as c LEFT JOIN cpg148_pictures as p ON c.pid=p.pid LEFT JOIN cpg148_albums as a ON a.aid=p.aid WHERE 1 (0.005s)
    [81] => SELECT count(*) FROM cpg148_categories WHERE 1 (0.001s)
    [82] => SELECT sum(hits) FROM cpg148_pictures as p LEFT JOIN cpg148_albums as a ON p.aid=a.aid WHERE 1 (0.065s)
    [83] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0.004s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.1.14
------------------
Coppermine version: 1.4.8(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
Active Persistent Links 0
Active Links 1
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.3
==========================
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 | leak, symlink | leak, symlink
file_uploads | On | On
include_path | .:/include:/usr/lib/php | .:/include:/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 | 90 | 90
max_input_time | -1 | -1
upload_max_filesize | 50M | 50M
post_max_size | 50M | 50M
==========================
Page generated in 1.735 seconds - 84 queries in 1.109 seconds - Album set : ; Meta set: ;
Remarques
/include/functions.inc.php
Warning line 211: mysql_query(): Unable to save result set

François Keller

Bonjour,

avez vous essayer de réparer les tables de la base de donnée.

P.S. en général, il est beaucoup plus facile d'aider si on a un lien vers la galerie pour se rendre compte des problèmes
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

zettili

Effectivement mon amis, c'était le probléme Merci beaucoup, j'ai réparé mes tables et je les ais optimisé , et ça a marché à nouveau,
pour le lien de ma galerie c'est www.mouloudia.org/cpg148
j'ai plus de 110.000 photos vues c'est extra, viva coppermine.

François Keller

Quote from: zettili on September 23, 2006, 04:29:16 PM
Effectivement mon amis, c'était le probléme Merci beaucoup, j'ai réparé mes tables et je les ais optimisé , et ça a marché à nouveau,
pour le lien de ma galerie c'est www.mouloudia.org/cpg148
j'ai plus de 110.000 photos vues c'est extra, viva coppermine.
Je suis bien content que la solution ait été aussi simple.  :D
Pour les galeries avec beaucoup de photos, il est interressant d'optimiser les tables te temps à autre afin d'accélerer les accès à la base de donné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