SyntaxError: Unexpected token < in JSON at position 0" WordPress Error-SOLVED

  •  
  •  
  •  
  •  
  •  
  •  
How to earn gold for free?
Either balance in cash/credit ledger is not sufficient to set-off the liability or the-GST error

I have WordPress+Woocommerce store setup for my website www.wayanad.net
Woocommerce signup and Checkout was working fine until I installed W3 Total cache plugin. But after installing that plugin, I noticed that the checkout was not successful using the Payumoney payment gateway. The error shown was SyntaxError: Unexpected token < in JSON at position 0..

I thought the error was caused by W3 Total cache. But actually it wasn't. I remembered that I have disabled the option "Anyone can register" in the Settings-> General area.
I tried to make a test purchase by only enabling the Woocommerce checkout option and disabling the "Anyone can register" option. That was the culprit.
As soon as I checked Anyone can register option and making the role for new users as Customers, the error message at checkout vanished and signups were processed normally.
So if you face the same error "SyntaxError: Unexpected token < in JSON at position 0" in your woocommerce store while signing up as a new user, please check whether you have enabled 'Anyone can register' option in Settings->General area in Admin panel.
Its better to make the user role as a customer which syncs nicely with Woocommerce.

Thanks for reading!

Also Visit

Opencart syntax error JSON.parse unexpected end of data at line 1 column 1 of the JSON data-[SOLVED]

Hi all, After upgrading Shop.wayanad.co.in from Opencart
2015-11-30 19:35:07

18

Postie plugin error-php_network_getaddresses: getaddrinfo failed

I am using the Postie plugin for a

2019-11-23 23:04:02

8

MCX Crudeoil views

My views on MCX crudeoil. Just for

2019-09-09 23:41:25

8

This is how Zerodha cheats

I have many experiences of hitting

2019-08-20 10:43:10

8

30% discount coupon for Redbus-upto 13 Feb 2019

Local Guides Discount on redBus
2018-12-13 10:30:36

8

How to earn gold for free?

Are you living in India? If yes, you can have some gold for
2018-07-03 12:52:40

8

Like?

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
test Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
test
Guest
test

Not resolved issue for me this..