I've set-up my datatable using a MySQL query. It displays all the records correctly on load but when I use the Advanced Filter or Search box then it can't find any records.
I have 'Enable server-side processing' set to enabled because I want to be able to edit the table, but that doesn't show any data either.
Is there something I need to run on my server to make the 'Enable server-side processing' work??
In that case, I believe the best way to go about this would be to create a VIEW.
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 (rarely happens, 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 wpDataTables 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 trigger the sorting on the front-end, and having it in initial statement may cause the table to crash.
I told you about asterisks ( * ), accent graves ( ` ) and semi-colon ( ; ). So, can you try the query like this:
SELECT
* FROM view1
and see if it works then?
If not, 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.
In that case, it has something to do with your site permissions. Do you have mod_security enabled, or some security plugin that can block the call being made if you are not logged in?
Unfortunately, Skype, Team Viewer, Zoom and similar means of support are not available.
I've set-up my datatable using a MySQL query. It displays all the records correctly on load but when I use the Advanced Filter or Search box then it can't find any records.
I have 'Enable server-side processing' set to enabled because I want to be able to edit the table, but that doesn't show any data either.
Is there something I need to run on my server to make the 'Enable server-side processing' work??
Hello Craig.
Thank you for your purchase.
There are actually a few things that could go wrong here.
Let's say you created a simple query:
So, your query should look like this:
If at all possible.
There are a few more things that would render the filters and search not to work, but I'd have to take a look at your query.
Can you share it with me? Also, if it contains any sensitive data, please make sure to enable the PRIVATE reply, so it is visible only to us.
Best regards.
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
Hi,
Here's my SQL query:
SELECT
PL.ID,
PL.firstname,
PL.surname,
PL.department,
PL.position,
PL.location,
PL.extension,
PL.mobile,
PL.ddi
FROM
ardouk.phone_list PL
Hi again Craig.
Try this:
Please let me know if it works.
Best regards.
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
Hi,
No joy, the same result.
Hi again Craig.
In that case, I believe the best way to go about this would be to create a VIEW.
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 (rarely happens, 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 wpDataTables based on a simple query like “SELECT * FROM view1″.
Please note some this when working with the server-side processing feature:
Best regards.
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
Hi,
I've created a view with my query. I've replaced the SQL query for the data table to use SELECT * FROM `view1`.
The filtering and searching is still not working.
Any more suggestions?
Thanks
Craig
Hi again Craig.
Well, I must turn back to my first reply again.
I told you about asterisks ( * ), accent graves ( ` ) and semi-colon ( ; ). So, can you try the query like this:
and see if it works then?
If not, 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.
Best regards.
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
Hi,
Yes, that worked :-)
Thanks for your help.
Craig
You're welcome Craig.
Glad I could help.
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Best regards.
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
Hi,
I spoke too soon.
When I view the data table in Chrome it works perfectly but when other people try to view it in Chrome they get the Ajax error, see the screenshot.
I get this error if I try to view it in IE.
If I disable the Enable server-side processing it works.
Any ideas?
Thanks
Craig
Hello again Craig.
The Ajax call errors are usually linked to security issues, since the call cannot be returned.
Can you share the page with me, so I can inspect it and see what it returns?
Best regards.
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
Hi,
It's an internal site on our company network.
I've just noticed that when I'm logged in to WP as admin it works but when I log out I also get the ajax error.
I can start a Team Viewer session if you still need to get on?
Hello Craig.
In that case, it has something to do with your site permissions. Do you have mod_security enabled, or some security plugin that can block the call being made if you are not logged in?
Unfortunately, Skype, Team Viewer, Zoom and similar means of support are not available.
Best regards.
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
I've turned off the Enable server-side processing and it works now although I can't edit this table now.
At least it's usable now.
Thanks
You're welcome Craig.
Anyway, I'd look into permissions on your website. There must be something blocking non-logged-in users from accessing the table.
Best regards.
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