emayess
Forum Replies Created
-
Thanks for this fix and the quick turnaround. I have now tested and deployed and it works correctly.
One last question – as this was only discovered in production, we have quite a few affected orders. Before we start contacting all the customers can I just check if the un-truncated choices will have been stored anywhere? postmeta appears to just have the truncated ID and the variations aren’t visible in PayPal.
In class-wpec-process-ipn.php line 111 looks like the culprit:
$var = $v->get_variation( $grp_id, $var_id[0] );It is only taking the first digit of the string containing the selected variation, so works great from 0-9, then 10-19 gives 1 and 20-24 gives 2. Removing the [0] fixes the immediate problem, but I’m not sure if there will be consequences elsewhere, so best you take it from here, please!
I have taken the usual steps: deactivated all other plugins, reinstalled the plugin (but it seems to retain its database content), created a new page without Elementor, creating a new product in WP Express Checkout and it still has a problem.
Narrowing it down, the selection seems to be OK if you choose one of the first ten charities in the list of 25, and then beyond that it always picks something else – and it consistently picks the same one each time.
Tested so far:
Option 1 works
Option 2 works
Option 9 works
Option 10 works
Option 11 becomes option 2 instead
Option 13 becomes 2
Option 15 becomes 2
Option 17 becomes 2
Option 23 becomes 3Some kind of overflow?
Thanks for passing it on.
I have now reproduced this on a local WordPress install against the Paypal sandbox. It behaves in the same way with the W3 Total Cache plugin totally deactivated.
There’s nothing unusual required to reproduce it. Just load the page, choose a charity (e.g. The Hospice of St Francis) and pay with a credit/debit card. It then shows the wrong charity (So far I have consistently got Cancer Research UK when I choose The Hospice of St Francis) on the thank-you page. I’m using Firefox 83. One of my customers was on MacOS Safari.
Yes. W3 Total Cache plugin. However, this page is in the page cache exclusions (“Never cache the following pages” field on Page Cache page)
Another report has come in which means it is not consistently picking the second option and may be a more general corruption defect. These are two examples:
Customer 1 chose Royal National Lifeboat Institution (17th entry) and got British Heart Foundation (2nd)
Customer 2 chose The Hospice of St Francis (23rd) and got Cancer Research (3rd)
There are others, but I am especially confident in the accuracy of these.
Yes, that’s how I set it up.
That was quick – and it now works. Awesome support – thanks.