• I installed the plugin. Sending invites seemed to work but then I checked and nothing was being sent or received.

    I edited the SMTP settings and then I got:
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    Valid settings don’t work. I don’t know how to proceed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter blopster

    (@blopster)

    There didn’t seem to be anything in the logs and I didn’t get any e-mail to the admin account.

    I’m seeing errors in my logs as well. However, my logs state the following: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Invitation_Based_Registrations_Admin::invitation_based_registrations_configure_smtp() must be an instance of PHPMailer, instance of PHPMailer\\PHPMailer\\PHPMailer given, called in /nas/content/live/iymny/wp-includes/class-wp-hook.php on line 287

    I confirmed my smtp config with another program and the smpt host port, username, and password are correct.

    My hosting provider is WPEngine and I’m using WP version 5.5.1, PHP 7.4 and I configured the Invite Users::SMTP Setup.

    • This reply was modified 4 years, 1 month ago by ecruz165.
    • This reply was modified 4 years, 1 month ago by ecruz165.
    • This reply was modified 4 years, 1 month ago by ecruz165.
    • This reply was modified 4 years, 1 month ago by ecruz165.

    I was able to replicate the issue locally using LocalWP. PHPMailer is confirmed working. Investigating further. Seems to be a WordPress compatibility issue. Seems this plugin was last tested up to: 5.5.

    Hosting: WPEngine
    WordPress: 5.5.1
    PHP: 7.4.1

    I solved the issues encountered.

    ISSUE #1: Uncaught TypeError:
    SYMPTOM: Critical error
    // Edit wp-content/plugins/invitation-based-registrations/admin/class-invitation-based-registrations-admin.php
    // On line #2 Add line >> use PHPMailer\PHPMailer\PHPMailer;

    ISSUE #2: Exception: Message body empty
    SYMPTOM: No emails were being sent.
    OBSERVATION: in file: wp-content/plugins/invitation-based-registrations/admin/partials/invitation-based-registrations-admin-display.php
    DETAIL: $emailbody = get_option(“invbr_email_body”); resulted as empty
    WORK AROUND: Navigate to WP-Admin > Invite Users -> EMail Templates -> [click] Update Template.

    After clicking Update Template get_option(“invbr_email_body”) is populated and plugin works. I suspect that any web server would require the workaround done once after starting up the process.

    • This reply was modified 4 years, 1 month ago by ecruz165.
    • This reply was modified 4 years, 1 month ago by ecruz165.

    Hi,

    Thank you for pointing out this.

    We will release a fix very soon for this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SMTP errors’ is closed to new replies.