Conversation
supportWorks for years but suddenly can not work, check the Google Console everything is good. Sample Error like this: SYSTEM ERROR: 400 : { “error”: “invalid_grant”, “error_description”: “Token has been expired or revoked.” } /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Http/REST.php(128) #0 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Http/REST.php(103): Google\Http\REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(GuzzleHttp\Psr7\Request), ‘Google_Service_…’) #1 [internal function]: Google\Http\REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), ‘Google_Service_…’) #2 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Task/Runner.php(181): call_user_func_array(Array, Array) #3 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Http/REST.php(66): Google\Task\Runner->run() #4 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Client.php(893): Google\Http\REST::execute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), ‘Google_Service_…’, Array, NULL) #5 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Service/Resource.php(238): Google\Client->execute(Object(GuzzleHttp\Psr7\Request), ‘Google_Service_…’) #6 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php(40): Google\Service\Resource->call(‘getProfile’, Array, ‘Google_Service_…’) #7 /var/www/html/wp-content/plugins/yaysmtp/includes/Controller/GmailController.php(36): Google_Service_Gmail_Resource_Users->getProfile(‘me’) #8 /var/www/html/wp-content/plugins/yaysmtp/includes/PhpMailerExtends.php(126): YaySMTP\Controller\GmailController->send() #9 /var/www/html/wp-includes/pluggable.php(547): YaySMTP\PhpMailerExtends->send() #10 /var/www/html/wp-content/plugins/yaysmtp/includes/Functions.php(250): wp_mail(Array, ‘\xE2\x9C\x85 Your test e…’, ‘\n \n How…’, Array) #11 /var/www/html/wp-includes/class-wp-hook.php(324): YaySMTP\Functions->sendTestMail(”) #12 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #13 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /var/www/html/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_yaysmtp…’) #15 {main}Send Email Oops! Your email can’t be sent. What happened? This error might be caused by: – Incorrect SMTP settings or Mailer configuration – Connection blocked by your web server – Connection rejected by your host (many shared hosts block certain ports) What to do next? – Double check all configuration and settings – Try another mailer – Ask your hosting provider to enable your external connections Can’t figure it out? Please contact us to ask for help. We’ll get back to you ASAP.Debug Versions: WordPress: 6.8.2 WordPress MS: No PHP: 8.2.27 YaySMTP: 2.6.9 Params: Mailer: gmail Debug: undefined This topic was modified 8 months, 3 weeks ago by Steven Stern (sterndata) . Reason: formatting The page I need help with: [ log in to see the link]
Hi @katherine1234 , I think for some reason, the token for the Google account you associated has expired. You need to reconnect it, and here is the guide on how to do that: https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-gmail Hope that suffices. Regards.
We have this communication in the chatbox on your website, and same problem occured. YSTEM ERROR: 400 : { "error": "invalid_grant", "error_description": "Token has been expired or revoked." } /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Http/REST.php(128) #0 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Http/REST.php(103): Google\Http\REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #1 [internal function]: Google\Http\REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #2 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Task/Runner.php(181): call_user_func_array(Array, Array) #3 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Http/REST.php(66): Google\Task\Runner->run() #4 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Client.php(893): Google\Http\REST::execute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...', Array, NULL) #5 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Service/Resource.php(238): Google\Client->execute(Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #6 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php(40): Google\Service\Resource->call('getProfile', Array, 'Google_Service_...') #7 /var/www/html/wp-content/plugins/yaysmtp/includes/Controller/GmailController.php(36): Google_Service_Gmail_Resource_Users->getProfile('me') #8 /var/www/html/wp-content/plugins/yaysmtp/includes/PhpMailerExtends.php(126): YaySMTP\Controller\GmailController->send() #9 /var/www/html/wp-includes/pluggable.php(547): YaySMTP\PhpMailerExtends->send() #10 /var/www/html/wp-content/plugins/yaysmtp/includes/Functions.php(250): wp_mail(Array, '\xE2\x9C\x85 Your test e...', '\n \n How...', Array) #11 /var/www/html/wp-includes/class-wp-hook.php(324): YaySMTP\Functions->sendTestMail('') #12 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #13 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /var/www/html/wp-admin/admin-ajax.php(192): do_action('wp_ajax_yaysmtp...') #15 {main}Send Email Oops! Your email can't be sent. What happened? This error might be caused by: - Incorrect SMTP settings or Mailer configuration - Connection blocked by your web server - Connection rejected by your host (many shared hosts block certain ports) What to do next? - Double check all configuration and settings - Try another mailer - Ask your hosting provider to enable your external connections Can't figure it out? Please contact us to ask for help. We'll get back to you ASAP.Debug Versions: WordPress: 6.8.2 WordPress MS: No PHP: 8.2.27 YaySMTP: 2.6.9 Params: Mailer: gmail Debug: undefined
Hi @katherine1234 , Ok, please let us focus on the chat for a better experience. Thank you.
Hi @katherine1234 , Good day! As provided error log, perhaps the token has been expired or revoked, please remove Authorization and connect it again. This will solve your issue. If you need any further help, please do not hesitate to contact us. Thank you! Mia
Hi @katherine1234 , I think for some reason, the token for the Google account you associated has expired. You need to reconnect it, and here is the guide on how to do that: https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-gmail Hope that suffices. Regards.
We have this communication in the chatbox on your website, and same problem occured. YSTEM ERROR: 400 : { "error": "invalid_grant", "error_description": "Token has been expired or revoked." } /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Http/REST.php(128) #0 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Http/REST.php(103): Google\Http\REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #1 [internal function]: Google\Http\REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #2 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Task/Runner.php(181): call_user_func_array(Array, Array) #3 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Http/REST.php(66): Google\Task\Runner->run() #4 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Client.php(893): Google\Http\REST::execute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...', Array, NULL) #5 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient/src/Service/Resource.php(238): Google\Client->execute(Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #6 /var/www/html/wp-content/plugins/yaysmtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php(40): Google\Service\Resource->call('getProfile', Array, 'Google_Service_...') #7 /var/www/html/wp-content/plugins/yaysmtp/includes/Controller/GmailController.php(36): Google_Service_Gmail_Resource_Users->getProfile('me') #8 /var/www/html/wp-content/plugins/yaysmtp/includes/PhpMailerExtends.php(126): YaySMTP\Controller\GmailController->send() #9 /var/www/html/wp-includes/pluggable.php(547): YaySMTP\PhpMailerExtends->send() #10 /var/www/html/wp-content/plugins/yaysmtp/includes/Functions.php(250): wp_mail(Array, '\xE2\x9C\x85 Your test e...', '\n \n How...', Array) #11 /var/www/html/wp-includes/class-wp-hook.php(324): YaySMTP\Functions->sendTestMail('') #12 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #13 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /var/www/html/wp-admin/admin-ajax.php(192): do_action('wp_ajax_yaysmtp...') #15 {main}Send Email Oops! Your email can't be sent. What happened? This error might be caused by: - Incorrect SMTP settings or Mailer configuration - Connection blocked by your web server - Connection rejected by your host (many shared hosts block certain ports) What to do next? - Double check all configuration and settings - Try another mailer - Ask your hosting provider to enable your external connections Can't figure it out? Please contact us to ask for help. We'll get back to you ASAP.Debug Versions: WordPress: 6.8.2 WordPress MS: No PHP: 8.2.27 YaySMTP: 2.6.9 Params: Mailer: gmail Debug: undefined
Hi @katherine1234 , Ok, please let us focus on the chat for a better experience. Thank you.
Hi @katherine1234 , Good day! As provided error log, perhaps the token has been expired or revoked, please remove Authorization and connect it again. This will solve your issue. If you need any further help, please do not hesitate to contact us. Thank you! Mia