Support » Plugin: Age Verification System for WooCommerce » aweos-image-picker.js

  • Resolved lennilg

    (@lennilg)


    After updating to WordPress 5.3, I cannot edit products on Woocommerce. I get the following jQuery errors from your plugin.

    aweos-image-picker.js:1 Uncaught TypeError: Cannot read property ‘fn’ of undefined
    at aweos-image-picker.js:1
    (anonymous) @ aweos-image-picker.js:1
    aweos-grouped-buttons.js:1 Uncaught TypeError: Cannot read property ‘fn’ of undefined
    at aweos-grouped-buttons.js:1
    (anonymous) @ aweos-grouped-buttons.js:1
    admin-menu.js:4 Uncaught TypeError: $(…).aweosImagePicker is not a function
    at HTMLDocument.<anonymous> (admin-menu.js:4)
    at i (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.3:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.3:2)
    at Function.ready (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.3:2)
    at HTMLDocument.J (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.3:2)

Viewing 2 replies - 1 through 2 (of 2 total)
  • I solved it by editing aweos-grouped-buttons.js and aweos-image-picker.js

    Wrapped both fuctions in..

    jQuery(document).ready(function($)
    {

    // Code

    )};

    I’m using Autooptimize, and this plugin cause jQuery to load a little later in the page footer, instead of header. Your plugin tries to initialize jQuery before it’s even loaded.

    • This reply was modified 3 months, 2 weeks ago by lennilg.

    Resolved, not really a plugin specific error and more in the area of a plugin conflict caused by aggregation of Javascripts.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.