• Hi,

    I have found a wordpress 5.5 compatibility issue blocking me from upgrading our production site to wordpress 5.5 and latest booking ultra pro version:

    When Booking Ultra Pro is trying to send out E-Mails after test user submits the booking form wordpress is showing a fatal error message. I have enabled the E-Mail setting “Send all Booking Ultra emails via SMTP” and email sending was working fine before upgrade to WP 5.5. and Booking Ultra Pro 1.0.81. All caching plugins where disabled for testing.

    When enabling Debug mode wordpress shows following lines, indicating that there might be some code changes necessary to support wordpress 5.5:

    Deprecated: class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /var/www/test-site/html/wp-includes/functions.php on line 4963
    
    Deprecated: class-smtp.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/SMTP.php instead. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /var/www/test-site/html/wp-includes/functions.php on line 4963
    
    Fatal error: Cannot declare class PHPMailer\PHPMailer\SMTP, because the name is already in use in /var/www/test-site/html/wp-includes/PHPMailer/SMTP.php on line 30
    There has been a critical error on your website.

    Could you please have a look at this issue?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    We are updating to plugin ASAP in order to make it 100% compatible with the new version of WP.

    Cheers

    Thread Starter mordimpark

    (@mordimpark)

    Hi,

    any news on this issue? I am still not able to update to wordpress 5.5. Do I need to search for a still supported booking system?

    @mordimpark,

    Thank you for your post.

    The new version is almost ready, it uses the new PHPMailer.

    We hope to release it right today
    Cheers

    This plugin is seriously broken. When is that update coming? You said you were releasing it today (but that was almost 3 weeks ago…)

    Thread Starter mordimpark

    (@mordimpark)

    Hi again,

    also with 1.0.86 the issue is not fixed when using build-in SMTP settings.

    Please update bookingultra.messaging.php again. You forgot to adopt path to smtp php file like already done for phpmailer. It can be fixed by following diff:

    
    diff  bookingultra.messaging.php_new bookingultra.messaging.php_1.0.86
    106,108c106,107
    <                               require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';
    <                               require_once ABSPATH . WPINC . '/PHPMailer/Exception.php';
    <                               $phpmailer = new PHPMailer\PHPMailer\PHPMailer( true );
    ---
    >                               require_once ABSPATH . WPINC . '/class-smtp.php';
    >                               $phpmailer = new PHPMailer( true );

    After applying those changes booking ultra pro is sending again emails on wordpress 5.6

    Hey guys,

    This issue was fixed some weeks ago.

    Could you please confirm by your side?

    Hi,
    The problem still exists

    Notice: Undefined index: bup-purchased-qty in /wp-content/plugins/booking-ultra-pro/classes/bookingultra.register.php on line 709

    Notice: Undefined variable: p_name in /wp-content/plugins/booking-ultra-pro/classes/bookingultra.register.php on line 797

    Notice: Undefined variable: cart_id in /wp-content/plugins/booking-ultra-pro/classes/bookingultra.order.php on line 192

    Notice: Undefined variable: p_name in /wp-content/plugins/booking-ultra-pro/classes/bookingultra.register.php on line 1039

    Notice: Undefined variable: quantity in /wp-content/plugins/booking-ultra-pro/classes/bookingultra.order.php on line 161

    Notice: Trying to get property ‘filter_name’ of non-object in /wp-content/plugins/booking-ultra-pro/classes/bookingultra.messaging.php on line 1008

    Deprecated: class-smtp.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/SMTP.php instead. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /wp-includes/functions.php on line 5049

    Fatal error: Cannot declare class PHPMailer\PHPMailer\SMTP, because the name is already in use in /wp-includes/PHPMailer/SMTP.php on line 31
    There has been a critical error on this website.

    • This reply was modified 3 years, 2 months ago by dkarginov.
    Thread Starter mordimpark

    (@mordimpark)

    Hi,

    it was not fixed. Also in 1.0.88 I still have to manually patch “classes/bookingultra.messaging.php” to fix PHPMailer issue on wordpress > 5.5.

    Here again the diff to original version

    user@machine:~/git/booking-ultra-pro$ git diff master classes/bookingultra.messaging.php
    diff --git a/classes/bookingultra.messaging.php b/classes/bookingultra.messaging.php
    index 65ec3bb..2cff504 100755
    --- a/classes/bookingultra.messaging.php
    +++ b/classes/bookingultra.messaging.php
    @@ -102,8 +102,10 @@ class BookingUltraProMessaging extends BookingUltraCommon
                     
                    // wp-includes/PHPMailer/PHPMailer.php
                                    require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php';
    -                               require_once ABSPATH . WPINC . '/class-smtp.php';
    -                               $phpmailer = new PHPMailer( true );
    +                //require_once ABSPATH . WPINC . '/class-phpmailer.php';^M
    +                               require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';^M
    +                               require_once ABSPATH . WPINC . '/PHPMailer/Exception.php';^M
    +                               $phpmailer = new PHPMailer\PHPMailer\PHPMailer( true );^M
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wordpress 5.5 compatibility issue’ is closed to new replies.