• @abdultikweb
    Getting error on test
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function MailPoet\Mailer\Mailer::__construct(), 0 passed in /home/anthony/public_html/wp-content/plugins/bounce-handler-mailpoet/includes/class-mailpoet-bounce-detect.php on line 671 and exactly 1 expected in /home/anthony/public_html/wp-content/plugins/mailpoet/lib/Mailer/Mailer.php:24

    Looks like with update, Mailer class which initiates email needs interface MailerMethod as argument.

    Can you help sorting this please?

    Thank you in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I solved this issue by commenting the below lines and adding wp_mail() instead.
    Works fine now.

    		//$mlr = new Mailer();
    		//$mlr->send($content,$to);
    	    $body = $content['body'];
    	    $headers = array('Content-Type: text/html; charset=UTF-8');
    	    wp_mail( $to, $subject, $body, $headers );

    It works! Thank you ??

    Hi,

    I have the same error but can’t find the file you modified to do the same, thanks for your help…

    Eric

    Eric, you have to edit /includes/class-mailpoet-bounce-detect.php, line 667 – 668

    The proposed fix did’nt work for me, I had to comment out both line to make it work again.
    Downside, now I don’t receive any mail when there is a weird bounce.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error’ is closed to new replies.