We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
We're website developers and long-time users of wpDataTables, but this one has us stumped.
We're trying to create a table from WooCommerce Orders, Users and UsersMeta. We understand that for complex queries, it's best to create a view, so we did. It's called "Orders_View" and the "AS" clause is in the attached .sql file.
There are about 1200 rows in the view currently, but it seems we must have crossed the magic threshold in total size where wpDataTables turns on "Enable server-side processing". We can't seem to turn it off even though we're not at the 3000-4000 rows that your Server-side processing (Lazy Loading) in wpDataTables article mentions. So our first question is what is this limit really based on and is there a way we can increase it if we want to? We LOVE the way browser-based JavaScript data filtering work and would like to continue to use it if we can.
Secondly, we find that filtering with the "Server-side processing" enabled is not working. For example, "Jane" is clearly in the table, but when we search for her, we get 0 rows returned. Per your article, we have assured that our query has no "LIMIT" or "ORDER BY" clauses. So our second question is any idea what the server-side filtering problem is?
In the WordPress debug log, we see:
[18-Apr-2019 20:14:34 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Orders_View ``.`First Name` LIKE '%Jane%' ORDER BY `Order Change Date/Time` DESC' at line 1 for query SELECT SQL_CALC_FOUND_ROWS * FROM `Orders_View` WHERE `` Orders_View ``.`First Name` LIKE '%Jane%' ORDER BY `Order Change Date/Time` DESC LIMIT 50 made by do_action('wp_ajax_get_wdtable'), WP_Hook->do_action, WP_Hook->apply_filters, wdtGetAjaxData, WPDataTable->queryBasedConstruct
So I'm not sure if it's a performance problem, query complexity problem, syntax, problem or what. We'd just like this to work one way or another.
Thanks in advance for your help and advice. We would have to get you credentials if you actually want to access our page or table.
Hello LarryDaniele.
Thank you for being our long-term customer.
How many columns do you have in the table? There's no exact number, but server-side depends on rows * columns value. So, if you have a lot of columns and were do multiply that number with the number of rows, I believe it would explain why server-side is being automatically turned on. I'll check that with my developers, though.
Now, looking at the SQL file you sent, this is how the view is created, correct? I mean - the query within wpDataTables is something like this:
Correct?
It shouldn't give you the problem with the filter if that is true. If, however the query in our plugin looks like this:
Then, I believe the plugin is not able to successfully read the query. It probably has problems parsing the query.
Basically, if you were to create a view from the query above, and pull it in wpDataTables in a single line SELECT * FROM view - it should be working fine.
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 Aleksandar,
Thanks for your help with this.
Yes, "select * from Orders_View". Short and sweet. :-)
The view has 2390 rows and 25 columns. No cells are particularly big. Usual strings (Name, Address, City, etc.) and integers.
I would assume that the limit is not truly rows or columns but on the amount of data. It would be great to find out from the developer if this threshold can be tweaked (or "hacked") if we're willing to accept the consequences.
Beyond that, finding out why the server-based search doesn't work would be our second course of action.
Larry
Hey LarryDaniele.
The server-side is being turned on automatically after 2000 rows after all. So, with this in mind - there is a way to change this to 3000 or 4000, but it will cause the table to load slower.
If you'd still like this to be implemented, please let me know, and I'll try to make it work for you during the weekend. Also, it is worth mentioning that once the plugin updates the process will have to be repeated because an update will overwrite the workaround.
I'll wait for your reply.
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 Aleksandar,
Great. We understand the implications of changing a plugin file vs. new releases. If you could just tell us which file(s) and line numbers define the limit, we could probably take it from there.
Thanks,
Larry
And it would be helpful to upgrade your article from "3000-4000" to "2000" if that's the case. And perhaps document any work-around. Thanks!
Larry
Thanks Alexsandar. That was very helpful.
You are welcome LarryDaniele. Glad I could help.
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 | 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
Thank you very much Larry!
I will forward this to our development team immediately, so they can take it into consideration.
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 have this same exact problem, but i cannot sea what did you modify to solve it. Can you help me?
Hi Jorge.
Sure, that info doesn't contain any personal data, so I can share it with you again.
You would need to change the following files:
../wp-content/plugins/wpdatatables/wpdatatables.php - Add this line of code:
Then, in ../wp-content/plugins/wpdatatables/source/class.wpdatatable.php change line 2092 from:
to:
In ../wp-content/plugins/wpdatatables/source/class.wdtconfigcontroller.php change line 53 from:
to:
And in ../wp-content/plugins/wpdatatables/templates/admin/table-settings/table_settings_block.inc.php change line 167 from:
to:
So, then a user can add a block like this to wp-config.php to increase the limit (at their own risk):
LarryDaniele shared this with us, and made these exact changes and it is working well for them.
I hope this helps.
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