dannyandersen
Forum Replies Created
-
Forum: Plugins
In reply to: [Wise Chat] Error on installThe last error I think appeared due to session having logged off…
Forum: Plugins
In reply to: [Wise Chat] Error on installAs I was testing – I also got this error in the chat window:
Server error: SyntaxError: JSON Parse error: Unrecognized token ‘<‘
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)Solved by Carlos over at Quaderno – check them out at https://quaderno.io – what awesome service!!! Especially for solving EU VAT rules on invoicing. He actually took the time to go through the source code of PMPro and find and solve this issue faster than PMPro could answer. Thank you Carlos and Quaderno.
And thank you Jason and PMPro for a great Plug-in.
You have to edit the file /pages/checkout.php
Search line 400 and replace
<select name="bcountry" class=" <?php echo pmpro_getClassForField("bcountry");?>">
for
<select id="bcountry" name="bcountry" class=" <?php echo pmpro_getClassForField("bcountry");?>">
/ Danny
I have now tested in live mode. The first test worked even though the country still did not come through to Stripe. Then I tried selecting Sweden instead and then it registered as Denmark. I think it defaults to the credit card country because it still gets the wrong info through the hook:
address_country: “undefined”
Please let me know how this can be solved.
Thanks,
Danny