Support » Installing WordPress » Fatal error: Cannot redeclare the_permalink

  • I just installed v.2.1.2 and something went wrong with the permalinks. It is preventing my site from loading. I can not access the dashboard or anything else to investigate it. I can access my FTP, but I’m very hesitant to mess around with it, since I’m (a) a real novice with all this and don’t really understand what it means, and (b)I want to learn how to fix this in case it happens again. I am getting the following error. Any suggestions?

    Fatal error: Cannot redeclare the_permalink() (previously declared in C:\hshome\spectre\\wordpress\wp-includes\link-template.php:5) in C:\hshome\spectre\\wordpress\wp-includes\template-functions-links.php on line 4

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anybody?

    Are you using the LJ-Crosspost plugin? If so, you need to get the latest version.

    Thanks Ron. I did manage to get back into my Dashboard and it looks like everything has been restored, except for two things:

    1)My links section is not showing up on my site, although they are all still present in Dashboard>Links.

    2) I have 3 page links on my main page in the header (Archives, About and Contact). When you click on either of the three links, it takes you to that page and the page_id # is still showing in the URL, but the content that I had entered for those pages does not show up. In Dashboard>Manage>Pages, it looks like there are not even any pages created. Any idea how I can recover those pages?

    I was using the LJ Crosspost plugin. I just deleted the LJ Crospost plugin completely, and I still have the same 2 problems, so it doesn’t look like that is the problem.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    There is no “template-functions-links.php” file anymore, so I’d say that you didn’t delete all the files when you upgraded, you just overwrote them.

    Next time you upgrade, delete wp-includes and wp-admin before uploading the new files. Make a backup first, of course.

    Thanks Otto. It is possible that I didn’t delete them, I honestly can’t remember now what I did delete. That part makes sense. Is there any way to fix this problem now or correct it?

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