WordPress.org

Ready to get started?Download WordPress

Forums

Undefined index issue in theme (22 posts)

  1. JPAres1
    Member
    Posted 3 years ago #

    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 http://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.
  2. Digital Raindrops
    Member
    Posted 3 years ago #

    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 http://wordpress.pastebin.com and paste the link in this topic.

    HTH

    David

  3. JPAres1
    Member
    Posted 3 years ago #

    Thank you David.

    Here is the link you requested.

    http://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

  4. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  5. JPAres1
    Member
    Posted 3 years ago #

    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

  6. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  7. JPAres1
    Member
    Posted 3 years ago #

    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

  8. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  9. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  10. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  11. JPAres1
    Member
    Posted 3 years ago #

    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

  12. JPAres1
    Member
    Posted 3 years ago #

    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

  13. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  14. Digital Raindrops
    Member
    Posted 3 years ago #

    Hi Jackie,
    Sorry about that!

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

    David

  15. Digital Raindrops
    Member
    Posted 3 years ago #

    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 :-)

  16. JPAres1
    Member
    Posted 3 years ago #

    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

  17. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  18. JPAres1
    Member
    Posted 3 years ago #

    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

  19. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  20. JPAres1
    Member
    Posted 3 years ago #

    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

  21. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  22. JPAres1
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic