• Please see the error which is now being logged since latest update:

    PHP message: PHP Warning: Use of undefined constant SMS - assumed 'SMS' (this will throw an Error in a future version of PHP) in /var/www/html/wp-content/plugins/woocommerce-sendinblue-newsletter-subscription/woocommerce-sendinblue.php on line 496

    • This topic was modified 3 years, 10 months ago by opicron.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Brevo

    (@neeraj_slit)

    Hi @opicron

    Thanks for reaching out!

    I will share this with our specialist team and let you know here of any further details once I receive them. Thanks so much for letting us know!

    Kindly,
    Sendinblue Customer Care

    Plugin Author Brevo

    (@neeraj_slit)

    Hi again, and apologies for the delay!

    Our specialist team has identified the issue and is working on a solution for an upcoming update to the plugin. In the meantime, you can change this code at your end in the plugin, as to remove the warning until we are able to send the fix globally from our end:

    File: wp-content/plugins/woocommerce-sendinblue-newsletter-subscription/woocommerce-sendinblue.php
    Line: 493 -496
    Code:
    
    if(!empty($info['SMS'])){
    $iso_code = SIB_Model_Country::get_prefix($billing_data['billing']['country']);
    $info['SMS'] = self::checkMobileNumber($info['SMS'], $iso_code);
    }

    If you face any issue and would like for us to update this for you, please send us an email at [email protected] so we can provide additional support.

    We hope this helps!
    -Sendinblue Customer Care

    Thanks! I needed this too.

    Plugin Author Brevo

    (@neeraj_slit)

    Hello @clickingclients,

    Thank you for reaching out!

    Kindly make the suggested changes in the code and test it at your end. In case you face any issues, please let us know!

    Regards,

    Done and it works. Thanks

    Thread Starter opicron

    (@opicron)

    I updated the plugin due to the new version and the error in the logs is piling up again. Could you please ask your dev team to implement the fix? I’d like to avoid manually adjusting the code after each update.

    Plugin Author Brevo

    (@neeraj_slit)

    Hello @opicron!

    Thanks for reaching out.

    I have reported this to the dev team and will update you shortly with their response.

    Thankyou,

    Sendinblue Customer Care

    Nick

    (@nicknoordijk)

    Hey! So happy to find this topic. @neeraj_slit You guys really need to update this soon because when clients use the checkout function and fill in a phone number the checkout fails!

    I’ve updated it with this code and it works but please give this top priority.

    Plugin Author Brevo

    (@neeraj_slit)

    Hello,

    Thank you so much for your reply.
    Can you please tell me whether the issue is currently affecting you?

    The latest update of the plugin should have this corrected, have you updated it?
    Did you add the code on the previous version?

    File: wp-content/plugins/woocommerce-sendinblue-newsletter-subscription/woocommerce-sendinblue.php
    Line: 493 -496
    Code:
    
    if(!empty($info['SMS'])){
    $iso_code = SIB_Model_Country::get_prefix($billing_data['billing']['country']);
    $info['SMS'] = self::checkMobileNumber($info['SMS'], $iso_code);<code></code>

    }

    Sincerely

    Nick

    (@nicknoordijk)

    Hi, I’ve used the code above and it did solve the problem. But it’s a sneaky error that might not be seen by many other shops. Therefore I was asked to bring out a fix asap. Does the new 2.0.10 has this fix?

    Thanks!

    Plugin Author Brevo

    (@neeraj_slit)

    Hello @nicknoordijk,

    Thanks for your reply.

    Our developers have created a task to ensure the issue is fixed globally in our next release.

    You are welcome to reach out to [email protected] if you experience any further issues!

    Thanks,
    Sendinblue Customer Care

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘PHP warning in new version’ is closed to new replies.