After installing Ajax cart I have been upable to update/remove images/links etc... in the node/%/edit. How do I resolve this. Once I uninstall this module everything returns to normal and works.

CommentFileSizeAuthor
2013-08-07_12-28-01.png47.68 KBtboornaz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cruze72’s picture

+1

stewart.adam’s picture

What browser are you using? Do you find any errors in the JavaScript console?

cruze72’s picture

I can confirm that this occurs in Firefox, Chrome and Safari. have not tested in IE.

I don't see any JS errors ....

cruze72’s picture

Further to the last comment, this problem basically affects anything user the ajax throbber but definitely includes:
- removal of content images (cannot be removed)
- adding content images (throbber 'hangs' but adds image)
- checkout changing country (hangs but changes country on page refresh)
These all work correctly when the ajax cart is disabled

Thanks

cruze72’s picture

Solved!

Disable the Jquery Update module. Something conflicts ... i don't know what but everything works fine with this module disabled.

maciequs’s picture

Not solved but workaround. I must use Jquery Update for some advanced functions and I can not simply disabled it.

Im using Jquery Update 1,7

need fix +1

fantom84’s picture

firebug show error in the misc/jquery.form.js
with TypeError: b.handleError is not a function
I found this file is using by ajax cart module on init: line -> drupal_add_js('misc/jquery.form.js')

solution for me (drupal 7.24, jQuery 1.5) is downgrade jquery.form.js to version 2.67 (this file is from jquery update 7.x-2.2) from 2.69 (this file is default in jquery update v 7.x-2.3)

so, for me bug was in module jquery update 7.x-2.3

hejeva’s picture

Seeing the same as in #7: TypeError: b.handleError is not a function whenever I try upload or remove an image in any content file field.

I didn't find going back jquery.form.js v 2.67 solved the issue.

  • Ajax cart: 7.x-2.x-dev
  • Jquery_update: 7.x-2.3 (set to run Jquery 1.5)
  • drupal 7.25

Temporary fix is to turn off and not use ajax driven cart. Client would like this feature though so would like to see this issue resolved.

fantom84’s picture

ok, i think i found the bug:
module uc_ajax_cart, file uc_ajax_cart.module:
in the function uc_ajax_cart_init() we need change the line drupal_add_js('misc/jquery.form.js')

 -- drupal_add_js('misc/jquery.form.js');
++ drupal_add_library('system', 'jquery.form');


Description: we must add core js with drupal_add_library not with drupal_add_js https://drupal.org/node/756722

hejeva’s picture

Issue summary: View changes

Thanks fantom84. Confirmed that it fixes the issue.

stewart.adam’s picture

Status: Active » Fixed

Committed, thanks fantom84.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.