Okay
  Public Ticket #2683085
latest wpdatatables release
Closed

Comments

  • hrvr started the conversation

    We just updated to version Version 3.4.1 and it has been a complete disaster.  Our site has been virtually down for 3 days and we will be down at least another day or two waiting on Bluehost to restore our website so we can get wpdatatables back to the prior version.  We have fatal errors on saving tables, we have tables if we chose a custom header color it will show in the css as backgroundcolor with important if we chose light as the theme color ... if we chose graphite as the theme color it does not add the background header css code and the headers come out graphite.  We are attempting to get back to the prior release.  I thought you should know this release is riddled with issues.  it also changed the order of columns in tables, it made some hidden columns viewable, sortable and filterable.  Just a disaster.  



  •  2,507
    Aleksandar replied

    Hello hrvresort

    Sorry to hear you're having issues with the plugin.

    This version has been live for a week, and we haven't had these complaints. There are some bugs which are easily resolved, but they are related to charts, not the tables:

    1. When you enable "Follow table filtering", charts don't appear on the page.

    Resolution:

    In file wp-content/plugins/wpdatatables/source/class.wpdatachart.php on line 2706 you will find this

     if ($this->getFollowFiltering()) {

    add this code on end of that if statment

     if (get_option('wdtIncludeBootstrap') == 1) {
                    wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
                } else {
                    wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/noconf.bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
                }
                wp_enqueue_script('wdt-bootstrap-select', WDT_JS_PATH . 'bootstrap/bootstrap-select/bootstrap-select.min.js', array(), WDT_CURRENT_VERSION, true);             wp_localize_script('wdt-wpdatatables', 'wpdatatables_settings', WDTTools::getDateTimeSettings());
                wp_localize_script('wdt-wpdatatables', 'wpdatatables_frontend_strings', WDTTools::getTranslationStrings());

    So your code will look like this:

    if ($this->getFollowFiltering()) {
                wp_enqueue_script('wdt-common', WDT_ROOT_URL . 'assets/js/wpdatatables/admin/common.js', array('jquery'), WDT_CURRENT_VERSION, true);
                if ($minified_js) {
                    wp_enqueue_script('wdt-wpdatatables', WDT_JS_PATH . 'wpdatatables/wdt.frontend.min.js', array('wdt-common'), WDT_CURRENT_VERSION, true);
                    wp_localize_script('wdt-wpdatatables', 'wdt_ajax_object', array('ajaxurl' => admin_url('admin-ajax.php')));
                } else {
                    wp_enqueue_script('wdt-datatables', WDT_JS_PATH . 'jquery-datatables/jquery.dataTables.min.js', array(), WDT_CURRENT_VERSION, true);
                    wp_enqueue_script('wdt-funcs-js', WDT_JS_PATH . 'wpdatatables/wdt.funcs.js', array('jquery', 'wdt-datatables', 'wdt-common'), WDT_CURRENT_VERSION, true);
                    wp_enqueue_script('wdt-wpdatatables', WDT_JS_PATH . 'wpdatatables/wpdatatables.js', array('jquery', 'wdt-datatables'), WDT_CURRENT_VERSION, true);
                }
                if (get_option('wdtIncludeBootstrap') == 1) {
                    wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
                } else {
                    wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/noconf.bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
                }
                wp_enqueue_script('wdt-bootstrap-select', WDT_JS_PATH . 'bootstrap/bootstrap-select/bootstrap-select.min.js', array(), WDT_CURRENT_VERSION, true);             wp_localize_script('wdt-wpdatatables', 'wpdatatables_settings', WDTTools::getDateTimeSettings());
                wp_localize_script('wdt-wpdatatables', 'wpdatatables_frontend_strings', WDTTools::getTranslationStrings());
            }

    2. wpDataChart callbacks don't work.

    Resolution:

    Download the two files attached to my response, and replace them in these locations:

    wp-content/plugins/wpdatatables/assets/js/wpdatatables/wdt.chartsRender.js

    wp-content/plugins/wpdatatables/assets/js/wpdatatables/wdt.chartsRender.min.js

    Then delete all cache from your website, and that's it.

    There are no other issues with the tables in this version, and it has been tested with WordPress 5.6.1. Please try deleting cache on your website, and if that doesn't resolve the issue, can you clone your website?

    If yes - I'll ask you to install the Duplicator plugin. It will generate a couple of files which you can send me (along with the log-in credentials), and then I can create an exact copy of your website, see what the issue is and try to resolve it.

    Please note that the files will be too large to attach to the ticket, so you can upload them via wetransfer.com and just send me the link.

    Make sure to enable the private response, since this is a public ticket.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    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