Post by chris.dempsey » Thu Oct 21, 2021 9:11 pm

There is a Javascript popup alert on my Account Registration page but I can't identify what triggers it. The error can be seen by following any of the account registration links eg. My Account > Register at the top of the screen to https://www.allscotltd.co.uk/index.php? ... t/register

The browser console shows 3 XHR errors, one of which contains the same HTML shown by the Javascript error popup. This is a GET request for https://www.allscotltd.co.uk/index.php? ... ount/login

I can't identify which Javascript event triggers the XHR request. Can anyone help please?

OpenCart Version 2.3.0.2
There are no php errors or any seemingly related errors in the opencart error log.

Image
Last edited by chris.dempsey on Thu Oct 21, 2021 10:56 pm, edited 1 time in total.

New member

Posts

Joined
Wed Apr 04, 2012 6:43 pm

Post by straightlight » Thu Oct 21, 2021 10:13 pm

PHP error logs.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by ADD Creative » Thu Oct 21, 2021 10:15 pm

Your AJAX request for the zone list is requesting /index.php?route=account/account/country, which is getting redirected to /index.php?route=account/login.

www.add-creative.co.uk


Expert Member

Posts

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

Post by chris.dempsey » Thu Oct 21, 2021 10:40 pm

ADD Creative wrote:
Thu Oct 21, 2021 10:15 pm
Your AJAX request for the zone list is requesting /index.php?route=account/account/country, which is getting redirected to /index.php?route=account/login.
Well spotted - 302 is clearly a redirect and I should have seen this.

Issue resolved - it was a missing

Code: Select all

$
character in the server config file relating to redirects.

Thank you.
straightlight wrote:
Thu Oct 21, 2021 10:13 pm
PHP error logs.
For completeness, as per initial post, there were no entries in php_error.log.

New member

Posts

Joined
Wed Apr 04, 2012 6:43 pm

Post by straightlight » Thu Oct 21, 2021 10:53 pm

chris.dempsey wrote:
Thu Oct 21, 2021 10:40 pm
ADD Creative wrote:
Thu Oct 21, 2021 10:15 pm
Your AJAX request for the zone list is requesting /index.php?route=account/account/country, which is getting redirected to /index.php?route=account/login.
Well spotted - 302 is clearly a redirect and I should have seen this.

Issue resolved - it was a missing

Code: Select all

$
character in the server config file relating to redirects.

Thank you.
straightlight wrote:
Thu Oct 21, 2021 10:13 pm
PHP error logs.
For completeness, as per initial post, there were no entries in php_error.log.
No problem. Now that issue has been resolved, please add: [SOLVED] at the beginning of the subject line on your first post.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by chris.dempsey » Thu Oct 21, 2021 10:57 pm

Appreciate the housekeeping prompt - this is done.

New member

Posts

Joined
Wed Apr 04, 2012 6:43 pm
Who is online

Users browsing this forum: No registered users and 97 guests