dfactoryplugins / post-views-counter

Post Views Counter
56 stars 20 forks source link

Fatal error: Uncaught ArgumentCountError: strtr() expects at least 2 arguments, 1 given in /wp-content/plugins/post-views-counter/includes/class-counter.php:795 #45

Open abhi-deshpande opened 2 years ago

abhi-deshpande commented 2 years ago

Stack Trace :

1. strtr()/wp-content/plugins/post-views-counter/includes/class-counter.php:795
2. Post_Views_Counter_Counter->encrypt_ip()/wp-content/plugins/post-views-counter/includes/class-counter.php:117
3. Post_Views_Counter_Counter->check_post()/wp-content/plugins/post-views-counter/includes/class-counter.php:258
4. Post_Views_Counter_Counter->check_post_rest_api()/wp-includes/rest-api/class-wp-rest-server.php:1140
5. WP_REST_Server->respond_to_request()/wp-includes/rest-api/class-wp-rest-server.php:987
6. WP_REST_Server->dispatch()/wp-includes/rest-api/class-wp-rest-server.php:414
7. WP_REST_Server->serve_request()/wp-includes/rest-api.php:370
8. rest_api_loaded()/wp-includes/class-wp-hook.php:303
9. WP_Hook->apply_filters()/wp-includes/class-wp-hook.php:327
10. WP_Hook->do_action()/wp-includes/plugin.php:518
11. do_action_ref_array()/wp-includes/class-wp.php:388
12. WP->parse_request()/wp-includes/class-wp.php:750
13. WP->main()/wp-includes/functions.php:1291
14. wp()/wp-blog-header.php:16
15. require('...')/index.php:17
16. {main}
thrown in /wp-content/plugins/post-views-counter/includes/class-counter.php on line 795

PHP Version : 8.0.6 Plugin Version : 1.3.10

Also, I noticed that view counts are stopped since this update.