• 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 15 replies - 1 through 15 (of 21 total)
  • This is in the widget area, your theme has not been updated since 2008, the lists may well be hardcoded in the theme, or are you using an old categories plugin, in the sidebar?

    Notice: wp_list_cats is deprecated since version 2.1! Use wp_list_categories()

    Notice: get_links is deprecated since version 2.1! Use get_bookmarks() instead. in /home/thewils/public_html/blog/wp-includes/functions.php on line 3237

    Notice: get_linkrating is deprecated since version 2.1! Use sanitize_bookmark_field() instead.

    Maybe time to look for a new theme or update the old one?

    In the sidebar.php look for a call to list_cats()

    Better still open sidebar.php select all and paste it to https://wordpress.pastebin.com and paste the link in this topic.

    HTH

    David

    Thread Starter JPAres1

    (@jpares1)

    Thank you David.

    Here is the link you requested.

    https://wordpress.pastebin.com/pUUufMB7

    If you don’t mind my asking, what can I do (because our company likes it so much) to keep that theme updated?

    Best regards,

    Jackie

    Hi Jackie,
    ‘Dedicated WordPress Themes’ the authors Website no longer exists, no point in contacting them.

    Option 1:
    See if you can roll back your version of WordPress, do you have a full website backup?

    Option 2:
    Find a new theme, something familiar to your current theme as a base, and create a small project and pay a developer to change it, to match what you have, then you have a current custom theme.

    Option 3:
    Create a small project and pay a developer to download and remove the base 64 encription on the old theme, and bring your copy up to date replacing the deprecated calls.

    I downloaded and checked the theme and get a number of errors, you have been online for a while so a small investment should not hurt to much.

    HTH

    David

    Thread Starter JPAres1

    (@jpares1)

    Hi David.

    I’ll have to let the others know so we can decide on what to do.

    Thanks for your advice, time and help.

    Best regards,

    Jackie

    Hi Jackie,
    I quite liked this theme, I have started to ‘clone it’ and will make it free download next weekend.

    So if you guys can wait there might be a solution.

    Link to this demo website and bookmark it, over the next week you will see the progress, this is a twenty ten derivitive not the original theme re-worked.

    There is a link in the first post on the demo website if you have any questions.

    David

    Thread Starter JPAres1

    (@jpares1)

    Hi David,

    SWEET!!! I really don’t get the whole twenty ten derivative versus the original theme (this is NOT my forte) but I am thrilled that you are “cloning” it. I will tell my team and will keep checking on the demo site.

    David, you ROCK!

    Thanks ever so much.

    Jackie

    Hi Jackie,
    Composite would be a better word than derivative, a lot of old themes were composite works using the old WordPress ‘Krubricks Theme’, it just means using the theme as the foundation blocks to build on.

    A lot of older themes like ‘Atmosphere’ have no active support but have survived the WordPress and PHP upgrades ok, but now they are starting to fall over where there are deprecated functions that are no longer supported.

    So what I am doing is taking the design and re-creating it with a clean Twenty Ten theme as the foundation blocks, so it should be good for a few years more.

    WordPress for me is just a hobby, and I work mainly with child themes, but these themes cannot be uploaded here on WordPress.

    This is a venture for me into building a theme, that I will be able to submit to the WordPress themes directory.

    Regards

    David

    Theme completed and submitted to the WordPress themes directory, not sure how long the inspection takes though!

    I am adding a page to my website which will have the theme options and instructions, if it is accepted to the directory then I will update this topic.

    Regards

    David

    Anyone wanting to play with a beta copy can download the theme from here:, not exactly the same, lots of theme options, supports ,featured images, social icons, footer credit etc:

    David

    Thread Starter JPAres1

    (@jpares1)

    Hi David,

    This is what I see when activate the theme (but then I go back an it is gone but your theme is installed.)

    Notice: Undefined index: page in /home/thewils/public_html/blog/wp-content/themes/3624/atmosphere/functions.php on line 54

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewils/public_html/blog/wp-content/themes/3624/atmosphere/functions.php:54) in /home/thewils/public_html/blog/wp-includes/pluggable.php on line 890

    This is what I see at the top of my Dashboard screen:

    Notice: is_term is deprecated since version 3.0! Use term_exists() instead. in /home/thewils/public_html/blog/wp-includes/functions.php on line 3237

    Notice: is_term is deprecated since version 3.0! Use term_exists() instead. in /home/thewils/public_html/blog/wp-includes/functions.php on line 3237

    Notice: Undefined index: page in /home/thewils/public_html/blog/wp-content/themes/atmosphere-2010/admin-options.php on line 272

    The site has other stuff on it. I left it on there for now for you to see it.

    Let me know please if I can do something here.

    Thank you,

    Jackie

    Thread Starter JPAres1

    (@jpares1)

    Hi David,

    I’ve left the blog as is since our last communication with your new theme. I did not hear back from you. Today, I tried for the first time to login to my dashboard and this is what I see:

    Notice: is_term is deprecated since version 3.0! Use term_exists() instead. in /home/thewils/public_html/blog/wp-includes/functions.php on line 3237

    Notice: is_term is deprecated since version 3.0! Use term_exists() instead. in /home/thewils/public_html/blog/wp-includes/functions.php on line 3237

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewils/public_html/blog/wp-includes/functions.php:3237) in /home/thewils/public_html/blog/wp-login.php on line 337

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewils/public_html/blog/wp-includes/functions.php:3237) in /home/thewils/public_html/blog/wp-login.php on line 349

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewils/public_html/blog/wp-includes/functions.php:3237) in /home/thewils/public_html/blog/wp-login.php on line 351

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewils/public_html/blog/wp-includes/functions.php:3237) in /home/thewils/public_html/blog/wp-includes/pluggable.php on line 690

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewils/public_html/blog/wp-includes/functions.php:3237) in /home/thewils/public_html/blog/wp-includes/pluggable.php on line 691

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewils/public_html/blog/wp-includes/functions.php:3237) in /home/thewils/public_html/blog/wp-includes/pluggable.php on line 692

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewils/public_html/blog/wp-includes/functions.php:3237) in /home/thewils/public_html/blog/wp-includes/pluggable.php on line 694

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewils/public_html/blog/wp-includes/functions.php:3237) in /home/thewils/public_html/blog/wp-includes/pluggable.php on line 890

    Since I’ve not done anything further to the blog, could you maybe please explain what could have happened? I have no dashboard, my blog isn’t fixed and I can’t change anything back either. ?? Do you have, at the very least, some guidelines or advice for me?

    Best regards,

    Jackie

    In wp-config.php you have the debug mode set to true, set this to false to remove the messages.

    I will be updating the theme today, 20:00pm GMT, download it then and overwrite the files.

    I have revised some code and run it through the theme test process.

    send me an email: david[dot]cox[at]digitalraindrops[dot]net and I will sens a copy.

    Regards

    David

    Hi Jackie,
    Sorry about that!

    I have updated the download with the corrected version, this should work ok now.

    David

    Jackie,
    I just tested the revised theme again and this was the result.

    Guidelines Version: 20101110 Plugin revision: 4
    3752 checks ran against atmosphere-2010
    Theme passed all the tests!

    David ??

    Thread Starter JPAres1

    (@jpares1)

    Hi David, Sent you an email as requested, but as you can see in my email, I am having a heck of a time with this lovely WordPress!

    BTW, I forgot to add that the code for load.php =

    (line 218)  function timer_stop( $display = 0, $precision = 3 ) { // if called like timer_stop(1), will echo $timetotal
    	global $timestart, $timeend;
    	$mtime = microtime();
    	$mtime = explode( ' ', $mtime );
    	$timeend = $mtime[1] + $mtime[0];
    	$timetotal = $timeend - $timestart;
    	$r = ( function_exists( 'number_format_i18n' ) ) ? number_format_i18n( $timetotal, $precision ) : number_format( $timetotal, $precision );
    	if ( $display )
    		echo $r;
    	return $r;

    Hope your day is going well,

    Jackie

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