WordPress.org

Support

Support » Plugins and Hacks » Hacks » jQuery in functions.php causes "header already sent" error

jQuery in functions.php causes "header already sent" error

  • Murphy
    Member

    @danielpunchupproductionscom

    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]

Viewing 1 replies (of 1 total)
  • security_man
    Member

    @security_man

    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

Viewing 1 replies (of 1 total)
  • The topic ‘jQuery in functions.php causes "header already sent" error’ is closed to new replies.