Hello, sure i did an update few hours ago
And tested.
Please can you provide me the environment youβre on, so i can see on my end?
Thanks. And sorry about this.π
Update: i have seen the issue, will push a fix asap.
Thread Starter
Ward
(@yward)
Hello there.
I’m using the latest wordpress and Woocommerce versions, however, my website has plenty of plugins, it should not be a conflict since 1.2.1 works fine, it’s 1.3 that is broken.
Additional info:
-I’m using the default country filter and it’s working fine.
Here’s the behaviour:
-Enter an invalid number during checkout and click place order.
-An empty error notice would appear (instead of the invalid phone number message that is supposed to be echoed)
-html code will print at the bottom of checkout page
Since my website is a live site with paying customers I cannot afford to keep your latest version on it so I rolled back to 1.2.1, however, I’ll try to setup a staging website with 1.3.0 to send you screenshots from.
-
This reply was modified 4 years, 10 months ago by
Ward.
Thread Starter
Ward
(@yward)
Additional environment info:
-PHP 7.3.19RC1
-MariaDB 11.3
-PHP memory limit: 4GB
Let me know if you need any further info.
Hello, thanks for it.
The issue has been resolved, please reinstall and let me know.
Will be waiting.
Thread Starter
Ward
(@yward)
Hi again,
Sadly your fix broke the entire website this time, here’s a screenshot:
https://www.upload.ee/image/12085032/Screenshot_2.png
Error that broke the website is in:
wp-content/plugins/woo-phone-validator/public/class-woocommerce-checkout.php on line 44
Please test your changes locally before pushing live, thank you once more <3
Thread Starter
Ward
(@yward)
It appears to be related to the preferred countries filter you’ve added in the latest version
Thread Starter
Ward
(@yward)
PHP Fatal error: Uncaught Error: Call to undefined method WC_PV::get_preferred_countries()
Hi @yward , really sorry about this situation.
I am currently on a staging site, and using v1.3.0
and it works fine
http://peths.digital/bybo/checkout/
The
PHP Fatal error: Uncaught Error: Call to undefined method WC_PV::get_preferred_countries()
shouldn’t be, because its defined in
wp-content/plugins/woo-phone-validator/includes/class-wc-pv.php on line 254
Thread Starter
Ward
(@yward)
I’ll setup my own staging site tomorrow and help find the reason for the issue, as I cannot test again on my live site.
Okay then, i thought you had already set one up.
I will be expecting your feedback ASAP!
Do have a nice night.
Once again, I’m really sorry for the errors.
Thread Starter
Ward
(@yward)
No problem at all! Thank you for sharing this with wordpress community and for your prompt response and help!
I’ll make sure to post feedback once I test tomorrow!