Login error after customer code is entered

Login error after customer code is entered

CandiLynn
Visitor
3 0 0

We are just about ready to launch our Shopify website but are having an issue. When testing the login with a code, this error below pops up. We have made sure the code is correct. Once we click back to the previous page, we are in fact logged in, but we obviously don't want our customers to get this message. Anyone know how to fix this?? We need to get our site launched asap. Thank you

 

Something went wrong.

What happened?

Sorry, a login error occurred. Please try again.
Replies 3 (3)

TheUntechnickle
Shopify Partner
382 37 99

Hey @CandiLynn,

Let me help you troubleshoot this Shopify login error. From what you've described, it seems like a common issue where the authentication is actually succeeding but there's a redirect or state management problem causing the error message to display incorrectly.

 

Here are several potential causes and solutions we should systematically check:

 

First, let's verify the technical setup:
1. Clear browser cache and cookies, then test in an incognito/private window. This eliminates any potential conflicts with stored session data.

2. Check your Shopify theme's customer account settings:
     - Navigate to Online Store > Themes > Customize > Theme Settings > Customer Accounts
     - Ensure the login redirect URL is correctly configured.

3. Examine the customer accounts configuration:
     - Go to Settings > Customer Accounts
     - Verify that all necessary account permissions and settings are properly configured


If the issue persists, we should look at implementation details:

     - Review any custom code in your theme that handles login redirects
     - Check the customer login templates (customers/login.liquid)
     - Verify there are no JavaScript errors interfering with the login flow

 

Let me know if you can share any of these specific details:
- Are you using any custom apps that might affect the login process?
- Can you check the browser console for any specific error messages when the login occurs?

 

This kind of issue often indicates a timing problem where the session is established but the redirect happens before the session is fully processed. Sometimes adding a small delay to the redirect can help, but we should first verify the core configuration before making any code changes.

 

Would you be able to test in an incognito window and share what you observe? This would help us narrow down whether it's a browser-state issue or something deeper in the implementation.

Thanks,
Shubham | Untechnickle

Helping for free: hello@untechnickle.com


Don't forget to say thanks, it'll make my day - just send me an email! 


Get Revize for Free | Let your shoppers edit orders post-purchase | Get Zero Support Tickets | #1 Order Editing + Upsell App

CandiLynn
Visitor
3 0 0
Hello, Thank you for your reply. We've been going through your list and we believe the error is happening because of the redirect address. Right now, our domain (www.kerenhart.com https://www.kerenhart.com) redirects to the default shopify store address. We are keeping the domain with our previous company for now. Would changing the redirect web address to kerenhart.shopify.com possibly fix this? Unfortunately, we are new with Shopify and aren't super knowledgable with it just yet. Thanks again for your help.
TheUntechnickle
Shopify Partner
382 37 99

Hey @CandiLynn,

This helps clarify the issue! Yes, having a redirect between your custom domain and the Shopify domain could definitely cause this authentication hiccup. The login process might be getting confused between the two domains during the authentication flow.

 

Let's try this specific fix:

  1. Go to Online Store > Themes > Customize > Theme Settings > Customer Accounts
  2. Change the redirect URL to your Shopify-provided domain (kerenhart.shopify.com) instead of your custom domain

This should help because:

  • It eliminates any potential domain-switching issues during the authentication process
  • The login cookies and session data will be properly set on the domain where the store actually lives
  • It avoids any redirect chains that might be interrupting the login flow

 

Hope this helps. Please feel free to email us or DM us anytime if you've any questions relating to Shopify or ecommerce in general. We'd love to help without any fee. I promise 🙂

Have a great day,
Shubham | hello@untechnickle.com

Helping for free: hello@untechnickle.com


Don't forget to say thanks, it'll make my day - just send me an email! 


Get Revize for Free | Let your shoppers edit orders post-purchase | Get Zero Support Tickets | #1 Order Editing + Upsell App