Rating: 5 stars
This is such a handy tool if you’re wanting to do complex calculations in google sheets and display single cell values on the frontend of your WordPress site.
Also I figured I’d post this here because I just was dealing with this issue for a couple of days and finally figured out how to fix it. If you are getting a critical error on your WP site (and the error log shows the message below), here is the solution:
ERROR: [21-Jan-2021 20:48:02 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/****/public_html/wp-content/plugins/dans-gsheets/dans-gsheets.php:156
OR “There has been a critical error on this website.”
The reason it’s probably happening is because your Gsheet takes time to load in data (or do calculations) and that loading time causes WordPress to timeout and throws an error.
One simple solution is to create a new google sheet file and use =IMPORTRANGE(“<sheet URL or key>”, “Sheet1!A1”) to get values from your larger sheet. Then you can use Dan’s tool to grab data from the new sheet because the new sheet is not constantly taking forever to load and it’ll stop throwing errors to WordPress.
Hopefully that helps someone because that took me forever to figure out!
]]>Rating: 5 stars
Sorry for the adolescent title! I am very impressed with how easy this has made giving my client the ability to update their restaurant menu!!! This is very cool!
]]>Rating: 5 stars
This is an awesome plugin! I have been trying all sorts of solutions to show ONE dynamic calculated cell from Google sheets on a clients website. I stumbled upon this plugin and it was so easy and quick to set up. THANK YOU! I have saved this as a favorite.
]]>Rating: 5 stars
This was exactly what I needed. After I fixed a dumb mistake on my part, this plug-in worked flawlessly.
]]>Rating: 5 stars
After spending days trying to figure out a solution to a client’s requested addition to his website, I found this program and it works flawlessly. I’ve setup another plugin to send contact form data to a Google Sheet, perform a calculation, and then this plugin sends the data back to the website for display. With a little CSS the data from the shortcode can quickly be displayed however desired. Like the author suggested, there are many uses. Love it. The only difficulty I had was in initial setup. To make this pull the data in from the Google sheet, I had to set the Sheet’s share setting so that anybody with the link can view. Also the API instructions are a bit dated, but simply select the Google Sheets API in the library and in credentials create the API. Thanks for this fantastic plugin.
]]>