• Dear friends,
    The Post View Counter plugin is working properly but in the system logs (after we’ve moved to nginx) there are lots of PHP errors about this plugin..
    Is it possible to prevent this by updating the plugin? I’m using 1.3.11 the latest one..

    [02-May-2022 20:25:36 UTC] PHP Deprecated: Function mcrypt_encrypt() is deprecated in /var/www/html/mysite/wp-content/plugins/post-views-counter/includes/class-counter.php on line 807
    [02-May-2022 20:25:36 UTC] PHP Stack trace:
    [02-May-2022 20:25:36 UTC] PHP 1. {main}() /var/www/html/mysite/wp-admin/admin-ajax.php:0
    [02-May-2022 20:25:36 UTC] PHP 2. do_action($hook_name = ‘wp_ajax_nopriv_pvc-check-post’) /var/www/html/mysite/wp-admin/admin-ajax.php:202
    [02-May-2022 20:25:36 UTC] PHP 3. WP_Hook->do_action($args = [0 => ”]) /var/www/html/mysite/wp-includes/plugin.php:474
    [02-May-2022 20:25:36 UTC] PHP 4. WP_Hook->apply_filters($value = ”, $args = [0 => ”]) /var/www/html/mysite/wp-includes/class-wp-hook.php:331
    [02-May-2022 20:25:36 UTC] PHP 5. Post_Views_Counter_Counter->check_post_js(”) /var/www/html/mysite/wp-includes/class-wp-hook.php:307
    [02-May-2022 20:25:36 UTC] PHP 6. Post_Views_Counter_Counter->check_post($id = 36837) /var/www/html/mysite/wp-content/plugins/post-views-counter/includes/class-counter.php:227
    [02-May-2022 20:25:36 UTC] PHP 7. Post_Views_Counter_Counter->encrypt_ip($ip = ‘86.174.27.46’) /var/www/html/mysite/wp-content/plugins/post-views-counter/includes/class-counter.php:117

The topic ‘Deprecated functions in PHP logs’ is closed to new replies.