AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Ericles on July 08, 2014, 11:02:38 PM

Title: AJAX Error - Unknown AJAX Error - A work-around
Post by: Ericles on July 08, 2014, 11:02:38 PM
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 (http://forum.abantecart.com/index.php/topic,1863.0.html) 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
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: abantecart on July 11, 2014, 01:03:25 PM
Thank you for details. We actually aware of the problem.  We will update with the fix soon. 
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: Ericles on July 11, 2014, 04:14:22 PM
Excellent! Keep up the good work.  :)
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: pawanesh on July 22, 2014, 06:57:12 AM
Getting same "Unknown Ajax Error" while adding item to cart from home page only.
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: abolabo on July 23, 2014, 08:42:46 AM
errors in log?
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: abolabo on July 23, 2014, 09:32:33 AM
to solve it replace file public_html/storefront/view/default_html5/javascript/common.js by attached
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: pawanesh on July 25, 2014, 08:52:23 AM
Still getting same error  :( :(
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: abolabo on July 25, 2014, 09:27:30 AM
Still getting same error  :( :(

errors in log?
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: pawanesh on July 28, 2014, 08:23:25 AM
Thanks, Abolado.

Problem Solved.
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: 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

Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: abolabo on August 05, 2014, 11:33:25 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?
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: 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.
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: flyn on August 07, 2014, 01:40:42 PM
Actually I have the setting turned on for Ajax and it still does not work
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: abolabo on August 18, 2014, 02:15:08 AM
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 (http://www.abantecart.com/shopping-cart-demo)?
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: flyn on August 18, 2014, 09:27:31 AM
Default HTML5 but modified it to my needs. I just tried the demo and no Ajax happened either
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: abolabo on August 18, 2014, 03:48:45 PM
Default HTML5 but modified it to my needs. I just tried the demo and no Ajax happened either

give me url
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: abolabo on August 18, 2014, 04:08:24 PM
as for me all works correct.

You have products with options. To buy it customer must choose one of them. That's why ajax adding does not work.

For ex. you can check product Wipe Aide Toilet Paper Moistener: Safe For Plumbing - Helps Toilet Paper Dissolve Easily in the LATEST block on home page. It's product without options. adding works fine.
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: flyn on August 18, 2014, 04:16:12 PM
Weird. I still dont see it work.

I just tried on IE11. Since I dont use IE much I cleared all the cache and history and went to the site fresh and it still did not work
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: abd on October 02, 2014, 10:40:53 PM
what about New version? how to resolve it?
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: Miey on December 27, 2014, 07:03:31 AM
I getting 'UNKNOWN AJAX ERROR"

how to fix this problem?
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: rajparu2011 on January 13, 2015, 02:14:51 AM
Hello, I'm getting the "Unknown Ajax Error" when I click the button in the Main Banner.

But as soon I click the button, the page opens in a new window!! But on the homepage "Unknown Ajax Error" is being displayed!

Funny part is, there is no entry of it in the error log!

Please help me out with this!

The website is due to launch and I must clear these glitches!  :'(
Title: Re: AJAX Error - Unknown AJAX Error - A work-around
Post by: Basara on January 13, 2015, 03:25:48 AM
Hello, I'm getting the "Unknown Ajax Error" when I click the button in the Main Banner.

But as soon I click the button, the page opens in a new window!! But on the homepage "Unknown Ajax Error" is being displayed!

Check your store url settings in admin
see post  (http://forum.abantecart.com/index.php/topic,2707.msg11571.html#msg11571)