Jump to content

URGENT! Cart Error only when logged in!


ableier

Recommended Posts

Hi all,

 

MAJOR ISSUE all of a sudden with a live site.  Only if logged in as a customer (which you have to be to order) items can not be added to a cart.  Error thrown:  

 

Prestashop 1.6.0

www.fmgweb.com/howardhanna

 

Impossible to add the product to the cart.

textStatus: 'error'
errorThrown: ''
responseText:

 

If not logged in everything works as expected.  Once logged in everything is fine until you access the actual product page.  On page load it automatically logs you out.  Then if you try to add the product the error is throw.  

 

Interestingly, if you add directly to cart from the product list page everything works fine.  It's only on the product page.

 

I've reset the cart module.

Did everything I could possibly think of with cache.

Forced recompiled files.

Updated all modules.

 

Everything was working fine yesterday, and all of a sudden I have this. 

 

Also, I enabled debug mode, but was only able to get it to show the error code once.  At that time there was a reference to the fedex module, which I don't use but was enabled.  I uninstalled the module with no results.  

 

ANY ideas/recommendations would be great.

 

Thank you

 

UPDATE - I have no idea why but I turned off friendly URL's and things seem to be working fine.  This is certainly not a fix but a workaround.  Any insights??

Edited by ableier (see edit history)
Link to comment
Share on other sites

hello

case needs inspection of website

its because whole problem is related to ajax call

and because of this - it is necessary to inspect website with developer console that is available in browser

Link to comment
Share on other sites

Please check if your _PS_MODE_DEV_ is set to true in file /config/defineds.inc.php, if it is true, please try to set back to false to see if it fix your issue.

 

When _PS_MODE_DEV_  is set to true, some minor error or function deprecated message appears on your page it may affect ajax call, because the message will break json converter.

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for the help.

 

Do either of you know where I can find a guide to update the site with a fresh install.  I am having more and more problems and I believe it is due to a failed update right before we launched the site 6 months or so ago.  At the time I frantically restored the site to the previous install, but things never seemed exactly right.  I seem to be having more and more strange issues pop up.  

 

I'd like to create a new site on my current hosting for aesthetic reasons and then just swap out the sites using the current database so I don't lose any information. Unfortunately, I have no idea how to do this or if it is even possible.  I've been researching online, but can't find a definitive answer.

 

Any help would be greatly appreciated.

Edited by ableier (see edit history)
Link to comment
Share on other sites

hello

case needs inspection of website

its because whole problem is related to ajax call

and because of this - it is necessary to inspect website with developer console that is available in browser

 

follow vekia's advice, provide URL to Front Office.  Do this before you try upgrade to fix.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...