WordPress.org

Support

Support » How-To and Troubleshooting » Fatal error: Cannot redeclare get_the_attachment_link

Fatal error: Cannot redeclare get_the_attachment_link

  • ventrilqstman
    Member

    @ventrilqstman

    When I go to my WP install on http://www.prophotoshow.net, 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)
  • ventrilqstman
    Member

    @ventrilqstman

    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.

    ventrilqstman
    Member

    @ventrilqstman

    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?

    tdschrock
    Member

    @tdschrock

    I am having the same problem @ http://www.designbuildsolutionsllc.com/articles. ventrilqstman, I see your website is working today. Did you have to re-upload again?

    tdschrock
    Member

    @tdschrock

    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.