support

AJAX Error - Unknown AJAX Error - A work-around

Started by Ericles, July 08, 2014, 11:02:38 PM

Previous topic - Next topic

Ericles

All too many folks find their way to these forums because they have problems and the first thing anyone hears is complaints.
So I'll start with a Thank You!
I've been playing around with a half dozen different store-front/shopping cart options and I found each one to be either too cumbersome or lacking what I consider to be the basics. Until I tried Abantecart.  ;D

I've found the forums here to be a useful support tool but I couldn't find a solution to my current problem. I'm seeing the "Unknown AJAX Error" in a few places. Most notably when clicking a button in the "Main Page Banner Slider" and when adding an item to a cart when using a text entry option for that product. This was documented in a recent thread but I'm starting a new topic since we're at 1.1.9 now.

Checking FireBug I found two red warnings in the console when clicking the Add To Cart after entering something in a text input option:
  POST ... /index.php?rt=r/product/product/get_option_resources&attribute_value_id=8646
  POST ... index.php?rt=r/product/product/calculateTotal
Neither post seems to have a response.

There was no message in the Firebug Console when clicking a text button in the banner slider.

I couldn't figure out any cause for the error so rather than try to dissect the Java/AJAX I removed the display of the errors instead.

Edit:
  \storefront\view\default_html5\javascript\custom.js
Comment out line 71:
  // showMsg( 'AJAX Error', error_text, function () { } );

Whatever this error actually indicates, there does not seem to be any problems with the operation of the site. I'm willing to pretend the messages aren't there just because I can't see them.  ;)

Hopefully this helps someone either debug the error or work around it.

-Eric

abantecart

Thank you for details. We actually aware of the problem.  We will update with the fix soon. 
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Ericles


pawanesh

Getting same "Unknown Ajax Error" while adding item to cart from home page only.

abolabo

"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

abolabo

to solve it replace file public_html/storefront/view/default_html5/javascript/common.js by attached
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

pawanesh


abolabo

"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

pawanesh


activeprotocol

i m facing the same problem abolabo , when i add product and click on checkout , it gives me ajax error

looking ahead for ur support , how to sort it out


abolabo

#10
Quote from: activeprotocol on August 05, 2014, 07:56:49 AM
i m facing the same problem abolabo , when i add product and click on checkout , it gives me ajax error

looking ahead for ur support , how to sort it out

Do you any errors in error log?
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

flyn

Abolabo thank you. I backed up the original and placed your in there.

My problem is I get no ajax pop-up to show items added to the cart. I add an item and go takes me to the cart which I dont want.

flyn

Actually I have the setting turned on for Ajax and it still does not work

abolabo

Quote from: flyn on August 07, 2014, 01:32:36 PM
Abolabo thank you. I backed up the original and placed your in there.

My problem is I get no ajax pop-up to show items added to the cart. I add an item and go takes me to the cart which I dont want.

ajax popup works on template level. What template do you use? default or default_html5? or another?
Did you tried to replicate this issue on our demo?
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

flyn

Default HTML5 but modified it to my needs. I just tried the demo and no Ajax happened either

Forum Rules Code of conduct
AbanteCart.com 2010 -