Error trying to send SMS since Version 6.5
-
Hello, I am using WP-SMS + WP SMS Pro Pack
I programmed an SMS-verification-plugin of my own, which in turn uses WP-SMS to send SMS to a user. It was working flawlessly for months now.
When I upgrade to version 6.5 of WP-SMS the plugin cannot send SMS with WP-SMS anymore. Therefore, I had to revert to a previous version.
Here is the stack trace (phone number anonymized):
[27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#0 /var/www/virtual/king/html/wp-content/plugins/wp-sms/src/BackgroundProcess/SmsDispatcher.php(37): count('+491767XXXXXXX')" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#1 /var/www/virtual/king/html/wp-content/plugins/wp-sms/includes/functions.php(475): WP_SMS\BackgroundProcess\SmsDispatcher->dispatch()" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#2 /var/www/virtual/king/html/wp-content/plugins/user-SMS-verification.php(113): wp_sms_send('+491767XXXXXXX', 'Hallo, Dein Ver...')" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#3 /var/www/virtual/king/html/wp-content/plugins/user-SMS-verification.php(99): send_verification_sms('+491767XXXXXXX', 'CIA2')" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#4 /var/www/virtual/king/html/wp-content/plugins/user-SMS-verification.php(42): handle_phone_verification('+491767XXXXXXX')" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#5 /var/www/virtual/king/html/wp-includes/class-wp-hook.php(324): custom_page_for_unverified_users('')" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#6 /var/www/virtual/king/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#7 /var/www/virtual/king/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#8 /var/www/virtual/king/html/wp-includes/template-loader.php(13): do_action('template_redire...')" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#9 /var/www/virtual/king/html/wp-blog-header.php(19): require_once('/var/www/virtua...')" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#10 /var/www/virtual/king/html/index.php(17): require('/var/www/virtua...')" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: "#11 {main}" [27-Dec-2023 00:13:50] WARNING: [pool www] child 9101 said into stderr: " thrown in /var/www/virtual/king/html/wp-content/plugins/wp-sms/src/BackgroundProcess/SmsDispatcher.php on line 37"
As you might see, The issue manifests during the SMS dispatch process, particularly when the
wp_sms_send
function is called. This leads to a chain of calls, ultimately resulting in the error atSmsDispatcher.php
.I suggest reviewing the use of the
count()
function in this context.My plugin is working in version 6.4.2 but breaks when I update to 6.5.
Thank you!
- The topic ‘Error trying to send SMS since Version 6.5’ is closed to new replies.