Replies: 1
When reinstall the Yoast SEO plugin, this error occurs:
[27-Dec-2021 07:14:29 UTC] PHP Warning: Undefined array key "access_token" in /home2/mancatat/public_html/wp-content/plugins/wordpress-seo/src/config/oauth-client.php on line 70
[27-Dec-2021 07:14:29 UTC] PHP Warning: Undefined array key "refresh_token" in /home2/mancatat/public_html/wp-content/plugins/wordpress-seo/src/config/oauth-client.php on line 71
[27-Dec-2021 07:14:29 UTC] PHP Warning: Undefined array key "expires" in /home2/mancatat/public_html/wp-content/plugins/wordpress-seo/src/config/oauth-client.php on line 72
[27-Dec-2021 07:14:29 UTC] PHP Warning: Undefined array key "has_expired" in /home2/mancatat/public_html/wp-content/plugins/wordpress-seo/src/config/oauth-client.php on line 73
[27-Dec-2021 07:14:29 UTC] PHP Warning: Undefined array key "created_at" in /home2/mancatat/public_html/wp-content/plugins/wordpress-seo/src/config/oauth-client.php on line 74
[27-Dec-2021 07:14:29 UTC] PHP Fatal error: Uncaught Yoast\WP\SEO\Exceptions\OAuth\Tokens\Empty_Property_Exception: Token creation failed. Property <code>access_token</code> cannot be empty. in /home2/mancatat/public_html/wp-content/plugins/wordpress-seo/src/values/oauth/oauth-token.php:62
Stack trace:
#0 /home2/mancatat/public_html/wp-content/plugins/wordpress-seo/src/config/oauth-client.php(74): Yoast\WP\SEO\Values\OAuth\OAuth_Token->__construct()
#1 /home2/mancatat/public_html/wp-content/plugins/wordpress-seo/src/config/semrush-client.php(48): Yoast\WP\SEO\Config\OAuth_Client->__construct()
#2 /home2/mancatat/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(1925): Yoast\WP\SEO\Config\SEMrush_Client->__construct()
Error in Browser Console like this (When try to click SEO>Workouts):
GET https://mancatat.com/wp-json/wp/v2/ 500
...
POST https://mancatat.com/wp-json/yoast/v1/workouts?_locale=user 500
I have contacted my host. He said everything is fine.
I have also tried some of the existing solutions. but, it didn’t work.
Thanks