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.
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.