Support » Plugin: Akismet Anti-Spam » Receiving a Fatal Error After Update

  • Resolved Logan Carlile

    (@lcarlile)


    I am receiving a fatal error on a website when I try to activate the Akismet plugin. The error I am receiving is:

    Warning: require_once(/nas/content/live/example/wp-content/plugins/akismet/class.akismet-widget.php): failed to open stream: No such file or directory in /nas/content/live/example/wp-content/plugins/akismet.old/akismet.php on line 49
    
    Fatal error: require_once(): Failed opening required '/nas/content/live/example/wp-content/plugins/akismet/class.akismet-widget.php' (include_path='.:/usr/share/pear/php:/usr/share/php') in /nas/content/live/example/wp-content/plugins/akismet/akismet.php on line 49

    I started to receive this error after updating the plugin to version 4.1.3.

    • This topic was modified 10 months, 3 weeks ago by Logan Carlile.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Christopher Finke

    (@cfinke)

    You have a directory named /nas/content/live/kcitech/wp-content/plugins/akismet.old/ referencing the directory /nas/content/live/example/wp-content/plugins/akismet/. Those look like they’re for different sites; I’m not sure what your setup or upgrade process is, but the easiest way to fix this would be to remove Akismet and all Akismet directories from both sites and re-install it from the plugin directory.

    @cfinke Whoops meant to change all references of ‘kcitech’ to ‘example’, but must of missed two of them. I made changes to my question to fix that mistake.

    Plugin Author Christopher Finke

    (@cfinke)

    If you used core’s standard update process, I would recommend opening a bug with them about why the akismet.old directory is still around after update.

    Regardless, the actual cause of why this is happening is outside of Akismet itself. Removing and re-installing would still be the fastest way to fix this.

    @cfinke So I went the route and removed the old directory and re-installed the plugin but am still receiving the same fatal error.

    Plugin Author Christopher Finke

    (@cfinke)

    Did you remove both wp-content/plugins/akismet.old/ and wp-content/plugins/akismet/? What’s the exact error you’re seeing?

    I removed both and then re-installed Akismet the error I am seeing appears to be the same error from before:

    Warning: require_once(/nas/content/live/kcitech/wp-content/plugins/akismet/class.akismet-widget.php): failed to open stream: No such file or directory in /nas/content/live/kcitech/wp-content/plugins/akismet/akismet.php on line 49
    
    Fatal error: require_once(): Failed opening required '/nas/content/live/kcitech/wp-content/plugins/akismet/class.akismet-widget.php' (include_path='.:/usr/share/pear/php:/usr/share/php') in /nas/content/live/kcitech/wp-content/plugins/akismet/akismet.php on line 49

    I can’t actually activate the plugin now because it is throwing a fatal error.

    Plugin Author Christopher Finke

    (@cfinke)

    Does the file /nas/content/live/kcitech/wp-content/plugins/akismet/class.akismet-widget.php exist? If so, what are the permissions on it?

    Yes that file exists and the permissions on it is 664.

    Plugin Author Christopher Finke

    (@cfinke)

    At this point, I think you’ll need to contact your webhost. I’m not sure why a file that exists and is readable can’t be loaded by PHP.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Receiving a Fatal Error After Update’ is closed to new replies.