Symptoms
It has been reported some users may see the following warning when using cPanel's "WP Manager."
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function
Description
After further review, it seems that this warning is a result of the "Jetpack" plugin for WordPress. Also, it can be noted that this warning may not affect the overall performance of the website or WordPress. However, as we cannot troubleshoot individual WordPress plugins, your experience may vary when seeing this warning.
If you are using the "Jetpack" plugin and go to cPanel's "WP Manager" you might see a yellow warning box. The warning box may display the following:
(XID anbteg) The system failed to run the wp-cli batch commands with the following issues: STDERR:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Jetpack_Autoupdate::autoupdate_core(),
1 passed in /home/testinguser/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home/
testinguser/public_html/wp-content/plugins/jetpack/class.jetpack-autoupdate.php:101 Stack trace: #0 /home/testinguser/
public_html/wp-includes/class-wp-hook.php(287): Jetpack_Autoupdate->autoupdate_core('minor') #1 /home/testinguser
Workaround
In some cases, updating the "Jetpack" plugin has helped to remove this warning. Alternatively, it may best to consult with Jetpack team directly if encountering issues with this plugin.