Advanced search  

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

Pages: [1]   Go Down

Author Topic: here was an error while processing a database query!!  (Read 2634 times)

0 Members and 1 Guest are viewing this topic.

mikerips

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
here was an error while processing a database query!!
« on: August 03, 2004, 05:54:38 pm »

Starting yesterday I have been getting a database error.  I am using PHP Version 4.3.6 and apache 1.3.

Any help?



USER:
------------------
Array
(
    [ID] => 692db562aab4d382a9ab0ff4e6de559f
    [am] => 1
    [sort] => dd
    [liv] => Array
        (
           
  • => 57

        )

)

==========================
USER DATA:
------------------
Array
(
   
  • => 1
[user_id] => 1
    [1] => 1
    [user_group] => 1
    [2] => YES
    [user_active] => YES
    [3] => admin
    [user_name] => admin
    [4] => no4access
    [user_password] => ********
    [5] => 2004-08-03 07:43:16
    [user_lastvisit] => 2004-08-03 07:43:16
    [6] => 2004-05-10 14:04:43
    [user_regdate] => 2004-05-10 14:04:43
    [7] =>
    [user_lang] =>
    [8] =>
    [user_email] =>
    [9] => http://www.evanstonmarina.com
    [user_website] => http://www.evanstonmarina.com
    [10] => Evanston, Illinois
    [user_location] => Evanston, Illinois
    [11] => Objective analysis of Marina Proposal
    [user_interests] => Objective analysis of Marina Proposal
    [12] => Retired
    [user_occupation] => Retired
    [13] =>
    [user_actkey] =>
    [14] => 1
    [group_id] => 1
    [15] => Administrators
    [group_name] => Administrators
    [16] => 0
    [group_quota] => 0
    [17] => 1
    [has_admin_access] => 1
    [18] => 1
    [can_rate_pictures] => 1
    [19] => 1
    [can_send_ecards] => 1
    [20] => 1
    [can_post_comments] => 1
    [21] => 1
    [can_upload_pictures] => 1
    [22] => 1
    [can_create_albums] => 1
    [23] => 0
    [pub_upl_need_approval] => 0
    [24] => 0
    [priv_upl_need_approval] => 0
    [25] => 3
    [upload_form_config] => 3
    [26] => 1
    [custom_user_upload] => 1
    [27] => 5
    [num_file_upload] => 5
    [28] => 3
    [num_URI_upload] => 3
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg130_filetypes;
  • [1] => SELECT * FROM cpg130_users, cpg130_usergroups WHERE user_group = group_id AND user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'e4e15657c0e1c7ece98f8e2dab858f15'
        [2] => DELETE FROM cpg130_banned WHERE expiry < 1091547987
        [3] => SELECT * FROM cpg130_banned WHERE ip_addr='192.168.0.47' OR ip_addr='192.168.0.47' OR user_id=1
        [4] => SELECT cid, name, description, thumb FROM cpg130_categories WHERE parent = ''  ORDER BY pos
        [5] => SELECT aid FROM cpg130_albums WHERE category >= 10000
        [6] => SELECT count(*) FROM cpg130_pictures, cpg130_albums WHERE cpg130_pictures.aid = cpg130_albums.aid AND category >= 10000
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.6 - OK
    ------------------
    mySQL version: 3.23.58-nt
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.49
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    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 | no value | no value
    file_uploads | On | On
    include_path | .;c:\php4\pear | .;c:\php4\pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    sendmail_path | no value | no value
    SMTP | mail.leestreet.com | mail.leestreet.com
    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 | 8M | 8M
    ==========================
    Page generated in 0.137 seconds - 7 queries in 0.008 seconds - Album set :
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: here was an error while processing a database query!!
« Reply #1 on: August 03, 2004, 06:00:22 pm »

It helps if you tell us what the database error actually says. In your case, it is this;

Quote
While executing query "SELECT COUNT(*) from cpg130_pictures WHERE aid='1'  AND approved='YES' " on 0

mySQL error: Can't open file: 'cpg130_pictures.MYD'. (errno: 145)

This usually means your db table is corrupted.  Use your db tool, and go to the pictures table, click on the 'operations' tab, and select 'repair'.

Hopefully, this will fix it.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 19 queries.