Fatal error sending test email

Hi, I’m geting a fatal error on sending emails. What can I do?

Fatal error: Uncaught Error: Class ‘PHPMailer’ not found in /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-mailer.php:303 Stack trace: #0 /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-mailer.php(153): Groups_Newsletters_Mailer::send__(‘pgonro@gmail.co…’, ‘Groups Newslett…’, ‘This is a test …’, ‘This is a test …’) #1 /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-mailer.php(378): Groups_Newsletters_Mailer::mail(‘pgonro@gmail.co…’, ‘Groups Newslett…’, ‘\r\n\r\n–groups-ne…’, true) #2 /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/admin/settings.php(256): Groups_Newsletters_Mailer::test(‘pgonro@gmail.co…’) #3 /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/admin/class-groups-newsletters-settings.php(88): include_once(‘/home/anheccom/…’) #4 /home/anheccom/public_html/wp-includes/class-wp-hook.php(308): Groups_Ne in /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-mailer.php on line 303


Comments

7 responses to “Fatal error sending test email”

  1. Hey Pablo,

    That’s great thanks for the follow-up.

    Cheers

  2. Pablo Gonzalez Avatar
    Pablo Gonzalez

    Hi George,

    I just fixed it in this moment. I was thinking about the last time it worked and realized that few days before I updated all plugins. So I searched for a plugin conflict and I founded it. It was a conflict with a SMTP plugin. I changed it and now all works fine.

    Thanks for your time and support.

  3. Hey Pablo,

    Thanks for that, but I’d rather have a look at the whole debug.log file and not only the error.
    Apologies for insisting on that file, but the Groups Newsletters version you’re running is using additional log traces especially for PHPMailer that will help us further investigate this issue.
    You may share the debug.log via an file sharing service or even send it directly to george at itthinx dot com, mentioning the topic title in the subject.

    Kind regards,
    George

  4. Pablo Gonzalez Avatar
    Pablo Gonzalez

    Hi George,

    PHP Version: 7.4.33
    WP Version: 6.1.1
    Groups Newsletter Versión: 2.1.0

    Debug log:
    [16-Mar-2023 12:12:33 UTC] PHP Fatal error: Uncaught Error: Class ‘PHPMailer’ not found in /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-mailer.php:303
    Stack trace:
    #0 /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-mailer.php(153): Groups_Newsletters_Mailer::send__(”, ‘Asamblea – acta…’, ‘…’, ‘\r\n\r\nAsamblea – …’)
    #1 /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-newsletter.php(112): Groups_Newsletters_Mailer::mail(”, ‘Asamblea – acta…’, ‘\r\n\r\n–groups-ne…’)
    #2 /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-campaign.php(95): Groups_Newsletters_Newsletter->send(”)
    #3 /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-campaign-controller.php(89): Groups_Newsletters_Campaign->work(40)
    #4 /home/anheccom/public_html/wp-includes/class-wp-hook.php(306): Groups_Newsletters_Ca in /home/anheccom/public_html/wp-content/plugins/groups-newsletters/lib/core/class-groups-newsletters-mailer.php on line 303

  5. Hi Pablo,

    Which version of PHP, WordPress and Groups Newsletter do you use?
    Also, it would be very helpful if you share a copy of your debug.log file once you enable WP debugging and try to run a newsletter campaign.

    Cheers,
    George

  6. Pablo Gonzalez Avatar
    Pablo Gonzalez

    Hi George,

    The host confirms the server has PHPMailer active and working. It’s strange, because it was working, sending newsletters without problems. But now all campaigns are running (queued). So I tested and get that error.

    The last campaign sent out with success was on Feb 22.

    Could you help?

  7. Hi Pablo,

    Welcome to our support forum for Groups plugin and its addons.

    From the error indicated it appears that probably PHPMAiler is not installed on your hosting server. Can you please contact your host and also mention this situation. It is possible that the necessary library is missing from the server hosting your site.

    Kind regards,
    George

Share