• Resolved 435hiter

    (@435hiter)


    Hello,
    There is error showing in console on my checkout page. It appears only when plugin is activated:
    *********
    Uncaught TypeError: jQuery.curCSS is not a function
    at Object.set (jquery.color.js:575)
    at Function.style (jquery.js:3)
    at jquery.js:4
    at Y (jquery.js:3)
    at Y (jquery.js:3)
    at a.fn.init.css (jquery.js:4)
    at buildHintFromInput (typeahead.bundle.js:2397)
    at HTMLInputElement.attach (typeahead.bundle.js:2248)
    at Function.each (jquery.js:2)
    at a.fn.init.each (jquery.js:2)
    **********
    I’m using WordPress 4.7.5( same error for 4.7.4), Woocommerce 3.0.5.
    How I can fix it?
    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @435hiter, thanks for raising this. Can you try the following code change.

    1. Open /includes/pickets/jcrop/js/jquery.color.js
    2. Scroll down to line #575
    3. Replace the following line:

    backgroundColor = jQuery.curCSS( curElem, “backgroundColor” );

    with…

    backgroundColor = curCSS( curElem, “backgroundColor” );

    4. Save changes and upload this file back to your hosting server
    5. Do a full refresh on any WordPress page where that script is loading

    Does it persist?

    Thread Starter 435hiter

    (@435hiter)

    Hi, Michael
    Thanks for your response.
    Unfortunately, proposed code change does not work.
    Here is screenshot of my console:
    https://ibb.co/c39XOF

    Hi 435hiter, damn, I hoped that would fix it. I’ll get today’s update out and we can look at this further. I could not reproduce your issue so suspect it is a jQuery library or other Javascript resource conflict. Can you try de-activating other Plugins including your Theme and see if that error goes away so I can try to limit what is causing this?

    Hi @435hiter, here’s another one to try. Can you open woocommerce-checkout-manager.php and swap the following lines (~#241).

    wp_enqueue_script( ‘jcrop-color’, plugins_url( ‘includes/pickers/jcrop/js/jquery.color.js’, WOOCCM_RELPATH ) );
    wp_enqueue_script( ‘jcrop’, plugins_url( ‘includes/pickers/jcrop/js/jquery.Jcrop.js’, WOOCCM_RELPATH ) );

    to…

    wp_enqueue_script( ‘jcrop’, plugins_url( ‘includes/pickers/jcrop/js/jquery.Jcrop.js’, WOOCCM_RELPATH ) );
    wp_enqueue_script( ‘jcrop-color’, plugins_url( ‘includes/pickers/jcrop/js/jquery.color.js’, WOOCCM_RELPATH ) );

    Thread Starter 435hiter

    (@435hiter)

    Hi, Michael
    When I’m using Twenty Fifteen theme instead of my premium theme, error not showing in console, so I’m gonna contact theme author to solve this problem.
    Thanks for your help and good luck.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Jquery error in console’ is closed to new replies.