WordPress.org

Ready to get started?Download WordPress

Forums

fatal error re 2.07 wp-includes/functions.php on line 2365 (23 posts)

  1. costmary68
    Member
    Posted 7 years ago #

    What's wrong with the NEW wp-includes/functions.php on line 2365?

    The old one works but has the vulnerability. The new one does not work on my site. This fatal error is called when I go to edit a theme:

    Fatal error: Call to undefined function: attribute_escape()

    IN THIS CODE:
    function wp_referer_field() {
    $ref = attribute_escape(stripslashes($_SERVER['REQUEST_URI']));
    echo '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />';
    if ( wp_get_original_referer() ) {
    $original_ref = attribute_escape(stripslashes(wp_get_original_referer()));
    echo '<input type="hidden" name="_wp_original_http_referer" value="'. $original_ref . '" />';
    }
    }

  2. costmary68
    Member
    Posted 7 years ago #

    well, no replies so I installed the whole 2.07 package and got rid of this error. Don't know what caused it.

  3. DianeV
    Member
    Posted 7 years ago #

    Thanks; that's good information for the rest of us.

  4. Dickie
    Member
    Posted 7 years ago #

    Do you have functions-formatting.php uploaded to your server, as that is where it is defined.

  5. DianeV
    Member
    Posted 7 years ago #

    Dickie, would you mean the 2.0.7 functions-formatting.php?

    And does one have to run upgrade.php? The instructions are a bit sparse on this one.

  6. lily64
    Member
    Posted 7 years ago #

    I reposted this same issue as I did not find this until afterward, but also had fatal errors in wp-login.php when trying to log in, additional error when trying to log out. I guess I'm going to have to do a full reinstall to resolve all the issues, based on what I see here.

  7. winnopeg
    Member
    Posted 7 years ago #

    I just finished upgrading the select files as the blog post defined, and I am also getting this fatal error. I have done nothing but upload the files to upgrade my 2.0.6 install. I've run wp-admin/upgrade.php to no avail. Does anyone know how to fix this?

    Screenshot: http://www.filehive.com/files/0115/Picture-1.png

    EDIT: I did a full upgrade as suggested above and it did the trick.

  8. shakeb
    Member
    Posted 7 years ago #

    I was only going to change few files that have changed in 2.0.7, but looks like now I have to do a full upgrade.

  9. whooami
    Member
    Posted 7 years ago #

    fwiw, line 2365 of functions.php is unchanged from 2.0.6 to 2.0.7

    the changes (all 4 lines are @ 2231-2234)

    that particular function IS defined inside wp-includes/functions-formatting.php as of 2.0.6

    If youre seeing that error ANYWHERE, you didnt properly upload that new file ( wp-includes/functions-formatting.php ) when you upgraded to 2.0.6

  10. DianeV
    Member
    Posted 7 years ago #

    I uploaded only the six files suggested by Mark Jaquith, then ran upgrade.php, which I'm not sure I had to do.

    Result: six blogs all upgraded; no problems whatsoever. But ... these were WP 2.0.6 blogs. As stated by Mark at the above link:

    Because this is a much smaller update than previous versions, you do not have to update all of WordPress’ files if you’re upgrading from version 2.0.6.

    Anyway. Just thought this might help some folks.

  11. whooami
    Member
    Posted 7 years ago #

    I had no problem either. people dont read, dont upgrade, people dont upgrade correctly.

    the upgrade instructions on the codex clearly say to DELETE the old files, save the few mentioned (wp-config and whatever else), and to THEN upload the fresh ones. Following those instructions when upgrading, especially in the case of 2.0.6, prevents ftp clients from not over-writing files. In other words, you make sure you get the new files that way.

  12. shakeb
    Member
    Posted 7 years ago #

    I might give it a go then. I will delete the files first and then upload.

  13. DianeV
    Member
    Posted 7 years ago #

    Yes -- but just the files mentioned here:
    http://codex.wordpress.org/Upgrading_WordPress

  14. lucasmcdonnell
    Member
    Posted 7 years ago #

    I have to admit, I didn't follow instructions. I didn't disable all my plugins before replacing the files I needed to, and got the same fatal error. Strangely, restoring the backup I made before the upgrade didn't solve the problem either.

    Here's what I did to solve it (I can't guarantee that this will work for everyone):
    1. Disable all your plugins.
    2. Replace everything except the 'wp-content' and 'wp-config.php' (deleting all the old files really is the best way to do this, but make sure you don't delete the directory and file I just mentioned).
    3. Re-enable all your plugins.

    Maybe someone who's more knowledgeable about WordPress can answer this: could not disabling your plugins cause this error?

  15. shakeb
    Member
    Posted 7 years ago #

    But this is the lengthy install we are after just replacing few files as mentioned on the Dev blog my Mark jaquith
    It involves replacing only few files.

  16. DianeV
    Member
    Posted 7 years ago #

    I had upgraded our/our clients' blogs to WP2.0.6 last weekend --- in which case, Mark Jaquith's instructions worked perfectly for me because the "short" upgrade mentioned WP2.0.6. I also ran upgrade.php but didn't disable plugins (grin) -- though I'm not sure that will work for anyone else.

  17. Samuel B
    moderator
    Posted 7 years ago #

    If you only overwrite changed files, you need to run upgrade.php - actually you should in any case.
    I have installed 2.07 on 18 different servers now - some of them mine - and have not had a problem.

  18. DianeV
    Member
    Posted 7 years ago #

    Thanks, samboll. I didn't know whether upgrade.php had to be run, and didn't want to wait, so I ran it anyway. No harm, no foul, job done.

  19. shakeb
    Member
    Posted 7 years ago #

    Worked for me fine. I just upgraded to 2.0.7 from 2.0.6.
    I just deleted following files and uploaded the new ones. Then ran upgrade.php. All went fine without any problems.

    • wp-admin/inline-uploading.php
    • wp-admin/post.php
    • wp-includes/classes.php
    • wp-includes/functions.php
    • wp-settings.php
    • wp-includes/version.php
  20. tyrebagger
    Member
    Posted 7 years ago #

    This is the first time I've had to upgrade WP, and I'm a bit twitchy.

    I've found Mark Asquith's blog as well - will this quick method work for going from 2.0.5 to 2.0.6 as well? ie just uploading the required files & running upgrade.php?

    I have never run a 'diff' patch in my life, and now is not a good time to start. The full upgrade instructions sound a bit like an invitation to disaster for me, so I like the sound of the route. Thanks.

  21. Dickie
    Member
    Posted 7 years ago #

    No... only from 2.0.6... if going from 2.0.5 you need to do a full install.... it's not that hard, just follow the instructions, and upload all the files to your server then run the upgrade.php file.

  22. maitri
    Member
    Posted 7 years ago #

    Simply upload the new (2.0.7) wp-includes/functions-formatting.php and wp-includes/comment-functions.php files along with the other recommended files when upgrading. All will be well.

  23. DianeV
    Member
    Posted 7 years ago #

    Mark Jaquith was pretty clear on the issue: IF you're upgrading from 2.0.6, you can do the minimal file upgrade thing (I'd also run upgrade.php).

    If it's an earlier version of WordPress, then you need to do the full file replacement and run upgrade.php.

Topic Closed

This topic has been closed to new replies.

About this Topic