From time to time, when i update the sorting criteria of a wpdatatable build with a mysql query, the back-end freezes and the all columns formatting is destroyed. I have to build a new table from scratch to solve the problem.
Your query seems a bit long, so that could be causing the issue. I can't say for sure since I can't see it in its entirety, but it could very well be the cause of the issue.
Our logic is based on a PHP SQL parser which has full support for the SQL dialect for the following statement types
Filtering, sorting, and search may not work properly if you include:
Accent graves ( ` ) around the table name
JOIN functions
UNION functions
CONCAT functions
sub-queries
You can try preparing a MySQL view (which will return the data that you need, call it e.g. “view1” and then build a wpDataTables based on a simple query like "SELECT * FROM view1″.
Hello,
there is a very annoying issue.
From time to time, when i update the sorting criteria of a wpdatatable build with a mysql query, the back-end freezes and the all columns formatting is destroyed. I have to build a new table from scratch to solve the problem.
This is very annoying and a big waste of time.
Waiting for your answer
Best regards
Attached files: wpdatatable-bug.png
Hello Gloria.
Your query seems a bit long, so that could be causing the issue. I can't say for sure since I can't see it in its entirety, but it could very well be the cause of the issue.
Our logic is based on a PHP SQL parser which has full support for the SQL dialect for the following statement types
SELECT, INSERT, UPDATE, DELETE, REPLACE, RENAME, SHOW, SET, DROP, CREATE INDEX, CREATE TABLE, EXPLAIN and DESCRIBE.
Some of them are disabled for security reasons.
Filtering, sorting, and search may not work properly if you include:
You can try preparing a MySQL view (which will return the data that you need, call it e.g. “view1” and then build a wpDataTables based on a simple query like "SELECT * FROM view1″.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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