Support » Fixing WordPress » PHP code displayed at end of page and feed

  • Resolved jimrob

    (@jimrob)


    I recently upgraded from 2.1, and now the following PHP code is being displayed at the end of my pages and RSS feed:

    p-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require('./wp-blog-header.php'); ?>

    Anyone know what’s causing this? It isn’t affected by what theme I use.

Viewing 7 replies - 1 through 7 (of 7 total)
  • likely you just messed up the code when you modified it
    just upload a fresh footer.php and back up as you modify

    The footer.php in my theme? I tried that, but it didn’t solve the problem. Also, it does this regardless of theme.

    Another thing I noticed – When I attempt to select a new theme it displays that code rather than what the page would look like in the pop-up preview window.

    I may try to re-upload all the files and see what that does.

    then it almost has to be a plugin
    ??

    Deactivated all my plugins, still there. I’m going to re-upload the wp-includes and wp-admin files and see what happens.

    Well, I deleted all old files and re-uploaded everything. The code is still being displayed. (I cleared my cache to make sure I wasn’t looking at an old version.)

    The first part of the string seems to refer to wp-blog-header.php which is called from the index.php file. Try re-uploading the index.php from the WordPress zip file.

    Thanks Kalessin, that fixed it. I deleted index.php from the server and uploaded a freshly downloaded copy, which removed the code. I wonder if there was an error when I extracted it the first time?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP code displayed at end of page and feed’ is closed to new replies.