• Resolved Maxime Jobin

    (@maximejobin)


    Hello,

    We have a JS issue with the wdt-custom-elementor-js.js file. It calls “elementor” object but the loading sequence is not right so we get a JS error “elementor not defined”.

    After checking the code, I think you forgot to add a dependency to elementor in the following code:

       public static function enqueueCustomElementorJs()
    {
    wp_enqueue_script('wdt-custom-elementor-js', plugin_dir_url(__FILE__) . 'js/wdt-custom-elementor-js.js', array('jquery'), WDT_CURRENT_VERSION, true);

    wp_localize_script('wdt-custom-elementor-js', 'wdt_ajax_object', array(
    'ajaxurl' => admin_url('admin-ajax.php')
    ));
    }

    Only the dependency to “jquery” is specified explicitely when you call wp_enqueue_script. Can you fix this?

    We do have a pro licence but you ask for so many details when we try to get support! I just want to report that bug.

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hello,
    We are aware of this bug with the Elementor and our premium Plugin’s latest version.
    Our developers will include a final version of the fix in our upcoming update.
    Meanwhile, we are sending a temporary working version of the fix to all our premium users who opened a ticket to report it.

    If you can’t open a ticket for any reason, you can search on our public tickets with keywords like “wpdatatables elementor” and most probably the first public ticket that comes up will show the JS fix as an attachment there, along with instructions on how to apply it via FTP on your Hosting server.

    When it comes to the details needed to open a ticket on our premium Support platform, you only need to paste your licence code (which is found on your Store account with us) and write a brief description of the issue;


    So, since you’re using the Premium version of the plugin, please open a ticket on our main Support platform here, and one of our Agents will respond as quickly as possible.

    If you don’t have a licence (or if it expired), please open a pre-purchase ticket which doesn’t require a purchase code.

    Premium products are not supported in these forums, as per this comment by ww.wp.xz.cn moderators.

    Thank you for understanding. 

    Kind regards.

    • This reply was modified 1 year, 6 months ago by wpDataTables.
Viewing 1 replies (of 1 total)

The topic ‘Elementor dependency not met’ is closed to new replies.