• JPAres1

    (@jpares1)


    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.

Viewing 6 replies - 16 through 21 (of 21 total)
  • Hi Jackie,
    No Email received?

    I see you have a redefine error now?

    As I have the latest WordPress with this theme loaded and there is no problem, the problem must lay with your wordpress install, if you have ftp download WordPress and upload, over-write the WordPress files and folders.
    IMPORTANT except the folder called /wp-content/ (themes and plugins), the WordPress wp-config is not in the download so no problem with this file and losing your connection settings.

    HTH

    David

    Thread Starter JPAres1

    (@jpares1)

    Hi David,
    Sorry… maybe I ended up in your spam folder?

    In any case, my hosting company reinstalled WordPress but they also reinstalled the wp-content. Brainiacs!

    Now I can no longer login because wordpress doesn’t recognize me.

    I have a ticket in for them to call me today because they will need to revert it back to the way it was then.

    The other option is to upload my backup copy of wp-content and see if that works.

    Do you have any other suggestions?

    Best regards,

    Jackie

    Jackie, no email I check my spam folder daily, and never have any un-read messages.

    However, I did see the site today they have removed the content and changed the database, wait until they ‘restore everything’, when I saw it I did think Aghhh!

    If you have ftp then wait until they re-instate the site and database, disable any plugins, back to basics activate the Twenty Ten theme.

    Go to Admin > Dashboard > Updates, there is an option to update or re-install WordPress 3.01, do one or the other, just to be sure the correct files are present.

    Delete my old Atmosphere 2010 theme, then upload the new downloaded theme, upload it and activate it.

    To turn ‘on or off’ the messages you were getting, you need an ftp client or if you have it in your ISP control panel a ‘File Manager’.

    The file is wp_config.php and the line is:

    define('WP_DEBUG', true);

    Switch it true or false

    HTH

    David

    Thread Starter JPAres1

    (@jpares1)

    Thanks David.

    What a wild ride this is… just for a lil ol’ blog! Good Lord! (I’m rolling my eyes now). I have been working this blog for three or four years and I never had problems until now.

    I’ve printed out your instructions and resent you that email (just in case). Let me know if you get it… it’s from jackie at pillai consulting dot net.

    I think in the future, if I see an update, I would probably be better served to download it myself and then upload it to the server through the ftp rather than letting the hosting company handle it. Apparently, they never did any updates since we started the blog, hence the issues that have arisen. At least if I do it myself, I can control what gets overwritten.

    Then if I mess up, the only nincompoop would be me! Haha!

    Thanks again for your help and unending patience!!!

    Best regards,

    Jackie

    Still waiting for the theme to be reviewed for WordPress Extend, I have done four revisions, and I am sure have all the bases covered now, if you have downloaded the theme please re-download the latest.

    Revised and Resolved in this version:
    Resized Image Output
    Undefined Variable $style
    Not all theme options were saved
    All recommended and deprecated code changes
    Non-Printable character in comment string

    David

    Thread Starter JPAres1

    (@jpares1)

    OK, I downloaded it… will implement it sometime in the next couple of days. Thanks for keeping me posted!

    I’ll let you know when I’ve done it. ??

    Jackie

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Undefined index issue in theme’ is closed to new replies.