Fatal error: Cannot redeclare html_albummenu() Fatal error: Cannot redeclare html_albummenu()
 

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

Main Menu

Fatal error: Cannot redeclare html_albummenu()

Started by cbrammer, January 19, 2009, 01:06:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cbrammer

Hello,

Can someone please assist me? I have made no changes to coppermine, and when I logged in today, I receive the following error:

Fatal error: Cannot redeclare html_albummenu() (previously declared in /home/gabriell/public_html/coppermine/index.php:92) in /home/gabriell/public_html/coppermine/index.php on line 976

The link to my gallery is:
http://www.gabriellechristian.com/coppermine


  • I put in debug mode, but it will not output error messages. I continue to receive the error that is listed above.
    I read through other topics and saw where they recommended to repair tables. So I did that for all tables and that didn't resolve.
    I upgraded coppermine to recent version and that didn't help.

Here is debug info from only page I can get it (admin:config) - which is not presenting an error:

USER:
------------------
Array
(
    [ID] => 4834a9fc373223ad25400983bf9dd253
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => gabriell
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => delete from `gabriell_copp1`.cpg_sessions where time<1232318211 and remember=0; (0.001s)
    [2] => delete from `gabriell_copp1`.cpg_sessions where time<1231112211; (0.001s)
    [3] => select user_id from `gabriell_copp1`.cpg_sessions where session_id = 'e1c385281ff22b542d7852932a9355c2' (0s)
    [4] => select user_id as id, user_password as password from `gabriell_copp1`.cpg_users where user_id=1 (0s)
    [5] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `gabriell_copp1`.cpg_users AS u INNER JOIN `gabriell_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [6] => SELECT user_group_list FROM `gabriell_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [7] => 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 cpg_usergroups WHERE group_id in (1) (0s)
    [8] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [9] => update `gabriell_copp1`.cpg_sessions set time='1232321811' where session_id = 'e1c385281ff22b542d7852932a9355c2' (0s)
    [10] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
    [11] => DELETE FROM cpg_banned WHERE expiry < '2009-01-18 15:36:51' (0s)
    [12] => SELECT * FROM cpg_banned WHERE (ip_addr='24.7.154.128' OR ip_addr='24.7.154.128' OR user_id=1) AND brute_force=0 (0s)
    [13] => UPDATE cpg_config SET value = '/home/gabriell/public_html/coppermine/' WHERE name = 'ecards_more_pic_target' (0s)
    [14] => UPDATE cpg_config SET value = '/home/gabriell/public_html/coppermine' WHERE name = 'home_target' (0s)
    [15] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
)

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

==========================
POST :
------------------
Array
(
    [gallery_name] => Gabrielle Christian Photo Gallery
    [gallery_description] => Gabrielle Christian Related Photos
    [gallery_admin_email] => carriebrammer@gmail.com
    [ecards_more_pic_target] => /home/gabriell/public_html/coppermine
    [home_target] => /home/gabriell/public_html/coppermine
    [enable_zipdownload] => 1
    [time_offset] => -8
    [enable_help] => 2
    [clickable_keyword_search] => 0
    [enable_plugins] => 0
    [ban_private_ip] => 0
    [browse_batch_add] => 1
    [lang] => english
    [language_fallback] => 1
    [charset] => utf-8
    [language_list] => 0
    [language_flags] => 0
    [language_reset] => 1
    [theme] => classic
    [theme_list] => 0
    [theme_reset] => 0
    [display_faq] => 0
    [custom_lnk_name] =>
    [custom_lnk_url] =>
    [show_bbcode_help] => 0
    [vanity_block] => 0
    [custom_header_path] =>
    [custom_footer_path] =>
    [main_table_width] => 100%
    [subcat_level] => 2
    [albums_per_page] => 12
    [album_list_cols] => 2
    [alb_list_thumb_size] => 50
    [main_page_layout] => breadcrumb/catlist/alblist/random,2/lastup,2
    [first_level] => 1
    [categories_alpha_sort] => 0
    [link_pic_count] => 0
    [thumbcols] => 3
    [thumbrows] => 4
    [max_tabs] => 12
    [caption_in_thumbview] => 1
    [views_in_thumbview] => 1
    [display_comment_count] => 0
    [display_uploader] => 0
    [display_filename] => 0
    [default_sort_order] => na
    [min_votes_for_rating] => 1
    [picture_table_width] => 480
    [display_pic_info] => 0
    [max_img_desc_length] => 512
    [max_com_wlength] => 38
    [display_film_strip] => 0
    [display_film_strip_filename] => 0
    [max_film_strip_items] => 3
    [slideshow_interval] => 5000
    [filter_bad_words] => 0
    [enable_smilies] => 0
    [disable_comment_flood_protect] => 0
    [max_com_lines] => 10
    [max_com_size] => 512
    [email_comment_notification] => 0
    [comments_sort_descending] => 0
    [comments_anon_pfx] => Guest_
    [jpeg_qual] => 80
    [thumb_width] => 100
    [thumb_use] => any
    [make_intermediate] => 1
    [picture_width] => 400
    [max_upl_size] => 1024
    [max_upl_width_height] => 2048
    [auto_resize] => 1
    [allow_private_albums] => 1
    [show_private] => 0
    [forbiden_fname_char] => $/\\:*?"'<>|` &
    [allowed_img_types] => ALL
    [allowed_mov_types] => ALL
    [media_autostart] => 1
    [allowed_snd_types] => mp3/midi/mid/wma/wav/ogg
    [allowed_doc_types] => doc/txt/rtf/pdf/xls/pps/ppt/zip/gz/mdb
    [thumb_method] => im
    [impath] =>
    [im_options] => -antialias
    [read_exif_data] => 0
    [read_iptc_data] => 0
    [fullpath] => albums/
    [userpics] => userpics/
    [normal_pfx] => normal_
    [thumb_pfx] => thumb_
    [default_dir_mode] => 0755
    [default_file_mode] => 0644
    [allow_user_registration] => 0
    [allow_unlogged_access] => 1
    [reg_requires_valid_email] => 1
    [reg_notify_admin_email] => 0
    [admin_activation] => 0
    [allow_duplicate_emails_addr] => 0
    [upl_notify_admin_email] => 0
    [allow_memberlist] => 0
    [allow_email_change] => 0
    [users_can_edit_pics] => 0
    [login_threshold] => 5
    [login_expiry] => 10
    [report_post] => 0
    [user_profile1_name] => Location
    [user_profile2_name] => Interests
    [user_profile3_name] => Website
    [user_profile4_name] => Occupation
    [user_profile5_name] =>
    [user_profile6_name] => Biography
    [user_field1_name] =>
    [user_field2_name] =>
    [user_field3_name] =>
    [user_field4_name] =>
    [cookie_name] => coppermine
    [cookie_path] => /
    [smtp_host] =>
    [smtp_username] =>
    [smtp_password] =>
    [log_mode] => 0
    [log_ecards] => 0
    [vote_details] => 0
    [hit_details] => 0
    [debug_mode] => 1
    [debug_notice] => 0
    [offline] => 0
    [update_config] => Save new configuration
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.6 - OK
------------------
mySQL version: 4.1.22-standard
------------------
Coppermine version: 1.4.19(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
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: 1

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
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
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.2
Linked Version 1.2.3
==========================
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/local/php5/lib/php | .:/usr/local/php5/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 | 90 | 90
max_input_time | 60 | 60
upload_max_filesize | 32M | 32M
post_max_size | 8M | 8M
==========================
Page generated in 0.065 seconds - 16 queries in 0.002 seconds - Album set : ; Meta set: ;

Nibbler

Coppermine's index.php does not have 976 lines, so you must have a corrupt copy on the server. Delete index.php first, then upload a clean copy to be sure. Also might be worth trying a different FTP client.

cbrammer

I deleted index.php and uploaded clean version. It resolved the issue.

I continued to get the fatal errors for thumbnails.php, displayimage.php, and showthumb.php files. I deleted those and replaced as well.

Everything works as should.

Thank you. I appreciate your help.