Post by alex067 » Thu Oct 26, 2017 6:36 am

I have been removing the "your address" and telephone field from checkout/registration so my store only requires the email and password

however i think i changed something in one of the files and now i get this error everytime i register a new user through checkout/register:

"unexpected token < in JSON at position 0
OK
Warning: mail(); failed to connect to mail server etc.etc. etc. "

i dont know why the mail() error is showing up, because i didnt even touch the system/librayr/mail/mail.php...

does anyone know how to fix this? the two files i changed are checkout/register.twig and checkout/register.php, where i removed the address and telephone fields


here is a screenshot of the error message: https://ibb.co/khvzBR
Last edited by alex067 on Thu Oct 26, 2017 8:11 am, edited 1 time in total.

New member

Posts

Joined
Wed Jul 12, 2017 9:50 am

Post by alex067 » Thu Oct 26, 2017 8:07 am

forgot to mention:


the error happens when I register, so I fill in:

first name, last name, email, password & confirm password, check box privacy, click "register" and then the error pops up. but the user is succesfully registered, if i refresh the page, it will have created my account

New member

Posts

Joined
Wed Jul 12, 2017 9:50 am

Post by straightlight » Thu Oct 26, 2017 8:38 am

Ensure to configure the admin - > system - > settings - > edit page - > mail tab form before officially starting to use the emails. Most merchants do configure their email options with Gmail.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by alex067 » Thu Oct 26, 2017 9:09 am

We dont use the emails though! Haven;t touched that code at all

New member

Posts

Joined
Wed Jul 12, 2017 9:50 am

Post by Dhaupin » Sat Nov 04, 2017 2:48 am

Just a hunch here, but If you don't use SMTP mail, it could be an autofill issue. Basically it seems like OC is saying its trying to use SMTP, but its not working.

First place to look is admin settings > mail tab, make sure there is nothing filled in the SMTP fields. Additionally, make sure the dropdown is set to "mail" and not SMTP. Make sure it doesnt get autofilled.

Chrome and other browsers often try to fill in autosaved login credentials to fields that arent necessarily a login field. I have had this happen to me many times with SMTP. All it takes is a click on a mail tab/section, even if you close it again. This is a true annoyance for many ecommerce/crm platforms :D

https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.


User avatar
Active Member

Posts

Joined
Tue May 13, 2014 3:45 am
Location - PA
Who is online

Users browsing this forum: No registered users and 18 guests