March 29, 2019 at 8:20 am
PHP 7.3 only:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Jetpack_Subscriptions::comment_subscribe_init(), 1 passed in /home/username/public_html/wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /home/username/public_html/wp-content/plugins/jetpack/modules/subscriptions.php:609
Stack trace:
#0 /home/username/public_html/wp-includes/class-wp-hook.php(288): Jetpack_Subscriptions->comment_subscribe_init(Array)
#1 /home/username/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#2 /home/username/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /home/username/public_html/wp-includes/comment-template.php(2426): do_action('comment_form_lo...', Array, 'User Display Name')
#4 /home/username/public_html/wp-content/themes/virtue_premium/templates/comments.php(85): comment_form()
#5 /home/username/public_html/wp-includes/comment-template.php(1512): require('/home/username/...')
#6 /home/username/public_html/wp-content/themes/virtue_premium/lib/template_ in /home/username/public_html/wp-content/plugins/jetpack/modules/subscriptions.php on line 609
Jetpack Support says it’s plugin or theme related, and don’t get the error with default WordPress themes.
If either the subscriptions module is completely turned off (not just no subscription check boxes below comments form), or comments is not allowed on the post, no error.