PHP Error on submission
-
An older topic regarding this issue was closed but the issue it’s very much still alive.
When submitting a form to schedule an appointment, this plugin throws a PHPMailer error. The solution was posted as a diff in an earlier (closed) thread.
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'; + require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php'; + require_once ABSPATH . WPINC . '/PHPMailer/Exception.php'; + $phpmailer = new PHPMailer\PHPMailer\PHPMailer( true );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Error on submission’ is closed to new replies.