"There was an error while processing a database query" "There was an error while processing a database query"
 

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

"There was an error while processing a database query"

Started by Eddy17, December 20, 2005, 09:54:06 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Eddy17

Hi

my gallery suddenly doesnt work any more, and it showed this error:

USER:
------------------
Array
(
    [ID] => 9bb4705e221a8c59a269e72f4e581ad8
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_group] => 1
    [user_active] => YES
    [user_name] => Eddy
    [user_password] => ********
    [user_lastvisit] => 2005-12-20 09:42:28
    [user_regdate] => 2005-01-03 20:51:42
    [user_group_list] => 2
    [user_email] => Eddy23d@aol.com
    [user_website] => chaos-klasse.de.tf
    [user_location] => Hölle auf Erden
    [user_interests] => Pardy, Volleeeeball, theatre
    [user_occupation] => DJ
    [user_actkey] => c1bf370dcf09d455dc12167840c24bcb
    [disk_max] => 51200
    [disk_min] => 51200
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [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] => 51200
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
           
  • => 2
                [1] => 1
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM galerie_filetypes;
        [1] => SELECT * FROM galerie_users WHERE user_id='2'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'd0a7a530d6a8b6742489e37630ec5fbe'
        [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 galerie_usergroups WHERE group_id in (2,1)
        [3] => SELECT group_name FROM  galerie_usergroups WHERE group_id= 1
        [4] => DELETE FROM galerie_banned WHERE expiry < '2005-12-20 09:42:31'
        [5] => SELECT * FROM galerie_banned WHERE ip_addr='84.140.208.89' OR ip_addr='84.140.208.89' OR user_id=2
        [6] => SELECT cid, name, description, thumb FROM galerie_categories WHERE parent = ''  ORDER BY pos
        [7] => SELECT aid FROM galerie_albums as a WHERE category>=10000
        [8] => SELECT count(*) FROM galerie_pictures as p, galerie_albums as a WHERE p.aid = a.aid AND category >= 10000
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.1 - OK
    ------------------
    mySQL version: 4.0.26-standard-log
    ------------------
    Coppermine version: 1.3.5
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    JIS-mapped Japanese Font Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.26
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/local/mysql/include
    MYSQL_LIBS -L/usr/local/mysql/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 | 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 | fsockopen,pfsockopen,proc_open,proc_nice,proc_terminate,proc_close,proc_get_status,shell_exec,exec,passthru,system,popen,highlight_file,diskfreespace,disk_free_space,disk_total_space,show_source,php_uname,ini_alter,ini_restore,ini_set,getrusage,get_current_user,set_time_limit,getmyuid,getmypid,dl,leak | fsockopen,pfsockopen,proc_open,proc_nice,proc_terminate,proc_close,proc_get_status,shell_exec,exec,passthru,system,popen,highlight_file,diskfreespace,disk_free_space,disk_total_space,show_source,php_uname,ini_alter,ini_restore,ini_set,getrusage,get_current_user,set_time_limit,getmyuid,getmypid,dl,leak
    file_uploads | On | On
    include_path | .: | .: |  |
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value |  |  |  |  |  |  |  |
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 10 | 10
    max_input_time | 30 | 30
    upload_max_filesize | 1550K | 1550K
    post_max_size | 1550K | 1550K
    ==========================
    Page generated in 0.043 seconds - 9 queries in 0.01 seconds - Album set :

















Joachim Müller

that's not an error message, but the debug_ouput. Post the actual error message and/or a link to your site.

Eddy17

There was an error while processing a database query.


While executing query "SELECT count(*) FROM galerie_pictures as p, galerie_albums as a WHERE p.aid = a.aid AND category >= 10000" on 0

mySQL error: Can't open file: 'galerie_pictures.MYI'. (errno: 145)



Datei: /usr/export/www/vhosts/funnetwork/hosting/chaosklasse/galerie/include/functions.inc.php - Zeile: 105



That's it

Thanks


Eddy17