Okay
  Public Ticket #1600808
No filter.
Closed

Comments

  • spounch started the conversation

    Hello.

    I have the latest version of Wordpress and PHP version 7. However for some tables the filter function does not work. The difference that I observe between the tables, for which the filter function is operational, and the ones for which the filter works, is in the number of columns which is higher (14) for the table for which the function of filter does not work even if only 9 are displayed. Thank you for your advice that will allow me to solve this problem.

    Best regards.


  •  1,688
    Miloš replied

    HI spounch,
    Thank you for your purchase.

    This is a small bug on our side which is fixed for the upcoming update of the plugin.

    Can you please go in file wpdatatables/controllers/wdt_ajax_actions.php and on the last line below 

    add_action('wp_ajax_wpdatatables_get_column_possible_values', 'wdtGetColumnPossibleValues');

    add this line of code

    add_action('wp_ajax_nopriv_wpdatatables_get_column_possible_values', 'wdtGetColumnPossibleValues');
    

    Also you can set the Number of possible values to load of the select box ( attachment) 

    If the cascade filtering is turned on then option All will be set as a default and it can not be changed.

    Let me know the result.

    Best regards.

    Kind Regards, 

    Miloš Jovanović
    [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

  • spounch replied

    Sorry, but I applied your advice and it did not solve the problem of filtering which is still not functional. Best regards.

  •  1,688
    Miloš replied

    HI spounch,
     

    Can you please tell me which version of our main plugin and version of Powerful filters Add-on do you use.

    The version of main plugin should be 2.2.2 and the version of Powerful filters should be 1.0.1


    Best regards.

    Kind Regards, 

    Miloš Jovanović
    [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

  •  1,688
    Miloš replied

    HI spounch,

    To download the 2.2.2 version you can follow this guide

    Please take a look at our documentation where you can see how you can successfully update the plugin.

    You can follow this guide :

    1.) Download zip from this link

    2.) Use FTP to open /yourwordpressfolder/wp-content/plugins

    3.) Delete existing wpdatatables folder.

    4.) Upload previously downloaded wpdatatables folder through FTP to plugins folder (unzip it)

    5.)  Go to WP-admin panel, open Plugins section.

    6.) Deactivate wpDataTables, and then activate it again.


    As for the Powerful filters the steps are the same except for the first step.

    You will need to login to your Envato account and there you will have the link for downloading the latest Powerful filter Add-on file.


    Best regards.

    Kind Regards, 

    Miloš Jovanović
    [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

  • spounch replied

    Hi, I followed your recommendations to solve my table filtering problem. The latest versions of WpDatatable (2.2.2) are installed. Likewise Powerfull-Filters is installed at version (1.0.1). And I disabled and reactivated these two extensions. However, the filtering problem is still persistent. Thank you for giving me the solution so that I can benefit from the filter function. Best regards.

  •  471
    Isidora replied

    HI spounch,

    Bogdan is on vacation so I will help you.

    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.

    Also point me on table id where you have this issue so can take a look


    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

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

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •   spounch replied privately
  • spounch replied

    Hello, do not look, because I ended up finding why I could not filter some columns. I think that would interest you to know. First, I discovered that in Phpmyadmin there was a repair function in the "operation" tab. After using it, I did a test and I realized that it solved my problem. Then I compared the 2 files and I realized that I had written the name of the file with a middle dash (-). The repair of Phpmyadmin was to replace the dash with the underscore (_). Best regards.

  •  471
    Isidora replied

    HI spounch,

    Sorry for late response. 

    We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.

    I am glad that you found what cause the issue. Thank you for sharing you experience.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

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

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • spounch replied

    Hello, I come back to you for the same problem that I mentioned in my previous messages. Because on the set of tables I discovered another table for which I can not sort from WpDataTable. I have this table and send you as an attachment so that you have the usefulness to study and solve this sorting problem. This table tricks well from PhpMyAdmin, but not from your application. Bes Regards.

  • spounch replied

    Hello ! Still on the problem of columns, I made observations that allow me to better understand the origin of the dysfunction.

    Indeed, it is necessary to know, that I actually have 2 databases; we will call them DB1 and DB2.

    The table that is causing a problem and I do not respond correctly to the sort function when I'm copied to DB1, but it is not possible to judge if the same table is on DB2. But on DB1, it is not possible to sort the table when I name the query to the database. For example ; "SELECT * FROM DB1.tablename". While, as I said before, still in this same DB1 the following query allows me to sort the table: "SELECT * FROM tablename".

    As you can see, the way we write the query to an influence on the function of sorting to be able to operate or not. The name of the database must not be specified. And this only for a specific database on both of which one is not that one by default.

    Comment do you think that this problem has been solved?

  •  471
    Isidora replied

    Hi spounch,

    Yes the problem is when you use database name as prefix in query. All server side features like search, sort or filtering will not work properly if you use queries like this.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

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

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • spounch replied

    Hello, finally forget the suggestions that I made you previously because the real problem of sorting comes from the function "Enable sever-side processing" in the tab "DATA SOURCE" which prevents the function of sorting when it is activated. After having disabled it, it is important to remember to save the page in which the table is contained to update it on the site.

  •  1,688
    Miloš replied

    Hi spounch,

    If your MySQL-query based wpDataTable doesn’t work correctly with server-side processing, probably this is happening because wpDataTables server has problems with parsing of the query and building new queries dynamically (happens rarely, but does sometimes). To avoid this please prepare a MySQL view (a stored query), which will return the data that you need, call it e.g. “view1” and then build a wpDataTabled based on a simple query like “SELECT * FROM view1″.

    Please note some this when working with the server-side processing feature:

    • Please do not use “LIMIT” in the SELECT statement. wpDataTables adds it automatically and it will be overridden.
    • Please do not use “ORDER BY” in the SELECT statement. wpDataTables has its own sorting engine so it makes no sense to use MySQL’s sorting, since it will be overridden. Also server-side processing feature adds this part of statement automatically when users triggers the sorting on the front-end, and having it in initial statement may cause the table to crash.


    Best regards.

    Kind Regards, 

    Miloš Jovanović
    [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