Forums

[resolved] Lost access to admin dashboard after ad code experiment in post (6 posts)

  1. Wendel Brume
    Member
    Posted 2 years ago #

    I was experimenting with some Adsense placement and tried inserting it directly into a post. Big mistake. Now I can't get to my dashboard. I get this error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/t/o/m/tomwood2/html/wp-content/themes/journalist/functions.php:44) in /home/content/t/o/m/tomwood2/html/wp-includes/pluggable.php on line 868

    My site is at minigiggles.com

    Appreciate some help.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

  3. roy-duff
    Member
    Posted 2 years ago #

    You have most likely left white-spaces before or after php tags somewhere this would cause errors like that..

  4. Wendel Brume
    Member
    Posted 2 years ago #

    Thanks,

    I went into the functions.php file and removed some white space at the end where I'd tried to create a new function. Now I get this error:

    Fatal error: Call to undefined function require_wp_db() in /home/content/t/o/m/tomwood2/html/wp-settings.php on line 269

    It's happening on some of the individual posts now too, probably as the cache expires on each one.

    Line 269 is simply: require_wp_db();

  5. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try re-uploading the wp-admin and wp-includes folders from a fresh download of your version of WordPress.

  6. Wendel Brume
    Member
    Posted 2 years ago #

    Thanks esmi!

    I got the headers error again after doing that, so I re-uploaded a fresh copy of the functions.php file from the theme and everything is working again.

    I really appreciate your help!

Topic Closed

This topic has been closed to new replies.

About this Topic