• Resolved Rappadappa77

    (@rappadappa77)


    Hello Guys,

    Need some help in correcting this error, been searching the forums and didn’t quite find an answer I could use, similar ones, but I need to create a new top for myself.

    I was trying to edit the functions.php file in my child theme by adding some custom code for WooCommerce, code didn’t work and broke my website basically, displaying a Tawk.to error, thought it was the issue solely and deleted the plugin, well any plugin I try to install or remove I get the same error, but admin still works, all I do is refresh the page, so here is the code below.

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxxx/public_html/mysite.com/wp-content/themes/xxxxxx/functions.php:1) in /home/xxxxxx/public_html/mysite.com/wp-includes/pluggable.php on line 1167

    Howard

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator t-p

    (@t-p)

    Thread Starter Rappadappa77

    (@rappadappa77)

    Hello Tara,

    I tried the fix at the following link and it didn’t work, not sure what I’m doing wrong.

    Howard

    Thread Starter Rappadappa77

    (@rappadappa77)

    Then problem would be the functions.php file right?

    Moderator t-p

    (@t-p)

    Try:
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – If you can’t get into your admin dashboard, try resetting the plugins folder by FTP. Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default Theme (Twenty Sixteen, etc.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins). If you don’t have access to your admin area, use FTP , or your web-host’s cPanel or whatever file management application your host provides (no Dashboard access required). Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    – If all the above steps do not resolve the issue, then try MANUALLY updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old wp-admin and wp-includes folders and files on your server before uploading the new ones. Please read the Manual Update directions first.
    Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. You can never have enough backups!

    Thread Starter Rappadappa77

    (@rappadappa77)

    Thanks for all your help, but I can’t seem to find the culprit.
    I tried doing the manual route and when I started deactivating plugins, as I reach like halfway the error came up and I couldn’t get back into admin, luckily I had a backup I did today, too bad I didn’t do one before I tried to make the big change Sunday night ??

    Howard

    Thread Starter Rappadappa77

    (@rappadappa77)

    @t-p Could it be the functions.php the problem?

    Thread Starter Rappadappa77

    (@rappadappa77)

    The culprit is definitely my functions.php file in my child theme.
    I activated the parent theme and then the error occurred, once I reloaded the page, I installed a plugin, activated it and there was no error code whatsoever, then I went back to my child theme, here come the error again, so my plan is to rebuild back the functions.php file from scratch, so hopefully it will work.

    Howard

    Thread Starter Rappadappa77

    (@rappadappa77)

    So basically I built it back from scratch and no errors whatsoever ??
    Thank you for your help.

    Howard

    Moderator t-p

    (@t-p)

    Glad to know it ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Warning: Cannot modify header information – headers already sent by’ is closed to new replies.