Support » Plugin: NK Google Analytics » Error – Please fix in next update

  • fredroo

    (@fredroo)


    Please fix this error
    PHP Warning: count(): Parameter must be an array or an object that implements Countable in
    /plugins/nk-google-analytics/NKgoogleanalytics.php on line 120

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • fredroo

    (@fredroo)

    @marodok please fix this warning

    Same bug here.
    Shows up when running php 7 with wp-debug enabled.

    On php 5.6 the plugin works fine.

    Please fix.

    Yep, the plugin is not fully compatible with PHP 7.

    You guys might want to fix this ASAP.

    gbell12

    (@gbell12)

    +1

    Yes +1 please fix Warning: count(): Parameter must be an array or an object that implements Countable in /customer

    Any updates on this issue? The default code on line 121:

    if (is_array($ignored_roles) && $total_ignored_roles > 0) {

    does not work if modified and rolled back:

    Your PHP code changes were rolled back due to an error on line 121 of file wp-content/plugins/nk-google-analytics/NKgoogleanalytics.php. Please fix and try saving again.
    syntax error, unexpected ‘ ‘ (T_STRING)

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