• Resolved modernstoicism

    (@modernstoicism)


    Hello,

    I have recently migrated my WordPress site, modernstoicism.com, to a new Cloudways server. The migration of files and the database was successful.

    However, after installing the WP Mail SMTP plugin, my site is now showing a critical error. My hosting provider’s support team (Cloudways) has identified that the plugin is the cause of the critical error and has recommended I reach out to you for assistance.

    The specific error message from the PHP logs is:

    PHP Fatal error: Uncaught TypeError: Argument 1 passed to WPMLSMTP\Providers\MailerAbstract::__construct() must implement interface WPMLSMTP\Mail\MailcatcherInterface, instance of WPMLSMTP\Providers\PHPMailer given

    This error appears to be related to a conflict in the plugin’s code after the migration. Could you please help me diagnose and fix this issue?

    Thank you for your help.

    Donald J. Robertson Sources

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

Viewing 1 replies (of 1 total)
  • Plugin Support Shawon Chowdhury

    (@shawon001)

    Hi @modernstoicism ,

    Thanks for reaching out.

    The TypeError after migration strongly points to any MU plugin on the new host that hooks into email sending. Somehow, our MailCatcher has been replaced, which is throwing the fatal error.

    Quick steps to pinpoint and resolve:

    • Disable all non‑essential plugins and switch to a default theme. If the error disappears, re-enable plugins in small batches to find the culprit.
    • Check for any custom code in functions.php or wp-content/mu-plugins that hooks into wp_mail or PHPMailer.
    • Review recent migration changes (PHP version, mail server settings, SMTP credentials) and enable WP_DEBUG to grab the exact error and stack trace.

    I hope this helps. Thanks 🙂

Viewing 1 replies (of 1 total)

The topic ‘Critical Error: WP Mail SMTP Causing a TypeError After Migration’ is closed to new replies.