WordPress.org

Ready to get started?Download WordPress

Forums

Akismet
Fatal error in akismet.php on line 32 (4 posts)

  1. Joy
    Member
    Posted 2 years ago #

    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.

    http://wordpress.org/extend/plugins/akismet/

  2. Jason Lemahieu (MadtownLems)
    Member
    Posted 2 years ago #

    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.

  3. Joy
    Member
    Posted 2 years ago #

    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.

  4. Joy
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags