PHP Warning: max(): Array must contain at least one element
-
Hi,
Just wanted to report a PHP warning popping up a dozen times a day on a busy site. Can you fix this in the next stable version release? If you need any help reproducing it, please let me know so I can help out!
Plugin version: 1.3.11
Warning: max(): Array must contain at least one element in /wp-content/plugins/post-views-counter/includes/class-counter.php on line 297 Stack Trace ----------- 1. max(Array(0)) /wp-content/plugins/post-views-counter/includes/class-counter.php:297 2. Post_Views_Counter_Counter->check_cookie('') /wp-includes/class-wp-hook.php:307 3. WP_Hook->apply_filters(null, Array(1)) /wp-includes/class-wp-hook.php:331 4. WP_Hook->do_action(Array(1)) /wp-includes/plugin.php:476 5. do_action('plugins_loaded') /wp-settings.php:461 6. require_once('/var/www/my-serve...') /wp-config.php:141 7. require_once('/var/www/my-serve...') /wp-load.php:50 8. require_once('/var/www/my-serve...') /wp-admin/admin-ajax.php:22 Context ------- URL : /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=27ea7ea889 Referer : https://www.my-site.com/wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=27ea7ea889 HTTP Method : POST HTTP Status : 200 ajaxAction : as_async_request_queue_runner isSSL : Yes Current Filter : plugins_loaded Execution Time : 0.504 s Memory Usage : 60.86 MiB PHP SAPI : fpm-fcgi
Thanks and keep rocking with this awesome plugin!
- The topic ‘PHP Warning: max(): Array must contain at least one element’ is closed to new replies.