Okay
  Public Ticket #2939376
wpDataTables no longer works after upgrade
Closed

Comments

  • U3A Port Phillip started the conversation

    We purchased wpDataTables through Envato Code Canyon, and get regular plugin updates from them. However we don't have a purchase code so I can't submit this ticket as an existing user of your product.

    We have a table which normally displays data from one tab of a Google sheet. It was working perfectly until I upgraded to the latest version of wpDataTables (3.7) yesterday. Nothing else has changed. I now get a message saying "No data available in table", when in fact it has about 100 rows.

    Here is the link for the Google sheet.

    https://docs.google.com/spreadsheets/d/1-Lerse_o7MKwhkwu8VUA_eB06wnoBFBv97IubpiolxU/edit#gid=297287137

    If you can't help I guess I'll just have to roll back to the previous version 3.6.

    Later....

    I rolled back and it's all working again. Don't you hate version updates that aren't properly tested?

  •  472
    Isidora replied

    Hi Phillip,

    Sorry for inconvenience,

    Yes we improved logic with old method for getting data from Google spreadsheets(no more caching issues- when you change data in Google sheet it will be reflected in wpDataTables after refresh or page load)

    This option requires to sheets be SHARED (in your sheet File -> Shared-> Shared with others or you need to click on the button Share from the top right corner of your sheet.) and then in Shared popup on Get link section to change status to Anyone with the link. 

    6018323849.png

    Google team change they sheets logic without shared information about that, like before 6 months they release update that requires to sheets need to be Published and Shared to be able to access it as you can check in our docs https://wpdatatables.com/documentation/creating-wpdatatables/creating-wpdatatables-from-google-spreadsheets/#create_the_table

    After that they revert those changes and you are able to access sheets only after publish that sheet.

    So you can go and Share that sheet like is explained or if you have a lot of sheets then you can change code in our plugin in file wp-content/plugins/wpdatatables/source/class.wdttools.php around line 402

    you will find this 

    $csv_url = "https://docs.google.com/spreadsheets/d/{$spreadsheet_key}/export?format=csv&id={$spreadsheet_key}";

    and you have to replace with this

    $csv_url = "https://docs.google.com/spreadsheets/d/{$spreadsheet_key}/pub?hl=en_US&hl=en_US&single=true&output=csv";

    We are working on solution for all cases to use old method and new one as well and we will try to be as soon as possible to release a new version with that.

    Thank you for understanding.

    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

  •  472
    Isidora replied

    Hi Phillip,

    It is released fix for this issue and will be available in version 3.7.1 when Envato approve update. 

    Sorry for inconvenience,

    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