Support » Plugin: Akismet Anti-Spam » Fatal error in akismet.php on line 32

  • My site was hacked and code was injected into Akismet. So I deleted it and reinstalled a fresh copy (version 2.5.5) and cleaned up the other hacked files. I also installed a plugin called Better Security which blocked a login attempt already. It sent me an email about changed files. On the list was wp-content/plugins/akismet/error_log.
    When I looked at the log, it has many copies of the same error:
    PHP Fatal error: Call to undefined function plugin_dir_url() in /home/****/public_html/weblog/wp-content/plugins/akismet/akismet.php on line 32

    So I guess Akismet isn’t blocking the spam if it’s dying.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you sure the rest of your install is okay? It doesn’t sound like it is.

    plugin_dir_url() is a valid function from core, so if Akismet is trying to call it, the problem isn’t within Akismet – it’s core. Grab a fresh copy of WordPress.

    I know. That’s what I thought too, but I have other plugins calling it and they work fine. I’ll reinstall WordPress and see what happens.

    I reinstalled WordPress via the Dashboard. But it doesn’t actually change all files, so I extracted the full version and copied it on top of my installation. I also deleted the unused legacy files in the root (it’s an old blog).
    Here it is a day later and I’ve got an error_log with 25 of these errors with 10 different time stamps.
    So that wasn’t it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error in akismet.php on line 32’ is closed to new replies.