1.3.2 version lots of theme errors 1.3.2 version lots of theme errors
 

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

1.3.2 version lots of theme errors

Started by modom, April 18, 2005, 06:07:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

modom

I have safe mode turned on on the server but have a vhost.conf file for each necessary domain with safe mode turned off.  All of the themes are giving the same error.

igames error on first page:

http://www.inkaboutitllc.com/gallery/index.php
Notice: Undefined index: cat_thumb in /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/themes/igames/theme.php on line 1091

Notice: Undefined index: cat_albums in /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/themes/igames/theme.php on line 1092



fruity theme:
Notice: Undefined variable: template_tab_display in /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/themes/fruity/theme.php on line 1369

Notice: Undefined variable: lang_thumb_view in /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/themes/fruity/theme.php on line 1372

Notice: Undefined index: inactive_tab in /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/themes/fruity/theme.php on line 1373

================================

classic theme:
while trying to insert a comment get this error message:

While executing query "INSERT INTO cpg132_comments (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('5', 'admin', 'second comment', NOW(), '', '1', '69.152.209.174', '69.152.209.174')" on 0

mySQL error: Duplicate entry '8388607' for key 1

debug code:
USER:
------------------
Array
(
    [ID] => a5f26189b488ce81dfa97dcd25aca3fb
    [am] => 1
    [liv] => Array
        (
           
  • => 2
                [1] => 3
                [2] => 5
                [3] => 4
                [4] => 8
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => admin
        [user_password] => ********
        [user_lastvisit] => 2005-04-18 09:31:19
        [user_regdate] => 2005-04-11 05:41:35
        [user_group_list] =>
        [user_email] => LBOSSINGER@sc.rr.com
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [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
        [groups] => Array
            (
                [1] => 1
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '*************************'
        [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 cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1113835846
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='69.152.209.174' OR ip_addr='69.152.209.174' OR user_id=1
        [6] => SELECT comments FROM cpg132_pictures, cpg132_albums WHERE cpg132_pictures.aid = cpg132_albums.aid AND pid='5'
        [7] => INSERT INTO cpg132_comments (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('5', 'admin', 'second comment', NOW(), '', '1', '69.152.209.174', '69.152.209.174')
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [event] => comment
        [pid] => 5
        [msg_author] => admin
        [msg_body] => second comment
        [submit] => OK
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.2 - OK
    ------------------
    mySQL version: 3.23.58
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.12 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.58
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -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 | On
    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/share/pear | .:/usr/share/pear
    open_basedir | /home/httpd/vhosts/inkaboutitllc.com/httpdocs:/tmp | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    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 | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.095 seconds - 8 queries in 0.011 seconds - Album set :

    -----------------------------------------------------------------------------------------------
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    eyeball theme:
    Notice: Undefined variable: header in /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/themes/eyeball/theme.php on line 1454

    Notice: Undefined variable: template_tab_display in /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/themes/eyeball/theme.php on line 1459

    Notice: Undefined variable: lang_thumb_view in /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/themes/eyeball/theme.php on line 1462

    Notice: Undefined index: inactive_tab in /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/themes/eyeball/theme.php on line 1463

    debug code:
    USER:
    ------------------
    Array
    (
        [ID] => a5f26189b488ce81dfa97dcd25aca3fb
        [am] => 1
        [liv] => Array
            (
               
  • => 2
                [1] => 3
                [2] => 5
                [3] => 4
                [4] => 8
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => admin
        [user_password] => ********
        [user_lastvisit] => 2005-04-18 09:31:19
        [user_regdate] => 2005-04-11 05:41:35
        [user_group_list] =>
        [user_email] => LBOSSINGER@sc.rr.com
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [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
        [groups] => Array
            (
                [1] => 1
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '***********************'
        [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 cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1113835939
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='69.152.209.174' OR ip_addr='69.152.209.174' OR user_id=1
        [6] => SELECT title,keyword from cpg132_albums WHERE aid='4'
        [7] => SELECT COUNT(*) from cpg132_pictures WHERE aid='4'   
        [8] => SELECT * from cpg132_pictures WHERE aid='4'    ORDER BY filename ASC  LIMIT 1 ,1
        [9] => SELECT title, comments, votes, category, aid FROM cpg132_albums WHERE aid='4' LIMIT 1
        [10] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip FROM cpg132_comments WHERE pid='5' ORDER BY msg_id ASC
        [11] => SELECT title,keyword from cpg132_albums WHERE aid='4'
        [12] => SELECT COUNT(*) from cpg132_pictures WHERE aid='4'   
        [13] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, title, caption,hits,owner_id,owner_name from cpg132_pictures WHERE aid='4'    ORDER BY filename ASC  LIMIT 0 ,10
        [14] => SELECT count(*) from cpg132_comments where pid=6 and msg_id!=0
        [15] => SELECT count(*) from cpg132_comments where pid=5 and msg_id!=0
        [16] => SELECT count(*) from cpg132_comments where pid=9 and msg_id!=0
        [17] => SELECT count(*) from cpg132_comments where pid=8 and msg_id!=0
        [18] => SELECT count(*) from cpg132_comments where pid=3 and msg_id!=0
        [19] => SELECT count(*) from cpg132_comments where pid=4 and msg_id!=0
        [20] => SELECT count(*) from cpg132_comments where pid=7 and msg_id!=0
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [album] => 4
        [pos] => 1
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.2 - OK
    ------------------
    mySQL version: 3.23.58
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.12 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.58
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -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 | On
    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/share/pear | .:/usr/share/pear
    open_basedir | /home/httpd/vhosts/inkaboutitllc.com/httpdocs:/tmp | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    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 | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.157 seconds - 21 queries in 0.018 seconds - Album set :


modom

If I turn off "display notices" in the coppermine admin and try to post a comment I get this error:

Critical error   


There was an error while processing a database query.


While executing query "INSERT INTO cpg132_comments (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('5', 'admin', 'test', NOW(), '', '1', '69.152.209.174', '69.152.209.174')" on 0

mySQL error: Duplicate entry '8388607' for key 1



File: /home/httpd/vhosts/inkaboutitllc.com/httpdocs/gallery/include/functions.inc.php - Line: 105

Debug mode info:
USER:
------------------
Array
(
    [ID] => a5f26189b488ce81dfa97dcd25aca3fb
    [am] => 1
    [liv] => Array
        (
           
  • => 9
                [1] => 18
                [2] => 10
                [3] => 5
                [4] => 6
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => admin
        [user_password] => ********
        [user_lastvisit] => 2005-04-18 09:31:19
        [user_regdate] => 2005-04-11 05:41:35
        [user_group_list] =>
        [user_email] => LBOSSINGER@sc.rr.com
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [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
        [groups] => Array
            (
                [1] => 1
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '1f5121f894d84738e5a0f68e0f4053fc'
        [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 cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1113840084
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='69.152.209.174' OR ip_addr='69.152.209.174' OR user_id=1
        [6] => SELECT comments FROM cpg132_pictures, cpg132_albums WHERE cpg132_pictures.aid = cpg132_albums.aid AND pid='5'
        [7] => INSERT INTO cpg132_comments (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('5', 'admin', 'test', NOW(), '', '1', '69.152.209.174', '69.152.209.174')
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [event] => comment
        [pid] => 5
        [msg_author] => admin
        [msg_body] => test
        [submit] => OK
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.2 - OK
    ------------------
    mySQL version: 3.23.58
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.12 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.58
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -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 | On
    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/share/pear | .:/usr/share/pear
    open_basedir | /home/httpd/vhosts/inkaboutitllc.com/httpdocs:/tmp | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    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 | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.129 seconds - 8 queries in 0.021 seconds - Album set :

Nibbler

The notices are not important, and the sql error has been discussed before.

modom

Do you have a link where this has been discussed?  I have searched for everything I know and could not find anything about numbering the messages.  Each time you try to put a comment in mysql keeps trying to give the comment the same id.

Thanks!


modom

Thank you!

I used that info for the comments table and now it is working.  I use mysql 3.23.58.  I had done a table repair for the comments table but it was still adding the same number to the msg_id.

Thanks again!