WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme Switcher: warning errors (4 posts)

  1. freefall
    Member
    Posted 8 years ago #

    I followed the instructions given by the theme switcher website [http://dev.wp-plugins.org/wiki/ThemeSwitcher] and for some reason when I activate this plugin, I get errors on the top of my admin pages with the following statement:

    Warning: Cannot modify header information - headers already sent by (output started at /home2/happy/public_html/dearxx/wp-content/plugins/theme-switcher.php:166) in /home2/happy/public_html/dearxx/wp-admin/admin.php on line 10

    Warning: Cannot modify header information - headers already sent by (output started at /home2/happy/public_html/dearxx/wp-content/plugins/theme-switcher.php:166) in /home2/happy/public_html/dearxx/wp-admin/admin.php on line 11

    Warning: Cannot modify header information - headers already sent by (output started at /home2/happy/public_html/dearxx/wp-content/plugins/theme-switcher.php:166) in /home2/happy/public_html/dearxx/wp-admin/admin.php on line 12

    Warning: Cannot modify header information - headers already sent by (output started at /home2/happy/public_html/dearxx/wp-content/plugins/theme-switcher.php:166) in /home2/happy/public_html/dearxx/wp-admin/admin.php on line 13

    I also receive the exact same errors when editing a post.

  2. vkaryl
    Member
    Posted 8 years ago #

    This is practically always whitespace either before the opening php tag (<?php) or after the closing php tag (?>).

    Open the theme-switcher.php file in a "plain-vanilla" editor (like notepad2 from http://www.flos-freeware.ch), and setting your cursor before the opening tag, hit your backspace key a few times. Then set your cursor behind the closing tag and hit the delete key a few times. See if that helps....

  3. freefall
    Member
    Posted 8 years ago #

    Oh wow, thanks soo much! It was actually the spaces after the closing tag that was causing me trouble.

    Next time I have a problem like that, I'll check if there are whitespaces before and/or after.

  4. vkaryl
    Member
    Posted 8 years ago #

    You're welcome. Have fun!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags