• Resolved vorticy

    (@vorticy)


    I was attempting to add code to functions.php in the wp-includes folder to fix pricing problems with Woocommerce, bulk discounts and options. So I added the php at the end of that file and immediately broke something. There were several errors in the admin page and website. So I removed the code and revert the functions.php file back to its original state. But the errors persisted. I saw several pertaining to this plugin so I deactivated it and then ended up deleting it. Most errors are gone but the following error is still on the admin side.

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/8/d95069775/htdocs/mysite/wp-includes/functions.php:1) in /homepages/8/d95069775/htdocs/mysite/wp-admin/includes/misc.php on line 1198

    I confirmed that both these files are identical to those in a fresh wordpress install.

    • This topic was modified 5 years, 11 months ago by vorticy.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter vorticy

    (@vorticy)

    Strangest thing, even though the content in the files were identical, somehow the files were different. Yes, I check for a space at the end. But I decided to replace the file on the server with a “fresh” file from a downloaded wordpress package and the problem is resolved. Somehow the text file encoding is different.

    Plugin Author gioni

    (@gioni)

    Reinstall WordPress and never ever edit its files. Use the functions.php file in your active theme folder instead. If no such file there, create it.

    Thread Starter vorticy

    (@vorticy)

    Thanks. Using the “Code Snippet” plugin now.

    Plugin Author gioni

    (@gioni)

    That’s is the right way too.

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