Upgrade MySql 4.2.20 > There was an error while processing a database query Upgrade MySql 4.2.20 > There was an error while processing a database query
 

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]

Main Menu

Upgrade MySql 4.2.20 > There was an error while processing a database query

Started by Rodinou, August 19, 2004, 04:02:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rodinou

All works perfectly ... but albums are not displayed !!!!

"There was an error while processing a database query" is the error which appears since Mysql has been upgraded to 4.2.20 (before 3.58)

Arghhhh : some lines to change ?!

Nibbler


Sigma

Same error for me, I didnt want to open a new topic for it so i will i use this one...

here is the error message:

While executing query "SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg134_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 10" on 0

mySQL error: Got error 12 from storage engine

File: /home/online16/public_html/gallery/include/functions.inc.php - Line: 105


USER:
------------------
Array
(
    [ID] => 3d9ad670f28b7d0b80d0e63c2554b9ff
    [am] => 1
    [liv] => Array
        (
           
  • => 7835
                [1] => 7836
                [2] => 7837
                [3] => 7838
                [4] => 7839
            )

        [lap] => 2
        [uid] => 2
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => sigma
        [user_password] => ********
        [user_lastvisit] => 2005-10-08 15:24:02
        [user_regdate] => 2005-09-25 08:34:10
        [user_group_list] =>
        [user_email] =>
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [disk_max] => 100000
        [disk_min] => 100000
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 1
        [num_file_upload] => 10
        [num_URI_upload] => 10
        [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] => Administrator
        [upload_form_config] => 3
        [group_quota] => 100000
        [can_see_all_albums] => 1
        [group_id] => 1
        [groups] => Array
            (
                [1] => 1
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg134_filetypes;
        [1] => SELECT * FROM cpg134_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '75738ed0f54ff6ad4b9113342035f8e5'
        [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 cpg134_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg134_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg134_banned WHERE expiry < '2005-10-08 17:39:14'
        [5] => SELECT * FROM cpg134_banned WHERE ip_addr='********** OR ip_addr='**********' OR user_id=1
        [6] => SELECT aid, title FROM cpg134_albums WHERE 1
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [insert] => 1
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [d0000] => 174
        [pics] => Array
            (
               
  • => i0000
                [1] => i0001
                [2] => i0002
                [3] => i0003
                [4] => i0004
                [5] => i0005
                [6] => i0006
                [7] => i0007
                [8] => i0008
                [9] => i0009
                [10] => i0010
                [11] => i0011
                [12] => i0012
                [13] => i0013
                [14] => i0014
                [15] => i0015
                [16] => i0016
                [17] => i0017
                [18] => i0018
                [19] => i0019
                [20] => i0020
                [21] => i0021
                [22] => i0022
                [23] => i0023
                [24] => i0024
                [25] => i0025
                [26] => i0026
                [27] => i0027
                [28] => i0028
                [29] => i0029
                [30] => i0030
                [31] => i0031
                [32] => i0032
                [33] => i0033
                [34] => i0034
                [35] => i0035
                [36] => i0036
                [37] => i0037
                [38] => i0038
                [39] => i0039
                [40] => i0041
            )

        [album_lb_id_i0000] => d0000
        [picfile_i0000] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMDEuanBn
        [album_lb_id_i0001] => d0000
        [picfile_i0001] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMDIuanBn
        [album_lb_id_i0002] => d0000
        [picfile_i0002] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMDMuanBn
        [album_lb_id_i0003] => d0000
        [picfile_i0003] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMDQuanBn
        [album_lb_id_i0004] => d0000
        [picfile_i0004] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMDUuanBn
        [album_lb_id_i0005] => d0000
        [picfile_i0005] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMDYuanBn
        [album_lb_id_i0006] => d0000
        [picfile_i0006] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMDcuanBn
        [album_lb_id_i0007] => d0000
        [picfile_i0007] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMDguanBn
        [album_lb_id_i0008] => d0000
        [picfile_i0008] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMDkuanBn
        [album_lb_id_i0009] => d0000
        [picfile_i0009] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMS5qcGc=
        [album_lb_id_i0010] => d0000
        [picfile_i0010] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTAuanBn
        [album_lb_id_i0011] => d0000
        [picfile_i0011] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTEuanBn
        [album_lb_id_i0012] => d0000
        [picfile_i0012] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTIuanBn
        [album_lb_id_i0013] => d0000
        [picfile_i0013] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTMuanBn
        [album_lb_id_i0014] => d0000
        [picfile_i0014] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTQuanBn
        [album_lb_id_i0015] => d0000
        [picfile_i0015] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTUuanBn
        [album_lb_id_i0016] => d0000
        [picfile_i0016] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTYuanBn
        [album_lb_id_i0017] => d0000
        [picfile_i0017] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTcuanBn
        [album_lb_id_i0018] => d0000
        [picfile_i0018] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTguanBn
        [album_lb_id_i0019] => d0000
        [picfile_i0019] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMTkuanBn
        [album_lb_id_i0020] => d0000
        [picfile_i0020] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMi5qcGc=
        [album_lb_id_i0021] => d0000
        [picfile_i0021] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMjAuanBn
        [album_lb_id_i0022] => d0000
        [picfile_i0022] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wMy5qcGc=
        [album_lb_id_i0023] => d0000
        [picfile_i0023] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wNC5qcGc=
        [album_lb_id_i0024] => d0000
        [picfile_i0024] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wNS5qcGc=
        [album_lb_id_i0025] => d0000
        [picfile_i0025] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wNi5qcGc=
        [album_lb_id_i0026] => d0000
        [picfile_i0026] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wNy5qcGc=
        [album_lb_id_i0027] => d0000
        [picfile_i0027] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wOC5qcGc=
        [album_lb_id_i0028] => d0000
        [picfile_i0028] => YWxsaWUvM2J1c3R5YmxvbmRlcy8wOS5qcGc=
        [album_lb_id_i0029] => d0000
        [picfile_i0029] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xMC5qcGc=
        [album_lb_id_i0030] => d0000
        [picfile_i0030] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xMS5qcGc=
        [album_lb_id_i0031] => d0000
        [picfile_i0031] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xMi5qcGc=
        [album_lb_id_i0032] => d0000
        [picfile_i0032] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xMy5qcGc=
        [album_lb_id_i0033] => d0000
        [picfile_i0033] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xNC5qcGc=
        [album_lb_id_i0034] => d0000
        [picfile_i0034] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xNS5qcGc=
        [album_lb_id_i0035] => d0000
        [picfile_i0035] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xNi5qcGc=
        [album_lb_id_i0036] => d0000
        [picfile_i0036] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xNy5qcGc=
        [album_lb_id_i0037] => d0000
        [picfile_i0037] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xOC5qcGc=
        [album_lb_id_i0038] => d0000
        [picfile_i0038] => YWxsaWUvM2J1c3R5YmxvbmRlcy8xOS5qcGc=
        [album_lb_id_i0039] => d0000
        [picfile_i0039] => YWxsaWUvM2J1c3R5YmxvbmRlcy8yMC5qcGc=
        [album_lb_id_i0040] => d0000
        [picfile_i0040] => YWxsaWUvM2J1c3R5YmxvbmRlcy9CaW8gSW5mby50eHQ=
        [album_lb_id_i0041] => d0000
        [picfile_i0041] => YWxsaWUvM2J1c3R5YmxvbmRlcy9UaHJlZSBCdXN0eSBCbG9uZGVzIEZ1Y2tpbmcudHh0
        [album_lb_id_i0042] => d0000
        [picfile_i0042] => YWxsaWUvM2J1c3R5YmxvbmRlcy9UaHVtYnMuZGI=
        [insert] => Insert selected files
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.0.4 - OK
    ------------------
    mySQL version: 4.1.13-standard
    ------------------
    Coppermine version: 1.3.5
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.1.4
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XPM Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.1.13
    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.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 | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    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 | 10 | 10
    max_input_time | -1 | -1
    upload_max_filesize | 2M | 2M
    post_max_size | 16M | 16M
    ==========================
    Page generated in 1.674 seconds - 7 queries in 0.001 seconds - Album set :

kegobeer

Error 12 = Cannot allocate memory

Your server is running out of free memory.  This isn't a Coppermine problem.  Contact your host.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots