Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #2450852
Google Spreadsheets no data
Closed

Comments

  • Jawdat started the conversation

    Hi

    I purchased wpdatatables for the purpose of connecting Google spread sheets ONLY.. 

    after the purchase and configuration, I came to know the google published URL is not valid to use anymore. and you advised to use the URL on the browser. (despite the issue was there longtime ago, but you did not tell us.. your demos still directing clients to use the Published URL)

    I did use the public URL and all working fine.. few days later I came to know my speradsheet on the wpdatatables is EMPTY despite the google spreadsheet of Google docs is working fine.. tried to refresh the URL and apply I got error "Table in data source has no rows."  

    I tried to create fresh wpdatatables from google s.h. again but I got the same error.

    Now both URL linking methods DO NOT WORK.. so what is it and what should I do. 

    I am on yearly subscription and stuck at this.


  •  471
    Isidora replied

    Hi Jawdat,

    Thank you for reporting this.

    After investigation, we found out that your link in converted in this after 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

    • 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

    7921269120.png

    We need to test more but for now it is working in all test cases and it will be included in next update.

    Sorry for inconvenience,

    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