• Resolved wendel-brume

    (@wendel-brume)


    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You have most likely left white-spaces before or after php tags somewhere this would cause errors like that..

    Thread Starter wendel-brume

    (@wendel-brume)

    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();

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

    Thread Starter wendel-brume

    (@wendel-brume)

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Lost access to admin dashboard after ad code experiment in post’ is closed to new replies.