• Resolved Ham Sammich

    (@chrisbloom)


    I have a fresh WP 6.0 install that I just added this plugin to. Clicking the SMTP Setup link results in a There has been a critical error on this website. Please check your site admin email inbox for instructions error and I’m unable to complete setup.

    WordPress version 6.0
    Active theme: Twenty Twenty-Two (version 1.2)
    Current plugin: Invitation Based Registrations (version 2.2.83)
    PHP version 8.0.2

    Error Details
    =============
    An error of type E_ERROR was caused in line 5 of the file /home/wp-content/plugins/invitation-based-registrations/admin/partials/invitation-based-registrations-smtp.php. Error message: Uncaught Error: Undefined constant “IVBR_SMTP_ACCESS” in /home/wp-content/plugins/invitation-based-registrations/admin/partials/invitation-based-registrations-smtp.php:5
    Stack trace:
    #0 /home/wp-content/plugins/invitation-based-registrations/admin/class-invitation-based-registrations-admin.php(75): invitation_based_registrations_invite_smtp()
    #1 /home/wp-includes/class-wp-hook.php(307): Invitation_Based_Registrations_Admin->invite_users_smtp(”)
    #2 /home/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
    #3 /home/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #4 /home/wp-admin/admin.php(259): do_action(‘invite-users_pa…’)
    #5 {main}
    thrown

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ham Sammich

    (@chrisbloom)

    Looking at the source code, I tried adding define("IVBR_SMTP_ACCESS", ""); to wp-config.php which enabled me to access that page. Seems like you want a check there to make sure it’s defined first before checking the value

    This is fixed in version 2.2.84

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot setup SMTP on fresh install’ is closed to new replies.