I have a whole group of WP Data tables that have been active on this site for several months and have worked fine the whole time. Suddenly I am getting the alert on all of them (front end) "No data available in table" and on the back end, "Table in data source has no rows."
I have updated the plugin, cleared the cache, built a new spreadsheet, published and republished to the web and who knows what else and am still getting the same results.
RedirectsFor security reasons, content returned by the Content service isn't served from script.google.com, but instead redirected to a one-time URL at script.googleusercontent.com. This means that if you use the Content service to return data to another application, you must ensure that the HTTP client is configured to follow redirects.
What you can try is to add this code in file wp-content/plugins/wpdatatables/source/class.wdttools.php around line 205 you will find this
curl_setopt($ch, CURLOPT_REFERER, site_url());
and below that add this code
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
so your code will look like this
We need to test more but for now it is working in all test cases and it will be included in next update.
Hi!
I have a whole group of WP Data tables that have been active on this site for several months and have worked fine the whole time. Suddenly I am getting the alert on all of them (front end) "No data available in table" and on the back end, "Table in data source has no rows."
I have updated the plugin, cleared the cache, built a new spreadsheet, published and republished to the web and who knows what else and am still getting the same results.
Any and all assistance is greatly appreciated.
Thanks!
Hello Mike
Sorry for the inconvenience. After some investigation, we found that links are converted to this after a CURL call:
Temporary RedirectTemporary Redirect The document has moved here https://doc-10-60-sheets.googleusercontent.com/pub/.....
The described behavior is a feature:
https://developers.google.com/apps-script/guides/content#redirects
What you can try is to add this code in file wp-content/plugins/wpdatatables/source/class.wdttools.php around line 205 you will find this
and below that add this code
so your code will look like this
We need to test more but for now it is working in all test cases and it will be included in next update.
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
Thanks for the intel and solution Aleksandar! It worked perfectly and your walk through was absolutely perfect.
I appreciate you tackling this so quickly.
Hello again Mike
You're welcome!
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
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