Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Dec 4, 2021 · 0 comments

Comments

@abhi-deshpande
Copy link

abhi-deshpande commented Dec 4, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant