• Hi,
    I’m fixing some WP websites attacked by a malware attack.
    I replaced wp-admin, wp-includes, all the home files (not wp-config.php and wp-settings.php) and some plugins from a “clean” WP installation.

    All works fine with the websites I’ve fixed till now but there’s one of them that I can’t understand why isn’t working.

    I got the following error:
    “Fatal error: Call to undefined function current_theme_supports()”

    I searched on internet and seems like an old WP function involving themes but I can’t understand how could I fix it since I replaced every WP files. Just the wp-content/themes is like it was plus the default themes I uplaoded (twenty ten, twelve, thirteen, fourteen).

    Any suggestion?

    Thanks you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Fatal error in the output generally indicates either: (1) your theme doesn’t like your version of WordPress (2) you have a plugin that doesn’t like your version of WordPress (3) or you have an incomplete install/upgrade.

    Try a few basic troubleshooting steps:
    – Clear your browser’s cookies and all cache.
    – Try deactivating ALL plugins temporarily to see if this resolves the problem. If this works, re-activate them individually (one-by-one) to find the problematic plugin(s). If you can’t get into your admin dashboard, try deactivating via FTP or SFTP or whatever file management application your host provides. Also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old.
    – If that does not resolve the issue, try switching to the unedited default, core-bundled Theme (such as Twenty Fourteen) for a moment using the WP dashboard to rule out any theme-specific issue. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    – If above steps do not resolve the issue, try resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed or some plugins stick around in cached files. So by renaming the folder, you break them and force them inactive).
    – If all the above steps do not resolve the issue, try MANUALLY re-uploading all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones. Read the Manual Update directions first!
    – running the upgrade manually via wp-admin/upgrade.php
    BTW, if you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. It’s a great safety net.

    Thread Starter lup0z

    (@lup0z)

    I really thank you for your suggestions.
    Everything you told me was good to fix the problem.

    Hope this thread will help anybody with the same issues!

    Moderator t-p

    (@t-p)

    You are welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Call to undefined function current_theme_supports’ is closed to new replies.