There was an error while processing a database query. 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

There was an error while processing a database query.

Started by Butterly17, December 03, 2005, 06:27:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Butterly17

So... I uploaded the gallery, configured it and started uploading phots into the albums I created.  No problems.  But when I select 'album list' to view my progress I get this message:

There was an error while processing a database query.

When I put coppermine into debug mode the following info is given:

USER:
------------------
Array
(
    [ID] => d9a23994601ad000c6e93d7e3b4bfa60
    [am] => 1
    [lang] => english
    [lap] => 2
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
           
  • => 1
            )

        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [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] => 0
        [group_name] => Administrators
        [upload_form_config] => 3
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg140_filetypes; (0s)
        [1] => select * from cpg140_plugins order by priority asc; (0s)
        [2] => delete from `vanessa_Coppermine`.cpg140_sessions where time<1133627011 and remember=0; (0s)
        [3] => delete from `vanessa_Coppermine`.cpg140_sessions where time<1132421011; (0s)
        [4] => select user_id from `vanessa_Coppermine`.cpg140_sessions where session_id=md5("401092d0e7b3ac6acc8c8d40f6b6f517efe9fa03225a368e0a1a6f87d08aa6f0"); (0s)
        [5] => select user_id as id, user_password as password from `vanessa_Coppermine`.cpg140_users where user_id=1 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `vanessa_Coppermine`.cpg140_users AS u INNER JOIN `vanessa_Coppermine`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `vanessa_Coppermine`.cpg140_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [8] => 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 cpg140_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
        [10] => update `vanessa_Coppermine`.cpg140_sessions set time='1133630611' where session_id=md5('401092d0e7b3ac6acc8c8d40f6b6f517efe9fa03225a368e0a1a6f87d08aa6f0'); (0s)
        [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-12-03 17:23:31' (0s)
        [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='216.154.205.203' OR ip_addr='216.154.205.203' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT cid, name, description, thumb FROM cpg140_categories WHERE parent = '0'  ORDER BY pos (0s)
        [15] => SELECT aid FROM cpg140_albums WHERE category = 4 (0s)
        [16] => SELECT count(*) FROM cpg140_pictures as p, cpg140_albums as a WHERE p.aid = a.aid AND category = 4 (0s)
        [17] => SELECT count(*) FROM cpg140_albums as a WHERE category = '4' (0s)
        [18] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg140_albums as a LEFT JOIN cpg140_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,12 (0s)
        [19] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg140_albums AS a  LEFT JOIN cpg140_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26)GROUP BY a.aid (0s)
        [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg140_pictures WHERE pid='46' (0s)
        [21] => SELECT cid, name, description, thumb FROM cpg140_categories WHERE parent = '4'  ORDER BY pos (0.001s)
        [22] => SELECT aid FROM cpg140_albums WHERE category = 3 (0s)
        [23] => SELECT count(*) FROM cpg140_pictures as p, cpg140_albums as a WHERE p.aid = a.aid AND category = 3 (0s)
        [24] => SELECT count(*) FROM cpg140_albums as a WHERE category = '3' (0s)
        [25] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg140_albums as a LEFT JOIN cpg140_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,12 (0s)
        [26] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg140_albums AS a  LEFT JOIN cpg140_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)GROUP BY a.aid (0s)
        [27] => SELECT cid, name, description, thumb FROM cpg140_categories WHERE parent = '3'  ORDER BY pos (0s)
        [28] => SELECT aid FROM cpg140_albums WHERE category = 2 (0s)
        [29] => SELECT count(*) FROM cpg140_pictures as p, cpg140_albums as a WHERE p.aid = a.aid AND category = 2 (0.001s)
        [30] => SELECT count(*) FROM cpg140_albums as a WHERE category = '2' (0s)
        [31] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg140_albums as a LEFT JOIN cpg140_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,1 (0s)
        [32] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg140_albums AS a  LEFT JOIN cpg140_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1)GROUP BY a.aid (0s)
        [33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg140_pictures WHERE pid='26' (0s)
        [34] => SELECT cid, name, description, thumb FROM cpg140_categories WHERE parent = '2'  ORDER BY pos (0s)
        [35] => SELECT aid FROM cpg140_albums as a WHERE category>=10000 (0s)
        [36] => SELECT count(*) FROM cpg140_pictures as p, cpg140_albums as a WHERE p.aid = a.aid AND category >= 10000 (0s)
        [37] => SELECT cid, name, description, thumb FROM cpg140_categories WHERE parent = '1'  ORDER BY pos (0s)
        [38] => SELECT aid FROM cpg140_albums as a WHERE category = '0' (0s)
        [39] => SELECT count(*) FROM cpg140_albums as a WHERE 1 (0s)
        [40] => SELECT count(*) FROM cpg140_pictures as p LEFT JOIN cpg140_albums as a ON a.aid=p.aid WHERE 1 (0s)
        [41] => SELECT count(*) FROM cpg140_comments as c LEFT JOIN cpg140_pictures as p ON c.pid=p.pid LEFT JOIN cpg140_albums as a ON a.aid=p.aid WHERE 1 (0s)
        [42] => SELECT count(*) FROM cpg140_categories WHERE 1 (0s)
        [43] => SELECT sum(hits) FROM cpg140_pictures as p LEFT JOIN cpg140_albums as a ON p.aid=a.aid WHERE 1 (0s)
        [44] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0s)
        [45] => SELECT count(*) FROM cpg140_albums as a WHERE category = '0' (0s)
        [46] => SELECT COUNT(*) from cpg140_pictures WHERE approved = 'YES'  (0s)
        [47] => SELECT * FROM cpg140_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.001s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [cat] => 0
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.9 - OK
    ------------------
    mySQL version: 4.0.25-standard
    ------------------
    Coppermine version: 1.4.2(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 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
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /var/tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.0.7
    Linked Version 1.2.0.7
    ==========================
    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 | /home/vanessa/:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | -1 | -1
    upload_max_filesize | 10M | 10M
    post_max_size | 55M | 55M
    ==========================
    Page generated in 0.235 seconds - 48 queries in 0.003 seconds - Album set : ; Meta set: ;

    When I logout of the gallery and try and view it. I type in the URL http:www.vanessa-kay.net/photos
    I get the following instead of the gallery:


    Template error
    Failed to find block 'log_ecards'(#(<!-- BEGIN log_ecards -->)(.*?)(<!-- END log_ecards -->)#s) in :

                    <div align="center">
                    <table cellpadding="0" cellspacing="1">
                            <tr>

                                    <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                    <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                    <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                    <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                    <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                    <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                    <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>

                                    <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                    <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                    <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                    <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
    <!-- BEGIN documentation -->
                                    <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
    <!-- END documentation -->
                            </tr>
                    </table>
                    </div>

    Anyone have any clues, as to what is going on? I uploaded the gallery and it was working fine for about 20 minutes, the album list was working... and then all of the sudden it started doing this.  I re-installed to try and fix the bug, and that helped notihing.


Joachim Müller

You appear to have upgraded from a previous version of coppermine - read the theme upgrade guide, or use one of the themes that come with the cpg1.4.2 package. Don't post debug output unless a supporter asks you to do so. Post the actual error message instead.

Butterly17

Thanks for your reply.  However, I didn't upgrade form a previous version, and I'm using the default theme.


Joachim Müller

then your files got corrupt. Re-download the coppermine package, unzip it and re-upload it, overwriting the files on your server


Joachim Müller