• After updating to the Wordfence 6.1.3, when trying to update any page, we get the following errors. We are using the premium version.

    Warning: Illegal string offset ‘code’ in C:\…\wp-content\plugins\wordfence\vendor\wordfence\wf-waf\src\lib\request.php on line 709

    Warning: Illegal string offset ‘new’ in C:\…\wp-content\plugins\wordfence\vendor\wordfence\wf-waf\src\lib\request.php on line 709

    Warning: Illegal string offset ‘name’ in C:\…\wp-content\plugins\wordfence\vendor\wordfence\wf-waf\src\lib\request.php on line 709

    Warning: Illegal string offset ‘value’ in C:\…\wp-content\plugins\wordfence\vendor\wordfence\wf-waf\src\lib\request.php on line 709

    https://www.ads-software.com/plugins/wordfence/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter typeless

    (@jbalyo)

    Took a look at line 709:

    $param = array_merge($param, $this->reduceBodyParameter(“$key[$index]”, $val));

    Changing it to the following fixes the issue, but would this cause any unintended consequences elsewhere? What are the chances of getting a fix rolled into the next update so we don’t have to hot patch it every time just to get our site running?

    if ( isset($key[$index]) ) {
    $param = array_merge($param, $this->reduceBodyParameter(“$key[$index]”, $val));
    }

    Plugin Contributor wfmatt

    (@wfmatt)

    Hi jbalyo,

    I’ve confirmed this is a bug, and we will be releasing a fix for it in the next release. Sorry for any inconvenience!

    Thanks,
    Matt

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"Illegal string offset" when updating pages’ is closed to new replies.