• Resolved CAM

    (@caitlinmccartan)


    My Wordfence Version 6.3.22 plugin isn’t working properly. It gives me the below error when I try to activate it:

    Fatal error: Call to undefined method DateTime::createFromFormat() in /home/content/68/14012068/html/wp-content/plugins/wordfence/lib/wfAPI.php on line 106

    Any idea what’s causing this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • From a google search it appears you’re running an older version of PHP.

    Wordfence’s system reqs indicate needing PHP 5.6 or higher from what I can see….

    Thread Starter CAM

    (@caitlinmccartan)

    This is a dumb question, I know. But to update the PHP, is that something I work with my hosting provider to update, or is that based in the WordPress theme I’m using? My WordPress version is fully up to date. Thanks!

    That would be typically be handled by your webhost provider, unless you have your own VPS (in which case you’d have to manage it yourself at the server level.)

    Hi @caitlinmccartan
    It’s correct that it could be an old PHP version as mentioned by bluebearmedia, so please check with your hosting provider that you are running at least PHP version 5.6, however, I’ve seen a similar issue like this recently where another plugin “Page Builder by SiteOrigin” for instance was causing this issue, so I suggest disabling other installed plugins -temporarily- then install Wordfence and re-check this issue.

    Thanks.

    Thread Starter CAM

    (@caitlinmccartan)

    Yes, @wfalaa, that’s what it was. I deactivated all my plugins, and now Wordfence works again. Luckily I didn’t need/rely too heavily on the plugins. Thank you!

    Glad to know you sorted it out! did you manage to narrow it down to a specific plugin? it would be interesting to know.

    Thanks.

    Thread Starter CAM

    (@caitlinmccartan)

    It’s odd, when I try to login to this page: https://elizabethaschultz.com/wp-login.php , I get the error message again ( Fatal error: Call to undefined method DateTime::createFromFormat() in /home/content/68/14012068/html/wp-content/plugins/wordfence/lib/wfAPI.php on line 106 ). But then using a new tab, I’m able to visit the site and see the “edit” button, so I can login this way.
    I deleted these plugins since i wasn’t using them. But it seems there is still some error, but at least I can, for now at least, still login and see the site. No clue what the issue with line 106 would even be.

    Akismet
    Childify Me
    Dropbox Backup & Restore
    Go Daddy Quick Setup
    Kadence Importer

    So even with all other plugin’s disabled, you still have this issue? do you have a caching plugin installed? perhaps your hosting provider has a caching system that needs to be purged?

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error issue’ is closed to new replies.