Page 1 of 1

Syntax error: unexpected token < in JSON at position 0

Posted: Fri Nov 09, 2018 9:04 pm
by SYED_APPRO
have a problem with user registration and delivery method and payment method.
I've installed a fresh copy of opencart 3.0.2.0 and still have the same problem.
when click conform order and registration it shows Syntax error: unexpected token < in JSON at position 0
Also told failed to connect mail server ww.root/system/mail.php online 77 warning
Can you help me resolve this issue?

Re: Syntax error: unexpected token < in JSON at position 0

Posted: Fri Nov 09, 2018 10:32 pm
by Johnathan
Your SMTP settings in System > Settings > Mail are wrong. Double-check those, or switch from SMTP to the php "Mail" function.

Your issue is definitely a mail issue, so you must have wrong settings in there. If you can't figure it out, you'll probably need to hire someone to assist with this, or figure out if something else you've installed is causing this. If you need to find a developer, you should post a request in the OpenCart "Commercial Support" forum, which is checked by a number of OpenCart developers. You can also try checking out the OpenCart "Partners" area.

Re: Syntax error: unexpected token < in JSON at position 0

Posted: Mon May 20, 2019 4:13 pm
by calinpuscas
Regarding the same error:

I have 2 stores, same Opencart 3.0.2, same .htacces file, one store is ok, the second give me error when refreshing theme (like: SyntaxError: Unexpected token < in JSON at position...) and the seo URL send me to 404 Page not found... what could be the difference between these two stores? Did you encounter this error somewhere, sometimes related to? (Google have no idea)
Image
Thanks for your help,