Okay
  Public Ticket #1151109
Using table created by wpDataTable Constructor
Closed

Comments

  • Martijn van der Kooij started the conversation

    Hi,


    When I want to change the options for a newly generated table I get this error in the chrome console:

    wpdatatables_edit_table.js?ver=4.7.4:486 Uncaught TypeError: Cannot read property 'error' of null
    at Object.success (wpdatatables_edit_table.js?ver=4.7.4:486)
    at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.7.4:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.7.4:2)
    at y (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.7.4:4)
    at XMLHttpRequest.c (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.7.4:4)

    The js code here is:


    $.ajax({
                        type: 'post',
                        url: ajaxurl,
                        data: data,
                        dataType: 'json',
                        success: function(response){
                            if(response.error) {

    Turns out the response here is NULL

    I did first try the free version of wpDataTables but wanted to use frontend editing. So I bought the plugin today.

    Now I can add a new table defined in the wpDataTable Constructor, but afterwards not change them because of this error.

    I've tried the following:

    - removed all defined tables (just test data, nothing lost here)

    - disabled all other plugins

    - disabled the plugin and removed the wpdatatabe tables in phpMyAdmin and reactivated. Again I can create new tables bu not update them afterwards


    This is on a local wamp installtion with the latest wordpress version


    Hope you can help


  • Martijn van der Kooij replied

    Oh, some extra info. the wp-admin language is set to dutch

    And it also happens when both plugin as website language is set to english

    The error also happens when adding other types of datasources, the json table i created with the free version also fails in this registered one 



    I activated the error log, and got this error:


    [27-Apr-2017 18:32:58 UTC] PHP Notice:  Undefined index: wdtNonce in C:\wamp64\www\k3rk.nl\wp-content\plugins\wpdatatables\controllers\wdt_admin_ajax_actions.php on line 203

    [27-Apr-2017 18:32:58 UTC] PHP Stack trace:

    [27-Apr-2017 18:32:58 UTC] PHP   1. {main}() C:\wamp64\www\k3rk.nl\wp-admin\admin-ajax.php:0

    [27-Apr-2017 18:32:58 UTC] PHP   2. do_action() C:\wamp64\www\k3rk.nl\wp-admin\admin-ajax.php:91

    [27-Apr-2017 18:32:58 UTC] PHP   3. WP_Hook->do_action() C:\wamp64\www\k3rk.nl\wp-includes\plugin.php:453

    [27-Apr-2017 18:32:58 UTC] PHP   4. WP_Hook->apply_filters() C:\wamp64\www\k3rk.nl\wp-includes\class-wp-hook.php:323

    [27-Apr-2017 18:32:58 UTC] PHP   5. call_user_func_array:{C:\wamp64\www\k3rk.nl\wp-includes\class-wp-hook.php:298}() C:\wamp64\www\k3rk.nl\wp-includes\class-wp-hook.php:298

    [27-Apr-2017 18:32:58 UTC] PHP   6. wdt_save_table() C:\wamp64\www\k3rk.nl\wp-includes\class-wp-hook.php:298


  • Martijn van der Kooij replied

    Solved the problem by using CTRL+F5 to clear the javascript caching, it was using the free version of the js, causing all kinds of trouble...

  •  1,846
    Miloš replied

    Hi Martijn van der Kooij,
    Thank you for your purchase.

    Browser cache can be the issue and that is why we suggest to clear it.
    I am glad that you found the solution. good job.

    Best regards.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables