Advanced search  

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]

Pages: [1]   Go Down

Author Topic: There was an error while processing a database query.  (Read 8072 times)

0 Members and 1 Guest are viewing this topic.

bbtc

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
There was an error while processing a database query.
« on: April 11, 2006, 04:37:45 pm »

escuse me for my english i'm bad
i have a problem with my gallery

While executing query "SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 4" on 0

mySQL error: Table './bbtc/cpg132_pictures' is marked as crashed and should be repaired



Fichier: /var/www/free.fr/6/4/bbtc/nouveau_site/site/cpg/include/functions.inc.php - Ligne: 105



(
    [ID] => a2f0584090366ab7b5c8a003e1aef618
    [am] => 1
    [liv] => Array
        (
           
  • => 255
  • [1] => 253
                [2] => 251
                [3] => 277
                [4] => 307
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
[user_id] => 2
    [user_group] => 2
    [user_active] => YES
    [user_name] => bbtc
    [user_password] => ********
    [user_lastvisit] => 2006-04-11 15:38:04
    [user_regdate] => 2005-05-30 17:55:58
    [user_group_list] => 1,3,4
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 1024
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 0
    [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] => 1
    [group_name] => Registered
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 2
    [groups] => Array
        (
           
  • => 1
  • [1] => 3
                [2] => 4
                [3] => 2
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
  • [1] => SELECT * FROM cpg132_users WHERE user_id='2'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'e10adc3949ba59abbe56e057f20f883e'
        [2] => 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,3,4,2)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 2
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1144766082
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='86.198.48.25' OR ip_addr='86.198.48.25' OR user_id=2
        [6] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos
        [7] => SELECT aid FROM cpg132_albums WHERE category = 4
        [8] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 4
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.10 - OK
    ------------------
    mySQL version: 5.0.19
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version 2.0 or higher
    FreeType Support enabled
    FreeType Linkage with freetype
    T1Lib Support enabled
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Links 1
    Client API version 5.0.19
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/mysql/include/mysql
    MYSQL_LIBS -L/usr/mysql/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.3
    Linked Version 1.2.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 | /var/www/free.fr/6/4/bbtc/include:. | .
    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 | 2M | 2M
    ==========================
    Page generated in 0.951 seconds - 9 queries in 0.065 seconds - Album set :
« Last Edit: April 12, 2006, 03:52:40 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: There was an error while processing a database query.
« Reply #1 on: April 11, 2006, 05:27:14 pm »

Repair the table as suggested, use phpmyadmin.
Logged

bbtc

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: There was an error while processing a database query.
« Reply #2 on: April 11, 2006, 11:53:01 pm »

escuse i don't kown repair the table
how do i do?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

bbtc

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: There was an error while processing a database query.
« Reply #4 on: April 12, 2006, 10:33:45 am »

sorry i'm new i don't find the table in my gallery
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: There was an error while processing a database query.
« Reply #5 on: April 12, 2006, 10:37:58 am »

didn't find "cpg132_pictures" ?
Logged
‍I don't answer to PM with support question
Please post your issue to related board

bbtc

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: There was an error while processing a database query.
« Reply #6 on: April 12, 2006, 11:33:24 am »

non i don't
Logged

bbtc

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: There was an error while processing a database query.
« Reply #7 on: April 12, 2006, 12:18:16 pm »

non i don't
are there a people speak french??
Logged

Nibbler

  • Guest
Re: There was an error while processing a database query.
« Reply #8 on: April 12, 2006, 03:44:27 pm »

If you need support in french then use the french support board.

http://forum.coppermine-gallery.net/index.php?board=38.0
Logged

bbtc

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: There was an error while processing a database query.
« Reply #9 on: April 12, 2006, 03:51:08 pm »

thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 19 queries.