Probleme pour voter Probleme pour voter
 

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

Probleme pour voter

Started by brufunofo, March 17, 2005, 08:54:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brufunofo

Bonjour
Voila j ai un petit probleme  quand je veut voter pour une image cas me m est cas :

There was an error while processing a database query

J ai regarde sur sql la table pour les votes est bien presente pourtant  ?


http://brufunof.eurower.net/gallery      


François Keller

Bonjour,

Avez vous essayé en mode admin, onglet utilitaires de faire la mise à jour de 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

brufunofo

oui j ai essaye c toujour pareil ?

Pascal YAP

Brufunofo,
Lorsque tu es en MODE ADMIN, passe par le bouton "Configuration" et tout en bas de page active le MODE DEBUG.
Des indications seront sans doute utiles pour comprendre.

PYAP

brufunofo

quand je vote pour l image le debug me mest:

QuoteWhile executing query "DELETE FROM cpg132_votes WHERE vote_time < 1108578677" on 0

mySQL error: Table 'db_brufunof2.cpg132_votes' doesn't exist

et cas c les info debug:

QuoteUSER:
------------------
Array
(
   [ID] => a73f681e8993d2e552fa89c48880bd83
   [am] => 1
   [lang] => french
   [liv] => Array
       (
           
  • => 21
               [1] => 19
               [2] => 23
               [3] => 28
               [4] => 13
           )

       [theme] => digital_flow
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
  • => 2
       [user_id] => 2
       [1] => brufunofo
       [user_name] => brufunofo
       [2] => 1
       [user_level] => 1
       [groups] => Array
           (
               
  • => 1
               [1] => 2
               [2] => 20
           )

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

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
       [1] => SELECT user_id, username as user_name, user_level FROM `db_brufunof2`.phpbb_users WHERE user_id='2' AND user_password='37994b231e83d6a05ea4d318421ecf32' AND user_active='1'
       [2] => SELECT (ug.group_id + 5) as group_id FROM `db_brufunof2`.phpbb_user_group as ug LEFT JOIN `db_brufunof2`.phpbb_groups as g ON ug.group_id = g.group_id WHERE user_id = 2 AND user_pending = 0 AND group_single_user = 0
       [3] => 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 cpg132_usergroups WHERE group_id in (1,2,20)
       [4] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
       [5] => DELETE FROM cpg132_banned WHERE expiry < 1111170677
       [6] => SELECT * FROM cpg132_banned WHERE ip_addr='213.103.254.61' OR ip_addr='213.103.254.61' OR user_id=2
       [7] => DELETE FROM cpg132_online WHERE last_action < NOW() - INTERVAL 10 MINUTE
       [8] => SELECT * FROM cpg132_online WHERE user_id='2'
       [9] => UPDATE cpg132_online SET last_action = NOW() WHERE user_id = '2' LIMIT 1
       [10] => SELECT a.votes as votes_allowed, p.votes as votes, pic_rating, owner_id FROM cpg132_pictures AS p, cpg132_albums AS a WHERE p.aid = a.aid AND pid = '13' LIMIT 1
       [11] => DELETE FROM cpg132_votes WHERE vote_time < 1108578677
    )

    ==========================
    GET :
    ------------------
    Array
    (
       [pic] => 13
       [rate] => 5
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.0.3 - OK
    ------------------
    mySQL version: 4.1.9-standard-log
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.1.9
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.1.9
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient  
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.2.2
    Linked Version 1.2.2.2
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | On | 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/local/lib/php | .:/usr/local/lib/php
    open_basedir | /home/b/brufunof/user/:/usr/local/lib/php/:/home/system/user/www/shared/ | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i -f brufunof@eurower.net | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 10 | 10
    max_input_time | 60 | 60
    upload_max_filesize | 5M | 5M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.122 seconds - 12 queries in 0.009 seconds - Album set :

brufunofo

Probleme resolu l erreur venait que le nom de la table n etais pas correct
Table 'db_2.CPG_votes'  au lieu de Table 'db_2.cpg132_votes'