I got an error that said 'Fatal error: Cannot call overloaded function for non-object'. What does the mean?

From Wordfence Documentation
Jump to: navigation, search

Error  : Fatal error: Cannot call overloaded function for non-object in /home/urnamehere/public_html/wp-content/plugins/wordfence/lib/wfLog.php on line 841

What can happen :
Your web site could become unresponsive or go offline

Why :
First, this is not a Wordfence problem. It is a php issue
Second, there are several posts and threads about this error, most not related to WF at all.

  • You can upgrade php. Version 5.5 seems to fix it. Seeing as 5.6 is the latest version, and since running on an older version is very risky, its a good idea to upgrade anyway.
  • You can disable your APC cache which can be done by modifying your PHP initialization file file.
    NOTE: We recommend backing up your PHP initialization file file before modifying it.
    On a new line, type apc.enabled=0.
    Save your changes.


Thanks much to Shane B who helped us figure this one out