• Resolved candreu

    (@candreu)


    After upgrading WordPress 2.3.3 to 2.5, the Media Library says this:

    Fatal error: Call to undefined function wp_get_attachment_image() in /home/distrito/public_html/wp-includes/post-template.php on line 386

    Why I haven’t the wp_get_attachment_image() function?

Viewing 6 replies - 1 through 6 (of 6 total)
  • nielsgoedvolk

    (@nielsgoedvolk)

    I have the exact same problem. Does anybody know how to fix this?

    nielsgoedvolk

    (@nielsgoedvolk)

    My exact error is:

    Fatal error: Call to undefined function: wp_get_attachment_image() in /srv/goedvolk/www/www.anthonievandiemenstam.nl/wp-includes/post-template.php on line 386

    I uploaded the installation files again to see if that fixes the problem, but the error remains the same. I don’t know if it is caused by a plugin, because I haven’t tested the media library before I activated the plugins (tested only the frontpages).

    Can’t find anything in the forums about this subject.

    nielsgoedvolk

    (@nielsgoedvolk)

    Found the answer in the FAQ:

    Q. When in the Media Library, what is this error — Fatal error
    Call to undefined function: wp_get_attachment_image() in /home/public_html/wp-includes/post-template.php on line 384 :
    This is usually caused by a PHP file not being correctly uploaded. Make sure wp-includes/media.php and wp-settings.php are intact (reupload them).

    This worked for me!

    Had same problem and didn’t found it in the FAQ :(. Fixxed as nielsgoedvolk described. Thannkkkkss!

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Almost all “Call to undefined function” errors are the result of not uploading all of the WordPress files.

    You have to upload ALL of them. They are not optional.

    Thread Starter candreu

    (@candreu)

    OK, I uploaded all the files and there’s no error now. Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Function wp_get_attachment_image() does not exist in 2.5!’ is closed to new replies.