Error “SyntaxError: JSON.parse: …”
-
Hi,
We’ve installed Zahls.ch Woocommerce plugin in order to accept Twint payments.
Twint Business account was created and the Store UUID added on the connection settings of my Zahls.ch account but ther’s an error when Twint payment is selected on the store: “SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data”
We’ve activated the debug on the website and here are the logs:
[02-Sep-2022 06:03:07 UTC] PHP Notice: ?Undefined index: zahls-allow-recurring in /home/mysite/public_html/wp-content/plugins/zahls-ch-payment-gateway/woo-zahls-gateway.php on line 192
[02-Sep-2022 06:03:07 UTC] PHP Fatal error: ?Uncaught Error: Call to a member function getId() on null in /home/mysite/public_html/wp-content/plugins/zahls-ch-payment-gateway/woo-zahls-gateway.php:237
Stack trace:
#0 /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(982): WC_Zahls_Gateway->process_payment(89232)
#1 /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1206): WC_Checkout->process_order_payment(89232, ‘zahls’)
#2 /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(461): WC_Checkout->process_checkout()
#3 /home/mysite/public_html/wp-includes/class-wp-hook.php(307): WC_AJAX::checkout(”)
#4 /home/mysite/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#5 /home/mysite/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#6 /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(90): do_action(‘wc_ajax_checkou…’)
#7 /home/mysite/public_html/wp-includes/class-wp-hook.php(307): W in /home/mysite/public_html/wp-content/plugins/zahls-ch-payment-gateway/woo-zahls-gateway.php on line 237We really appreciate your help solve this.
It is very important to have Twinty payments working ASAP.
Thanks
- The topic ‘Error “SyntaxError: JSON.parse: …”’ is closed to new replies.