PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function
-
Hi team,
We’re getting the following error on a clients’ website:
[22-Jan-2026 03:03:18 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function MailPoet\Subscription\Pages::setWindowTitle(), 1 passed in /home/tuncurrycoaches/public_html/wp-includes/class-wp-hook.php on line 341 and at least 2 expected in /home/tuncurrycoaches/public_html/wp-content/plugins/mailpoet/lib/Subscription/Pages.php:346In the “Confirm your subscription” email, when a subscriber clicks the link “Click here to confirm your subscription”, it takes them to a page saying “There has been a critical error on this website.”.
Upon reading further online, I’ve read the following:
MailPoet is hooking this method “MailPoet\Subscription\Pages::setWindowTitle()” to pre_get_document_title (or wp_title) but with the wrong accepted args.Are you aware of any such bug, and if so, is there a solution coming up in a newer version? We’re using the Pro version with this client, but not sure if the bug is in the pro or free version.
Many thanks,
Anthony @ KazamThe page I need help with: [log in to see the link]
You must be logged in to reply to this topic.