Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 142888

500 Internal Server Error if sheet name is not set

$
0
0

Replies: 0

First of all, thanks for amazing plugin, saved my day.

But there is a bug currently that throws 500 internal server error on ajax request if the fields for spreadsheet are not populated for that form.

I do not want all my forms to save to Google Sheets, only certain once.

So I fixed it, but I’m afraid if I update the plugin it will override those changes. So I’m posting here so you (the dev) can update the plugin with those changes.

in file:

/cf7-google-sheets-connector/includes/class-gs-service.php on line 86

change this:

if ( $submission ) {

to this:

if ( $submission && isset($form_data[0]['sheet-name']) && $form_data[0]['sheet-tab-name']) {

This way if the sheet-name and sheet-tab-name is not set, the code will not try to send data to Google Sheet.

Thanks again.

  • This topic was modified 1 minute ago by  eboye.
  • This topic was modified 1 minute ago by  eboye.

Viewing all articles
Browse latest Browse all 142888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>