Problem and a solution here - hope this helps someone else out as it wasn't intuitive at all and could easily cause hours of troubleshooting for someone who isn't familiar with it.
Fresh install of ZC, left default
Code:
define('HTTP_SERVER','http://www.mydomain.com');
during installation but once I copied over the .htaccess settings from another domain, the admin stopped logging in. No error message, was also unable to reset the password.
I went to test the storefront and upon heading to the login page, the ajax script threw a cross-origin domain error on the login page. Looking at the FireFox console I saw:
Code:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.mystore.com/ajax.php?act=ajaxPayment&method=setNoscriptCookie. This can be fixed by moving the resource to the same domain or enabling CORS.
It finally clicked that "www.mystore.com" and "mystore.com" are "separate" domains and that I had a conflicting configuration.
Problem: .htaccess re-directs to non-www version while the configure.php is set for www-version (or vice-versa).
Solution: Either update configure.php or .htaccess so they both use either www or non-www.
Suggestion to ZenCart team: Detect if there's a redirect/configuration mis-match, there was no error or indication that this may be a problem. Previous versions of ZenCart (151 was my last fresh install) didn't create this problem for me.
Search Engine Keywords: new install v154 zen-cart admin log in failure password reset fail
An unknown response null: :null: :[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://code.jquery.com/jquery-1.11.1.min.js :: .send :: line 4" data: no] was received while processing an ajax call. The action you requested could not be completed.
Bookmarks