PHP Fatal Uncaught Error: Call to a member function getWorksheets()
-
Hello,
Thank you for the awesome plugin. We use the free version and have trouble making the third contact form work. The access token is the same and we have triple-checked the sheet name, columns names and the sheet name.
Upon sending, the circle keeps spinning and the browser shows a wp-json error, with the following error log in the apache log:
Uncaught Error: Call to a member function getWorksheets() on null in /var/sitename/wp-content/plugins/cf7-google-sheets-connector/lib/google-sheets.php:75\nStack trace:\n#0 /var/sitename/wp-content/plugins/cf7-google-sheets-connector/includes/class-gs-service.php(174): CF7GSC_googlesheet->add_row(Array)\n#1 /var/sitename/wp-includes/class-wp-hook.php(286): Gs_Connector_Service->cf7_save_to_google_sheets(Object(WPCF7_ContactForm))\n#2 /var/sitename/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)\n#3 /var/sitename/wp-includes/plugin.php(465): WP_Hook->do_action(Array)\n#4 /var/sitename/wp-content/plugins/contact-form-7/includes/submission.php(213): do_action('wpcf7_mail_sent', Object(WPCF7_ContactForm))\n#5 /var/sitename/wp-content/plugins/contact-form-7/includes/submission.php(33): WPCF7_Submission->submit()\n#6 /var/sitename/wp-content/plugins/contact-form-7/includes/contact-form.php(729): WPCF7_Submission::g in /var/sitename/wp-content/plugins/cf7-google-sheets-connector/lib/google-sheets.php on line 75, referer: https://sitename/subpage/
Any hint on where to go from here?
Thank you in advance!
Cheers,
Gabor
- The topic ‘PHP Fatal Uncaught Error: Call to a member function getWorksheets()’ is closed to new replies.