Undefined index issue in theme
-
I have the latest version of WordPress but an older theme and I get the following message both along the top of my dashboard as well as in my sidebar:
(My site is https://www.thecrazyentrepreneur.com )
Notice: Undefined index: page in /home/mypage/public_html/blog/wp-content/themes/3624/atmosphere/functions.php on line 54
function mytheme_add_admin() {
$themename = “Atmosphere”;
$shortname = get_var_preffix();
$options = get_my_theme_options();
#echo “"; #print_r($_REQUEST); if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=functions.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: themes.php?page=functions.php&reset=true"); die; } AND... when I try to mark the comments as spam, I get this: Warning: Cannot modify header information - headers already sent by (output started at /home/mypage/public_html/blog/wp-content/themes/3624/atmosphere/functions.php:54) in /home/mypage/public_html/blog/wp-includes/pluggable.php on line 890 Yes, I tried to reach the creator of the theme but there is no way to get a hold of them... I get redirected to a webpage that only has their name. I am not familiar with PHP. Any help you could give would be fabulous.
- The topic ‘Undefined index issue in theme’ is closed to new replies.