• Hullo, I am hoping someone can help me. I am busy writing my first WordPress plugin. My plugin handles affiliate management. Once an affiliate is logged in they can then modify their profile. The profile information is not stored in the wp_users table but it’s own table as it has seperate fields. I’ve gotten as far as showing the user the form to update their profile. I then update the database and try to redirect the user back to the page that displays their profile info but when attempting to redirect the user I get the following error:
    Warning: Cannot modify header information – headers already sent by … by wp-includes/pluggable.php on line 890
    The code to update the profile takes place in the pp_init function I used for the init hook, ie. add_action (‘init’, ‘pp_init’);
    This is very frustrating – please help?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Headers already sent error’ is closed to new replies.