topsy coder
topsy coder

Reputation: 103

Unable to fix malformed JSON in wordpress

I am using woocommerce for the first time with wordpress in order to setup an e-commerce site. Everything is installed properly from wordpress to woocommerce plugin and the theme. But the problem resides.

Kindly check below imageenter image description here

I keep getting the same error again and again, I reinstalled the entire wordpress site but no luck. I followed few tutorials wherein they instruct to open browser console and check for a red line which I don't receive in my console.

What I get is in the image below enter image description here

Also, somehow I am not even able to select another payment option other then cash on delivery which I have installed on my site. I have been struggling for last 3 days, but no luck! Kindly do not down vote this question. As I am feeling helpless at the moment.

The site is fashionburst.in

Thanks in advance

Upvotes: 2

Views: 5866

Answers (1)

Milan Švehla
Milan Švehla

Reputation: 635

For anyone who might run into this issue, try to turn on debugging in wp-config.php

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );

And then read the log file in wp-content/debug.log. I had a PHP error in one of my plugin's hooks and since the checkout is processed with JS, the checkout.min.js threw this error. Log file should give you proper error report (in my case I was using undefined PHP function).

Upvotes: 3

Related Questions