Skip to:
Content
Pages
Categories
Search
Top
Bottom

PHPmailer class not found


  • webmasterfreya
    Participant

    @webmasterfreya

    Hi,
    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 84.105.208.255:32788] AH01071: Got error 'PHP message: [CRITICAL] : Uncaught Error: Class 'PHPMailer' not found in /var/www/vhosts/freya.nl/httpdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php:91\nStack trace:\n#0 /var/www/vhosts/freya.nl/httpdocs/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(3233): BP_PHPMailer->bp_email(Object(BP_Email))\n#1 /var/www/vhosts/freya.nl/httpdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-notifications.php(173): bp_send_email('groups-membersh...', 1, Array)\n#2 /var/www/vhosts/freya.nl/httpdocs/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-invitation-manager.php(48): groups_notification_new_membership_request(5655, 1, 6, 1101)\n#3 /var/www/vhosts/freya.nl/httpdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-invitation-manager.php(343): BP_Groups_Invitation_Manager->run_send_action(Object(BP_Invitation))\n#4 /var/www/vhosts/freya.nl/httpdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-functions.php(2043): BP_Invitation_Manager->send_re...', referer: https://www.freya.nl/groepen/

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

  • webmasterfreya
    Participant

    @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 {

    works


    swingerstaboo
    Participant

    @illatooscuro

    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 https://buddypress.trac.wordpress.org/ticket/8347


    neets1604
    Participant

    @neets1604

    Hi,

    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.

    Thanks,
    Anita

    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.


    jcfromkc
    Participant

    @jcfromkc

    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