Posted: December 16, 2024 at 3:46 pm
Hello. On Nov 6, we changed the payment method from PayPal Standard to PayPal Commerce as indicated. |
|
Hi there, Take a look in Event Espresso -> Payment methods. At the top of the list table you’ll see a logs tab, click that. Now you’ll see log entries for your EE Transactions. Find a transaction this happened on in that table (the TXN ID is on the right), click on the log ID to the left for the log entries for that transaction, do you see any errors there? I’m guessing you’ll see an ‘invalid_string_length’ error but we need to confirm. Also go to Event Espresso -> Maintenance -> System information. Search that page for ‘serialize precision’, what value does it show? |
|
Thanks for your fast answer. Gateway Logs Lifespan is set to 7 days so, all those transaction logs are lost. Searching my browser history, I found I was inquiring about “NOT_AUTHORIZED |
|
serialize precision of 100 is most likely causing this. That value (and how it is applied) changed in PHP7, the default values used to be -1. It means that float values (decimals) are represented to a more precise value, so 10.99 would be show as something like 10.9876345242443 PayPal only accepts 2 decimal places so when that happens it throws an invalid string length error. Change serialize_precision to be |
|
Thank you very much. I’ll ask somebody who knows how to do that, to edit the PHP setting for us. If new issues show up, I will contact you sooner, before the gateway logs get deleted ๐ |
|
Whilst you know there might be an issue, you could raise the log lifespan a little to give some more wiggle room. Event Espresso -> Payment methods -> Settings -> Gateway Logs Lifespan 14 days gives you a little more space, or 30 for maximum effort ๐ Once PayPal Commerce is confirmed work just lower it down again if needed. |
|
Hi, finally, alter talking to Godaddy, we got them to change that parameter (because it is not allowed to edit it on our side). This is how it looks now. Would it be enough or they also need to change the global value to -1? |
|
That should work fine. To test this, you need a ticket that has decimal values. I would set up a quick test event (just another event in EE, you can set it to be privately published if preferred so only logged in users can see it) and set the ticket price to say 10.99. Register and try to pay with PayPal Commerce, if you have the ‘Express Checkout’ buttons enabled (the PayPal pay buttons) then you’ll know if this worked if you click on one of those and its asks for your PayPal login (or shows your current PayPal account to pay)… if your getting to that point, orders are now working. Or post a link to the event (if public) and I’ll test to confirm. |
|
You must be logged in to reply to this support post. Sign In or Register for an Account