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: Critical DB Error - in index.php - line 624  (Read 1880 times)

0 Members and 1 Guest are viewing this topic.

ravenlife

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Critical DB Error - in index.php - line 624
« on: October 08, 2008, 06:56:15 pm »

Hi Guys,

logged onto my site this afternoon - and i am getting a critical error - as far as i can tell nothings changed (there were probably images uploaded)

i am getting the following error

Quote
While executing query "SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg14x_albums AS a  LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (7, 8, 11, 12, 13, 14, 17, 18, 19, 20, 21, 23)GROUP BY a.aid" on 0

mySQL error:

ive hunted that bit of code down to line 624 in index.php, i tried replacing the index.php file (just in case) still the same error

Debug Info

Quote
USER:
------------------
Array
(
    [ID] => a4d23eb68edbe3b665f46c34846a4a56
    [am] => 1
    [lang] => english_gb
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 62
    [user_name] => ravenlife
    [groups] => Array
        (
           
  • => 125

        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 1
    [ufc_min] => 1
    [custom_user_upload] => 0
    [num_file_upload] => 3
    [num_URI_upload] => 0
    [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] => Super Administrator
    [upload_form_config] => 1
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 125
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0.001s)
  • [1] => select * from cpg14x_plugins order by priority asc; (0.004s)
        [2] => SELECT * FROM cpg14x_bridge (0.001s)
        [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 cpg14x_usergroups WHERE group_id in (125) (0.002s)
        [4] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 125 (0.002s)
        [5] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 62 (0.001s)
        [6] => SELECT name, value FROM cpg14x_config where name REGEXP '^plugin_displayfields_' (0.001s)
        [7] => DELETE FROM cpg14x_banned WHERE expiry < '2008-10-08 16:53:17' (0.001s)
        [8] => SELECT * FROM cpg14x_banned WHERE (ip_addr='87.82.137.33' OR ip_addr='87.82.137.33' OR user_id=62) AND brute_force=0 (0.001s)
        [9] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = ''  ORDER BY pos (0.002s)
        [10] => SELECT aid FROM cpg14x_albums WHERE category = 16 (0.002s)
        [11] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 16 (0.002s)
        [12] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '16' (0.001s)
        [13] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=16 ORDER BY a.pos LIMIT 0,12 (0.001s)
        [14] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg14x_albums AS a  LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (7, 8, 11, 12, 13, 14, 17, 18, 19, 20, 21, 23)GROUP BY a.aid (0.002s)
        [15] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0.002s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.6 - OK
    ------------------
    mySQL version: 4.1.25-Debian_mt1
    ------------------
    Coppermine version: 1.4.19(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.34 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support:
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support:
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 3
    Client API version 4.1.11
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/run/mysqld/mysqld.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.2
    Linked Version 1.2.2
    ==========================
    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 | no value | no value
    file_uploads | On | On
    include_path | .:/usr/local/php-5.2.6-1/share/pear | .:/usr/local/php-5.2.6-1/share/pear
    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 | 120 | 120
    max_input_time | -1 | -1
    upload_max_filesize | 30M | 30M
    post_max_size | 250M | 250M
    ==========================
    Page generated in 0.426 seconds - 16 queries in 0.026 seconds - Album set : ; Meta set: ;

anyone have any ideas?

thanks in advance

Richie
Logged

ravenlife

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Critical DB Error - in index.php - line 624
« Reply #1 on: October 09, 2008, 02:59:23 pm »

it would appear it has fixed itself

thanks

Richie
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Critical DB Error - in index.php - line 624
« Reply #2 on: October 10, 2008, 07:37:04 am »

Your webhost has probably fixed the broken table.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.