Support » Fixing WordPress » Fatal Error : Cannot redeclare get_category_link()

  • {Moderator note: moved to Fixing WordPress]

    Hi,

    I have site hosted on Azure window server.
    With WordPress version 4.6.1
    My site get down after some interval of months.

    I have capture log in debug.log file. Please check my below fatal error :

    PHP Fatal error: Cannot redeclare get_category_link() (previously declared in wwwroot\wp-includes\category-template.php:19) in wwwroot\wp-includes\category-template.php on line 19

    Can you please assist me on this. which is impacting on my site performance and various things

    Thanks,
    Swapnil

    • This topic was modified 1 year, 1 month ago by  swapnilsshete.
    • This topic was modified 1 year, 1 month ago by  swapnilsshete.
    • This topic was modified 1 year, 1 month ago by  bdbrown.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Swapnil,

    Happy Friday! 🙂

    I would suggest you to try following things.

    • Check if your theme/framework is not causing this. You can identify this by switching to the default WordPress theme from admin panel.
    • Try deactivating any plugins, because most of time plugins are the culprit and try upgrading them.
    • If you have recently updated WordPress manually then check if all files are properly updated and not corrupted.
    • Try to find out various scenarios which is causing above error. This would require some effort but it would be worth a try.
    • I would recommend you to upgrade your WordPress to the latest version which is more safe and secured, if there is no impact on your site.
    • If possible please move your site from Windows to Linux hosting as Linux is the most suitable environment for PHP.

    I hope this helps.
    Good luck and let me know if any other help is required.

    Cheers,
    Harish

    Thanks Harish for your reply,

    I have checked all possibilities that what you suggested except Linux Hosting.

    I had old WordPress 4.3.1v that time also we got the same Fatal Error : Cannot redeclare. so that I have updated to 4.6.1 but still this fatal error persist.

    Can anybody have any solution to try out for this error ?

    I really appreciate for this.

    Thanks,
    Swapnil

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error : Cannot redeclare get_category_link()’ is closed to new replies.