Title: Blank Screen When Submitting Forms
Last modified: November 14, 2017

---

# Blank Screen When Submitting Forms

 *  Resolved [jdegbau](https://wordpress.org/support/users/jdegbau/)
 * (@jdegbau)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/blank-screen-when-submitting-forms/)
 * Having a strange issue lately with the Gmail SMTP plugin.
 * When submitting a Gravity Form-based form on our site, we’ve started getting 
   just a blank page instead of being redirected to our thank you page as normal.
   This has only started happening recently.
 * I believe the _blank_ part of that screen is caused by our theme, because when
   we use a default one we are shown an error. However, I believe that error is 
   tied to the Gmail SMTP plugin.
 * We get a warning about an illegal string offset ‘refresh_token’ on line 681 of
   the plugins main.php file.
 * Then, there’s a fatal error tied to an Uncaught InvalidArguementException: Invalid
   token format.
 * We initially fixed this issue by revoking access and then setting it back up 
   again. However, it appears to have broken again between yesterday and this morning.
   Except this time, we get similar issues when even trying to log in to the admin
   dashboard.
 * I referenced this help thread about an issue with UpDraft Plus: [https://wordpress.org/support/topic/service-stops-working/#post-9680322](https://wordpress.org/support/topic/service-stops-working/#post-9680322)
 * This would seem to fit our criteria (an automated UpDraft Plus backup was the
   only thing that happened between the last successful test form and the break).
   However, I re-authorized the plugin to get it working again, then ran an UpDraft
   plus backup. The form continued to work after that, so they don’t seem to be 
   related.
 * To be clear: The form _is currently working_, but it was working for about a 
   week and then broke again. We’re concerned that that will happen again.
 * Some other information that might be helpful:
    - The URL doesn’t change when the form submits. It just shows a blank page on
      whatever URL you happened to be on when you submitted the form.
    - Gravity Forms still records the form submissions in its log
    - Form submissions are still passed to our CRM via a Gravity Forms extension
    - When we were getting the blank page issue, it happened when submitting a form,
      logging in to the admin dashboard, and even changing a theme.
 *  -  This topic was modified 8 years, 6 months ago by [jdegbau](https://wordpress.org/support/users/jdegbau/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fblank-screen-when-submitting-forms%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [jdegbau](https://wordpress.org/support/users/jdegbau/)
 * (@jdegbau)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/blank-screen-when-submitting-forms/#post-9683197)
 * Also, here’s the error we get from our error log:
 * [14-Nov-2017 17:23:36 UTC] PHP Warning: Illegal string offset ‘refresh_token’
   in /home/rcadmin/public_html/wp-content/plugins/gmail-smtp/main.php on line 681
   [
   14-Nov-2017 17:23:36 UTC] PHP Fatal error: Uncaught InvalidArgumentException:
   Invalid token format in /home/rcadmin/public_html/wp-content/plugins/gmail-smtp/
   google-api-php-client/src/Google/Client.php:434 Stack trace: #0 /home/rcadmin/
   public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(138):
   Google_Client->setAccessToken(‘{“access_token”…’) #1 /home/rcadmin/public_html/
   wp-content/plugins/gmail-smtp/PHPMailer/class.smtp.php(470): GmailXOAuth2->getOauth64()#
   2 /home/rcadmin/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauth.
   php(152): SMTP->authenticate(”, ”, ‘XOAUTH2’, ”, ”, Object(GmailXOAuth2)) #3 /
   home/rcadmin/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.
   php(1540): PHPMailerOAuth->smtpConnect(Array) #4 /home/rcadmin/public_html/wp-
   content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1335): PHPMailer->smtpSend(‘
   Date: Tue, 14 N…’, ‘\nEvent: Success…’) #5 /home/rcadmin/public_html/wp-content/
   plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1213): PHPMailer->postSend()#
   6 /home/rcadmi in /home/rcadmin/public_html/wp-content/plugins/gmail-smtp/google-
   api-php-client/src/Google/Client.php on line 434
 *  Plugin Author [Noor Alam](https://wordpress.org/support/users/naa986/)
 * (@naa986)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/blank-screen-when-submitting-forms/#post-9683907)
 * [@jdegbau](https://wordpress.org/support/users/jdegbau/), Gmail SMTP is using
   the Google API Client library. So it’s possible that it’s conflicting with the
   UpdraftPlus plugin.
 *  Thread Starter [jdegbau](https://wordpress.org/support/users/jdegbau/)
 * (@jdegbau)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/blank-screen-when-submitting-forms/#post-9685668)
 * Any idea why it would be impacting our ability to actually log in to the WordPress
   admin dashboard?
 * When we do that, we get the same error log I posted in my second post.
 * Edit: Although once we get that error, we can still manually navigate to /wp-
   admin/ and use the dashboard as normal.
    -  This reply was modified 8 years, 6 months ago by [jdegbau](https://wordpress.org/support/users/jdegbau/).
      Reason: added clarification
 *  [alongjohn](https://wordpress.org/support/users/alongjohn/)
 * (@alongjohn)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/blank-screen-when-submitting-forms/#post-9685835)
 * I am having this exact problem with any form submissions that send emails as 
   of yesterday. Like you I’m experiencing this with internal form submission, like
   adding a user, or contact forms. Again, anything that emails. So users stared
   at a blank screen, and were getting a 504 error until we created a temporary 
   workaround by editing the htaccess file which lengthened the timeout period. 
   This isn’t a good long term solution obviously. I timed up to a minute wait for
   the submissions to go through, and of course users will probably not wait that
   long or believe that it didn’t work.
 * I think something happened yesterday that is causing this.. perhaps Gmail updated
   something that broke the plugin?
 *  [alongjohn](https://wordpress.org/support/users/alongjohn/)
 * (@alongjohn)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/blank-screen-when-submitting-forms/#post-9686236)
 * I solved this by changing the method of connection to the server from TLS to 
   SSL and the port to 465 instead of 587.
 *  Thread Starter [jdegbau](https://wordpress.org/support/users/jdegbau/)
 * (@jdegbau)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/blank-screen-when-submitting-forms/#post-9686330)
 * I tried the port thing to and didn’t have any success, unfortunately.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Blank Screen When Submitting Forms’ is closed to new replies.

 * ![](https://ps.w.org/gmail-smtp/assets/icon-128x128.png?rev=2432932)
 * [Gmail SMTP](https://wordpress.org/plugins/gmail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gmail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gmail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/gmail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gmail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gmail-smtp/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [jdegbau](https://wordpress.org/support/users/jdegbau/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/blank-screen-when-submitting-forms/#post-9686330)
 * Status: resolved