forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: modom on April 18, 2005, 06:07:23 pm

Title: 1.3.2 version lots of theme errors
Post by: modom on April 18, 2005, 06:07:23 pm
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
        (
            [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
(
    [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
        (
            [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
(
    [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 :

Title: Re: 1.3.2 version lots of theme errors
Post by: modom on April 18, 2005, 06:51:40 pm
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
        (
            [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
(
    [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 :
Title: Re: 1.3.2 version lots of theme errors
Post by: Nibbler on April 18, 2005, 10:05:39 pm
The notices are not important, and the sql error has been discussed before.
Title: Re: 1.3.2 version lots of theme errors
Post by: modom on April 19, 2005, 12:06:04 am
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!
Title: Re: 1.3.2 version lots of theme errors
Post by: Nibbler on April 19, 2005, 01:38:02 pm
http://forum.coppermine-gallery.net/index.php?topic=11731.0
Title: Re: 1.3.2 version lots of theme errors
Post by: modom on April 19, 2005, 05:01:19 pm
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!