• Hi,

    Just wanted to report a PHP warning popping op lots of times on a busy site. Can you fix this one in the next version release? If you need help reproducing it, please let me know so I can help you out ??

    Plugin version: 1.3.12
    PHP environment: 8.0.19

    Warning: foreach() argument must be of type array|object, string given in /wp-content/plugins/post-views-counter/includes/class-counter.php on line 407

    Stack Trace

    1. Post_Views_Counter_Counter->check_cookie(‘a:1:{i:0’)
      /wp-includes/class-wp-hook.php:308
    2. WP_Hook->apply_filters(null, Array(1))
      /wp-includes/class-wp-hook.php:332
    3. WP_Hook->do_action(Array(1))
      /wp-includes/plugin.php:517
    4. do_action(‘plugins_loaded’)
      /wp-settings.php:480
    5. require_once(‘/var/www/my-site…’)
      /wp-config.php:141
    6. require_once(‘/var/www/my-site…’)
      /wp-load.php:50
    7. require_once(‘/var/www/my-site…’)
      /wp-admin/admin-ajax.php:22

    Context

    URL : /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=758a8ad0b6
    HTTP Method : POST
    HTTP Status : 200
    ajaxAction : as_async_request_queue_runner
    isSSL : Yes
    Current Filter : plugins_loaded
    PHP SAPI : fpm-fcgi

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP warning: oreach() argument must be of type array|object’ is closed to new replies.