• hello all.
    Learning how to create themes. wanted to test the most recent one live. So after getting it so it was working on my local sandbox. uploaded it. now all I get is:

    “Warning: Cannot modify header information – headers already sent by (output started at /home/content/p/d/x/pdxdaniela/html/thebigmeow/wp-content/themes/bigMeow/functions.php:39) in /home/content/p/d/x/pdxdaniela/html/thebigmeow/wp-includes/pluggable.php on line 876”

    And can do nothing at all from the wp-admin panel. Can’t create pages, delete spam…nothing. it will give a variation on the error above.

    I tried also uploaded the wp-includes from my laptop. and replace the one on the live site…no dice.

    Could anyone advise on what this is & how to fix it please?
    http://www.thebigmeow.us/

Viewing 7 replies - 1 through 7 (of 7 total)
  • There’s an issue in your theme’s functions.php file. Try reviewing Solving “headers already sent” warnings

    Thread Starter agileArt

    (@pdxdaniela)

    Thank you esmi, will do.
    why is it that it worked fine on my laptop but not live?
    d

    Perhaps your local server isn’t outputting PHP warnings?

    Thread Starter agileArt

    (@pdxdaniela)

    nope I like warnings…
    this the code in my functions. quite short

    // Add RSS links to <head> section
    	automatic_feed_links();
    
    	// Load jQuery
    	if ( !is_admin() ) {
    	   wp_deregister_script('jquery');
    	   wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"), false);
    	   wp_enqueue_script('jquery');
    	}
    
    	// Clean up the <head>
    	function removeHeadLinks() {
        	remove_action('wp_head', 'rsd_link');
        	remove_action('wp_head', 'wlwmanifest_link');
        }
        add_action('init', 'removeHeadLinks');
        remove_action('wp_head', 'wp_generator');
    
    	// Declare sidebar widget zone
    if ( function_exists('register_sidebars') )
    register_sidebars(2);
    
    if ( function_exists('register_nav_menus') ){
    register_nav_menus(
    	array(
    	'mainNav' => 'MainNavMenu',
    	'secNav' => 'SecNavMenu',
    	)
    );}

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    just checked for spaces. don’t see any glaring issues w/it.

    Did you follow the advice in the page I linked to above?

    Thread Starter agileArt

    (@pdxdaniela)

    thought i had but let me go check again.

    Thread Starter agileArt

    (@pdxdaniela)

    d’ho…got it thank you. was looking at the code but it was the extra space outside of the end ?>
    Thank you much!
    now to fix the rest of that thing.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘created theme not working once uploaded.’ is closed to new replies.