Post by ATVDevelopments » Mon Feb 15, 2021 6:13 am

Hi, This is my first ever post here.
I have spent considerable time trying to resolve this problem and have found some other posts similar but have been unable to find a solution.
A new customer isn't able to fill out the region / state part of the address on the front end. However if I intervene from admin, I'm able to select it from the back end. Strangely, if I then look at the entry again in the front end and try to make an edit of it, the State /region is blank again.

It has not been the case for all customers however and I think it may be specific to the safari browser, but I'm uncertain.

I would appreciate any support that could be offered as a solution
I don't have many custom extensions installed, just the Square payment ( square.ocmod.zip)
My site is https://www.atvdevelopments.co.uk
The opencart version is 3.0.3.6
Thank you
Last edited by ATVDevelopments on Sun Feb 21, 2021 12:11 am, edited 3 times in total.

I don't have many custom extensions installed, just the Square payment ( square.ocmod.zip)
My site is https://www.atvdevelopments.co.uk
The opencart version is 3.0.3.6
Thanks



Posts

Joined
Thu Oct 22, 2020 4:10 am
Location - UK

Post by mikeinterserv » Mon Feb 15, 2021 8:03 pm

Don't see the problem myself
Chose various countries and states/regions on register page and was able to continue.
Chrome desktop

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ATVDevelopments » Mon Feb 15, 2021 8:17 pm

Thanks for the feedback.
It seems to be a problem when somebody uses an iphone or ipad, which is not uncommon these days.

I don't have many custom extensions installed, just the Square payment ( square.ocmod.zip)
My site is https://www.atvdevelopments.co.uk
The opencart version is 3.0.3.6
Thanks



Posts

Joined
Thu Oct 22, 2020 4:10 am
Location - UK

Post by mikeinterserv » Mon Feb 15, 2021 9:50 pm

So what happens on the ipad, what's the actual problem
Are the states regions unavailable - disabled ?
State region is a DROPDOWN - you don't fill it out as such

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ATVDevelopments » Tue Feb 16, 2021 7:04 am

Yes, the region / state field is empty. I.e. no list to select from and it generates the error as shown in the screen captures from my ipad. It would seem I can’t attach them using the ipad. I’ll try again tomorrow using a proper computer

I don't have many custom extensions installed, just the Square payment ( square.ocmod.zip)
My site is https://www.atvdevelopments.co.uk
The opencart version is 3.0.3.6
Thanks



Posts

Joined
Thu Oct 22, 2020 4:10 am
Location - UK

Post by ATVDevelopments » Tue Feb 16, 2021 7:23 am

Here are screen images of what happens when an attempt is made to add an address.
In this case I'm using an ipad

I don't have many custom extensions installed, just the Square payment ( square.ocmod.zip)
My site is https://www.atvdevelopments.co.uk
The opencart version is 3.0.3.6
Thanks



Posts

Joined
Thu Oct 22, 2020 4:10 am
Location - UK

Post by mikeinterserv » Tue Feb 16, 2021 7:57 am

The errors are the page is not getting the JSON response
The second error is caused by the first error - there is no array.
It is difficult to know from here what is the cause
What extensions etc do you have installed

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by sw!tch » Tue Feb 16, 2021 9:09 am

ATVDevelopments wrote:
Tue Feb 16, 2021 7:23 am
Here are screen images of what happens when an attempt is made to add an address.
In this case I'm using an ipad
Apply the fixes below or roll down to php 7.3
https://github.com/opencart/opencart/co ... 224db82ce0
-

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by ATVDevelopments » Wed Feb 17, 2021 5:16 pm

sw!tch wrote:
Tue Feb 16, 2021 9:09 am
ATVDevelopments wrote:
Tue Feb 16, 2021 7:23 am
Here are screen images of what happens when an attempt is made to add an address.
In this case I'm using an ipad
Apply the fixes below or roll down to php 7.3
https://github.com/opencart/opencart/co ... 224db82ce0
-
This has now solved my problem, Thank you for your support

I don't have many custom extensions installed, just the Square payment ( square.ocmod.zip)
My site is https://www.atvdevelopments.co.uk
The opencart version is 3.0.3.6
Thanks



Posts

Joined
Thu Oct 22, 2020 4:10 am
Location - UK

Post by ADD Creative » Thu Feb 18, 2021 8:38 am

ATVDevelopments wrote:
Wed Feb 17, 2021 5:16 pm
This has now solved my problem, Thank you for your support
Looks like your site still has display errors on. This can cause two issues. First it's a security risk. Second even a simple PHP notice will cause JSON responses to fail, as you have found out.

To stop all errors being displayed you need to do all of the following.
1. Set the PHP display_errors setting to Off (or 0 or false). This may need to be done in you main php.in, local php.ini, user.ini, .htaccess or hosting control panel, depending on you hosting setup.

2. Set $_['error_display'] to false in you system/config/default.php file.

3. Set Display Errors to No in the OpenCart settings.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by ATVDevelopments » Sat Feb 20, 2021 11:04 pm

ADD Creative wrote:
Thu Feb 18, 2021 8:38 am
ATVDevelopments wrote:
Wed Feb 17, 2021 5:16 pm
This has now solved my problem, Thank you for your support
Looks like your site still has display errors on. This can cause two issues. First it's a security risk. Second even a simple PHP notice will cause JSON responses to fail, as you have found out.

To stop all errors being displayed you need to do all of the following.
1. Set the PHP display_errors setting to Off (or 0 or false). This may need to be done in you main php.in, local php.ini, user.ini, .htaccess or hosting control panel, depending on you hosting setup.

2. Set $_['error_display'] to false in you system/config/default.php file.

3. Set Display Errors to No in the OpenCart settings.
Thank you for that, I carried out those mods now
I'm new to opencart, so basic best practices are just being learned as I go.

I don't have many custom extensions installed, just the Square payment ( square.ocmod.zip)
My site is https://www.atvdevelopments.co.uk
The opencart version is 3.0.3.6
Thanks



Posts

Joined
Thu Oct 22, 2020 4:10 am
Location - UK
Who is online

Users browsing this forum: ggrant3 and 40 guests