Support » Plugin: Wordfence Security - Firewall & Malware Scan » Too Few Arguments Passed to _filterCentralFromLiveTraffic

  • I have an older Woocommerce site that uses their legacy v1 REST API. I’m trying to access orders but I keep getting this error…

    PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wordfence::_filterCentralFromLiveTraffic(), 2 passed in /pathgoeshere/wp-includes/plugin.php on line 235 and exactly 4 expected in /pathgoeshere/wp-content/plugins/wordfence/lib/wordfenceClass.php:2336

    It’s throwing a 503 internal server error as a result. How do I fix this without having to update everything? I really don’t want to have to deactivate Wordfence on the site.

    • This topic was modified 10 months, 3 weeks ago by thekendog.
Viewing 2 replies - 1 through 2 (of 2 total)
  • thekendog

    (@thekendog)

    Bump. Any idea?

    ramwf

    (@ramwf)

    Hi!

    Essentially what we’re doing is adding a filter that lets us know when a REST request happens so that we can filter out the hits from Wordfence Central so that they don’t clutter up the Live Traffic page. The filter in question (rest_dispatch_request) has existed since WordPress 4.4 and has expected 4 parameters since WordPress 4.5 according to https://developer.wordpress.org/reference/hooks/rest_dispatch_request/
    As a general rule, we very strongly recommend updating everything, but we also understand that not everyone has a choice in the matter, so I’m going to put in a bug for this to see if we can get it fixed in a future version of Wordfence.

    In the meanwhile, if you can send an email to wftest@wordfence.com with the forum post URL for reference I may be able to provide a temporary workaround.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Too Few Arguments Passed to _filterCentralFromLiveTraffic’ is closed to new replies.