Okay
  Public Ticket #1820294
Dropdowns don't work in the backend
Closed

Comments

  • Nader Rad started the conversation

    Hi,

    I've just installed the plugin, but the dropdowns in the backend don't work; e.g. "Input data source type" and "Chart render engine".

    I can see in the source that they contain choices, but nothing happens when I click on them, and I can't choose any choices.

    What should I do?


    Regards,

    - Nader

  •  2,498
    Aleksandar replied

    Hello Nader.

    Thank You for Your purchase.

    Thank You for Your purchase.

    There is probably a conflict with the bootstrap.js files.

    Please go to wpDataTables main Settings on Your wp-admin page. You'll see Include full bootstrap front-end and Include full bootstrap back-end. Disable the second slider (Include full bootstrap back-end), hit Apply and refresh Your page.

    If that doesn't work, please try this:

    Go to Plugins page and disable wpDataTables.

    Then go to Plugins/Editor on Your wp-admin page.

    In the top right corner select wpDataTables and go to source/class.wdttools.php.

    In that file, around line 900, You'll find this code:

    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);
            }

    Go ahead and comment the last two wp_enqueue_script lines, so the code 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);
            }

    Hit Update File on the bottom of that page; activate wpDataTables from the main Plugins page again, and that should solve the issue.

    Please let me know if You managed to resolve the issue.

    Best regards.

    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

  • Nader Rad replied

    Thanks Aleksandar, changing the setting solved the problem. 

    Now I'm looking forward to start working with the plugin :)

  • Nader Rad replied

    By the way, that solved my problem in the backend, but it was still not working on the front end (the dropdown box above the tables). I've disabled the following line and it solved the problem:


    wp_enqueue_script('wdt-bootstrap', WDT_JS_PATH . 'bootstrap/bootstrap.min.js', array('jquery', 'wdt-bootstrap-select'), WDT_CURRENT_VERSION, true);


  •  2,498
    Aleksandar replied

    Hello again Nader.

    You are welcome.  Glad that we solved the issue.

    I think it would've worked if You also disabled the Include bootstrap on front-end slider, but commenting that line will do of course.

    If you have any more issues or questions feel free to open a new ticket, we will gladly help.

    We'd greatly appreciate it if you could take a minute and leave a Review on CodeCanyon on this link. Thanks! 

    Best regards.

    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