• Resolved Kazam Creative

    (@goldenagemedia)


    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:346

    In 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 @ Kazam

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author paveldohnal

    (@paveldohnal)

    Hi Anthony,

    Thank you for reporting this issue. This seems to be a bug in MailPoet where the setWindowTitle() method expected 2 arguments, but WordPress’s wp_title filter can sometimes pass only 1 argument depending on theme/plugin interactions.

    I am going to fix this by making the separator parameter optional. This fix should be included in the next MailPoet update.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.