WordPress.org

Ready to get started?Download WordPress

Forums

jQuery in functions.php causes "header already sent" error (2 posts)

  1. Murphy
    Member
    Posted 2 years ago #

    I know I'm doing something wrong here. I have 2 jquery plugins that I have in my functions.php file. There, the links for the jquery plugins are sent to the header via action hooks.

    The problem is I get this error when loggin in or out of admin page:

    Warning: Cannot modify header information - headers already sent by (output started at /file-root/wp-content/themes/toolbox/functions.php:108) in /file-root/wp-login.php on line 353

    Here's my code in the functions.php file:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. security_man
    Member
    Posted 2 years ago #

    you have blank space somewhere that is being echoed before it should - if you can use a pastebin then we can see exactly where the issue may be

Topic Closed

This topic has been closed to new replies.

About this Topic