Okay
  Public Ticket #3700376
Filters not working
Closed

Comments

  • Justin started the conversation

    I'm having an issue with the select box filter not working in my wpdatatable, it works fine on the editor screen but when I visit my actual page the select box does not drop down or do anything. As a result I am using the checkbox filters for the time being as they work fine.

    I'm also having an issue with selecting a default option for my filters, for some it causes a weird bug where I have to toggle back and forth between filter options for it to engage at times. As a result I have disabled the default option, although I would like to have one selected.

    Thanks!

  •  2,572
    Aleksandar replied

    Hello Justin.

    Thank you for reaching out to us.

    I currently don't see any select boxes on your website, so I can't say for sure, but 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 one for the front-end, hit Apply and refresh Your page.

    8033468903.png

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

    Can you please record the video showing me the other issue, with default values? I can't quite understand that.

    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

  • Justin replied

    Hi Aleksandar, thanks for your reply!

    I tried disabled bootstrap on the front-end to no avail, the selectboxes still aren't working. I'll keep the filters set as selectboxes so you can revisit the page and see the issue for yourself.

    I'm not too worried about the default option functionality at this time, I'm hoping switching to selectboxes fixes both issues.

  •  2,572
    Aleksandar replied

    Hi again Justin.

    Let's try this. Please access ../wp-content/plugins/wpdatatables/source/class.wdttools.php and comment the line 2549:

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

    Please check and let me know if all's good.

    If not, please provide me with temporary wp-admin (Administrator) credentials, and I'll gladly take a look. Just 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

  • Justin replied

    Hi Aleksandar,

    I made the change but selectboxes still aren't working, I had to comment out the initial bracket as well or else it was breaking my site. Do I have to do anything to refresh the plugin?

    1760403112.png

    Thanks for your help!


  •   Justin replied privately
  •   Miloš replied privately
  • Justin replied

    Hi Milos,

    Thanks for your reply, looking forward to trying out the workaround that you suggested!

    In the meantime I am just concerned with getting our site back up, do you know what in particular we need to do to get things back to normal? Will disabling plugins get the admin options back do you think?

    I noticed the site was semi functional since you sent this email, but I went in and tried to change the theme back to VideoTube Child which seems to have returned the critical error.

    Thanks for your help!

    Buck

  •   Justin replied privately
  •  1,846
    Miloš replied

    Hi Buck,

    My sincere apology again for changing the Theme in that moment.

    There was no code change or anything like that whatsoever, I have just changed from your VideoTube current Theme to a default WordPress Theme to check if the bootstrap conflict on front-end for dropdowns changed;

    and we confirmed that the issue does not appear with a default Theme, since it uses an older Bootstrap;

    then I just tried to revert back to your previous Theme and the Site started crashing.


    So I am honestly not sure at all what could be causing this issue now, of not being able to go back to your original Theme, that is very strange.


    We can get help from our developers, but for this purpose, we also need the FTP credentials.

    If you can provide that and please also confirm the path to the WordPress folder on the FTP, so we know where to focus.


    Then I will see what we can do with our developers to set your original Theme.

    Just to double-check, was it the VideoTube or the Child VideoTube Theme?


    If you send us the FTP details, make sure to set a PRIVATE Reply, for security reasons.

    Thank you.

    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

  •   Justin replied privately
  •   Miloš replied privately
  •   Justin replied privately
  •   Justin replied privately
  • Justin replied

    Hi Milos,

    I was able to get the selectboxes working with the code you provided, thanks for your help!

    I noticed the selectboxes seem to load slowly, hopefully that is something that gets changed with future updates.

    Thanks again! I think at this time we can close this ticket.

  •   Miloš replied privately