• Resolved fillizof

    (@fillizof)


    Hi, im getting this error. I tried both in PHP 8 and 7.4 it still gets the same error. I read somewhere that you are going to patch this error but it seems that it’s still there.
    Are there any solution for this or do I need to wait for an update?

    Thanks.

    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 255
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 262
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 266
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 270
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 274
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 278
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 282
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 286
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 290
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 294
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 298
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 302
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 306
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 309
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 318
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 318
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 318
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 318
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 318
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 324
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 329
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 333
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 337
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 341
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 345
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 349
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 353
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 357
    [06-Mar-2022 05:07:15 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/domain.com/public_html/wp-content/plugins/wp-statistics/includes/class-wp-statistics-widget.php on line 361
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fillizof

    (@fillizof)

    Hi, again I just added the below code in line 251 and it fixed the error. Hopefully, it doesn’t harm the functionality of the plugin.

     if (!is_array($widget_options)) {
                return;
            }

    Thanks.

    vitathemes

    (@vitathemes)

    Hi @fillizof,

    Your report and suggestion are very helpful. I’d appreciate it if you submitted a PR in the plugin’s GitHub repo. We’ll merge it into the base code.

    https://github.com/wp-statistics/wp-statistics/

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to access array offset on value of type bool’ is closed to new replies.