• Resolved peter8nss

    (@peter8nss)


    Noticed the following error in my system log:

    Trying to access array offset on value of type null in ..../public_html/wp-content/plugins/content-control/inc/functions/rule-callbacks.php on line 520

    If “get_rest_api_intent” is called when global “rest_intent” is null there is code to calculate and set the value of global “rest_intent”. However, the value passed to the return statement apply_filter is the old null value NOT the new calculated value. So I think null will be passed back in this case, causing the error above.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter peter8nss

    (@peter8nss)

    Think this is happening when trying to access Content Control Settings page.

    Plugin Support Kim L

    (@kimmyx)

    Hi @peter8nss,

    Thanks for the report!

    We’ve passed this to our dev team so they can take a look.

    We’ll let you know once we receive feedback.

    If you have more information related to the issue, please send us a ticket via Get Support – Content Control Plugin.

    We appreciate your patience! ??

    Plugin Author Daniel Iser

    (@danieliser)

    @peter8nss – Appreciate the details, you nailed it. Patched for the next release.

    Fix was simply to rename $result -> $intent.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.