Author Topic: AJAX Error - Unknown AJAX Error - A work-around  (Read 22197 times)

Offline Ericles

  • Newbie
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
AJAX Error - Unknown AJAX Error - A work-around
« 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 newbielink:http://forum.abantecart.com/index.php/topic,1863.0.html [nonactive] 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
« Last Edit: July 08, 2014, 11:05:27 PM by Ericles »

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #1 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. 
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

Offline Ericles

  • Newbie
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #2 on: July 11, 2014, 04:14:22 PM »
Excellent! Keep up the good work.  :)

Offline pawanesh

  • Newbie
  • *
  • Posts: 34
  • Karma: +10/-0
    • View Profile
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #3 on: July 22, 2014, 06:57:12 AM »
Getting same "Unknown Ajax Error" while adding item to cart from home page only.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #4 on: July 23, 2014, 08:42:46 AM »
errors in log?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #5 on: July 23, 2014, 09:32:33 AM »
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

Offline pawanesh

  • Newbie
  • *
  • Posts: 34
  • Karma: +10/-0
    • View Profile
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #6 on: July 25, 2014, 08:52:23 AM »
Still getting same error  :( :(

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #7 on: July 25, 2014, 09:27:30 AM »
Still getting same error  :( :(

errors in log?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline pawanesh

  • Newbie
  • *
  • Posts: 34
  • Karma: +10/-0
    • View Profile
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #8 on: July 28, 2014, 08:23:25 AM »
Thanks, Abolado.

Problem Solved.

Offline activeprotocol

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-1
    • View Profile
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #9 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


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #10 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?
« Last Edit: August 05, 2014, 12:03:33 PM by abantecart »
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline flyn

  • Full Member
  • ***
  • Posts: 142
  • Karma: +8/-0
    • View Profile
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #11 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.

Offline flyn

  • Full Member
  • ***
  • Posts: 142
  • Karma: +8/-0
    • View Profile
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #12 on: August 07, 2014, 01:40:42 PM »
Actually I have the setting turned on for Ajax and it still does not work

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #13 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?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline flyn

  • Full Member
  • ***
  • Posts: 142
  • Karma: +8/-0
    • View Profile
Re: AJAX Error - Unknown AJAX Error - A work-around
« Reply #14 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

 

Powered by SMFPacks Social Login Mod