Support » Plugin: Remove Dashboard Access » getting headers already sent error message

  • Resolved Richard Munter



    Thanks for putting out this plugin.

    I’m getting this error message when I activate the plugin or when I visit wp-admin with a subscriber user.

    Warning: Cannot modify header information – headers already sent by (output started at /home/public_html/wp-content/themes/fitness_child/functions.php:15) in /home/public_html/wp-includes/pluggable.php on line 1228

    Any suggestions, please?



Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Drew Jaynes


    WordPress Core Developer

    Hi Richard,

    Sounds like an error originating in your theme’s functions.php file. You’ll typically see the “headers already sent” errors if wp_redirect() or wp_safe_redirect() is used after the page headers have already been sent. This essentially means that something is calling for a redirect on a hook that fires too late in the loading order.

    It’s possible that your theme is overriding the core version of wp_redirect() (which is “pluggable” and therefore can be overridden by plugins or themes).

    Hey Drew,

    Thanks for getting back to me. I will investigate. It’s a stock theme and I have only added 1 function to the child theme so might be hard to find in the stock theme.

    Appreciate the prompt reply, explanation, and of course your work in making the plugin.



Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘getting headers already sent error message’ is closed to new replies.