Support » Fixing WordPress » Fatal error: Cannot redeclare get_the_attachment_link

  • When I go to my WP install on, I get this error. Can’t figure what’s up. Was working just peachy last night. Any thoughts?

    Fatal error: Cannot redeclare get_the_attachment_link() (previously declared in /home/gseim/public_html/blog/wp-includes/post-template.php:973) in /home/gseim/public_html/blog/wp-includes/deprecated.php on line 1907

Viewing 4 replies - 1 through 4 (of 4 total)
  • I seem to have it fixed. Re uploaded post-template.php from a fresh WP download and wrote it over the one that was there. All seems OK not, but I have no clue why it happened. Wish I knew what went wrong you I could avoid it in the future.

    Hmm. It did the same thing again after being fixed. I again had to re upload post-template.php. It’s like it’s just altering itself. Does anyone know why that would happen?

    I am having the same problem @ ventrilqstman, I see your website is working today. Did you have to re-upload again?

    I just tried the same thing ventrilqstman did. I put a new install of WordPress in a new folder, and started copying files, first one, then another, then just copied the whole wp-includes folder. Now my old blog works. Hope it stays that way!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Cannot redeclare get_the_attachment_link’ is closed to new replies.