Okay
  Public Ticket #2718656
"Show X entries" Broken
Closed

Comments

  • Frank started the conversation

    It appears everything (that i can find) is working on the admin side or the front side, but the "Show X entries" dropdown is not, dropping down.

    Did I somehow disable it somewhere?

    The cursor indicates that it is an action item, but nothing can be clicked.

    9Tvq8l1.png

    The site is internal to our network, so I cannot share a link.

  • [deleted] replied

    Hi Frank

    Thank you for reaching out to us.

    If you are having issues with dropdown menus on front or back-end it is usually an issue with bootstrap. 

    In the main wpDataTables settings you can find the options to include full bootstrap front and back-end which are automatically turned on. Try turning off the option Include full bootstrap front-end and let me know if the issue is resolved.

  • Frank replied

    I checked and it was on, so I disabled it as indicated, and no fix. I rechecked the pages (now that it was disabled) and still everything works (sort, search, pagination) but this.

    The back-end was already disabled.

    uL7nYGv.png

    Seeing this reminded me to also test the drop-down on the admin side (back-end) and that one works.

    BMgenP1.png


  • Frank replied

    Further investigation has reveled that switching to the default theme while all plugins remain active, removes the problem.  Therefore, I must assume it's the theme...

    It has worked before however, so I'm still digging.

  • [deleted] replied

    Hi Frank

    I'm glad to hear you found a temporary solution.

    Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.

  •   Frank replied privately
  • [deleted] replied

    Hi Frank

    Since this is a possible theme conflict our developers will need access to your FTP as well so they can perform a debugging and try to resolve the issue that way.

  •   Frank replied privately
  • [deleted] replied

    Hi Frank

    Firstly please update to the plugin's newest version.

    Since we don't have the access this might take a while so please bare with me.

    Look at line 1510 in ../wp-content/plugins/wpdatatables/source/class.wdttools.php

    if (!is_admin() && 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 if (is_admin() && get_option('wdtIncludeBootstrapBackEnd') == 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);
            }

    There are a lot of combinations you can try, so bear with me. First, enable both Bootstrap sliders in wpDataTables settings; deactivate the plugin; and modify the code above, so it looks like this:

    if (!is_admin() && 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 if (is_admin() && get_option('wdtIncludeBootstrapBackEnd') == 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);
            }

    Delete cache and test. If that doesn't work, disable the front-end slider, delete cache and test again.

    Then, if this doesn't work, enable both sliders again; deactivate the plugin, and go back to the file. Change it to this:

    if (!is_admin() && 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 if (is_admin() && get_option('wdtIncludeBootstrapBackEnd') == 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', WDT_JS_PATH . 'bootstrap/bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);
            }

    Delete cache and test. If that doesn't work, disable the front-end slider, delete cache and test again.

    Then, if this doesn't work, enable both sliders again; deactivate the plugin, and go back to the file. Change it to this:

    if (!is_admin() && 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 if (is_admin() && get_option('wdtIncludeBootstrapBackEnd') == 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);
            }

    Delete cache and test. If that doesn't work, disable the front-end slider, delete cache and test again.

    Then, if this doesn't work, enable both sliders again; deactivate the plugin, and go back to the file. Change it to this:

    if (!is_admin() && 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 if (is_admin() && get_option('wdtIncludeBootstrapBackEnd') == 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);
            }

    Delete cache and test. If that doesn't work, disable the front-end slider, delete cache and test again.

    Please let me know if this helped.



  • Frank replied

    Blaženka,

    So, maybe luck, but the very first "test" worked. 

    I enabled both boostrap includes, disabled the plugin, changed the code, and started the plugin.  I cleared cache tested the page and the dropdown was still broken.

    1149611728.png

    I then disabled the "front-end" boostrap include, refreshed the page and voila.

    6602051493.png

    To be safe, I then checked 2 more tables and all work. I also confirmed the inside (admin) area still works.

    So what seems to be the issue, and what's the next step?

  • [deleted] replied

    Awesome! The next step is to save my response for the future, when the plugin updates, because you will need to do it again when it updates. This is a conflict, and there's no permanent fix that will work for everyone, unfortunately.

    Do let us know if there is anything else we can assist you with.