Skip to:

PHPmailer class not found

  • webmasterfreya


    WP 5.5
    Buddypress 6.2.0

    Since upgrade to WP 5.5 buddypress has a problem. Loads of these messages appear:

    [Thu Aug 13 14:46:06.144000 2020] [proxy_fcgi:error] [pid 8441] [client] AH01071: Got error 'PHP message: [CRITICAL] : Uncaught Error: Class 'PHPMailer' not found in /var/www/vhosts/\nStack trace:\n#0 /var/www/vhosts/ BP_PHPMailer->bp_email(Object(BP_Email))\n#1 /var/www/vhosts/ bp_send_email('groups-membersh...', 1, Array)\n#2 /var/www/vhosts/ groups_notification_new_membership_request(5655, 1, 6, 1101)\n#3 /var/www/vhosts/ BP_Groups_Invitation_Manager->run_send_action(Object(BP_Invitation))\n#4 /var/www/vhosts/ BP_Invitation_Manager->send_re...', referer:

Viewing 6 replies - 1 through 6 (of 6 total)

  • webmasterfreya


    Added after line 56 in plugins/buddypress/bp-core/classes/class-bp-phpmailer:
    phpmailer_is_6_0 = true;

    55 $phpmailer_is_6_0 = true;
    56 }
    57 $phpmailer_is_6_0 = true;
    58 } else {




    Thank you for the solution Freya.. you saved my day…. that’s an incredible bug i hope they will solve in the next version of bp.

    Hi @webmasterfreya

    Thanks a lot for your alert about this issue. We will package a new maintenance release asap to fix it.

    For more details, see




    I’m having horrendous issues too from the last Buddypress update. Every single time someone creates an account with my website they receive a ‘fatal error’ message. When I manually activate a new account, I also receive a ‘fatal error’ message and an email advising that there’s a technical issue with my website. The email confirms that there’s an error with the Buddypress plugin.

    For years now, when someone clicks the activation link in my emails they are no longer taken to their user dashboard (which is what used to happen), now they are taken to a screen with a pre-populated box containing an activation link. This confuses them and I end up getting an email asking why they can’t access their account.

    As a user for the last 3 years I’d really appreciate some valuable feedback (and action!) on the above major issues.


    Hi @neets1604

    Thanks for your feedback and thanks for using BuddyPress for 3 years. This email issue happens in BuddyPress because some custom code is overriding our PHPMailer class, that’s the reason why we haven’t identified this issue during our beta release period.

    I’d like to remind you it’s important when users have specific configurations that they gives us a hand to identify these cases during the BuddyPress beta release periods: we cannot test all Themes, all plugins extending BuddyPress and all users specific configurations.

    There’s a plugin to make it easier to test our beta releases, I’d advise you to use it on a staging site to contribute to the project.

    Finally, the upgrade that will fix this issue will be available for download next monday.



    Adding $phpmailer_is_6_0 = true; to Line 57 fixed my issue.

    THANK YOU!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar