• Resolved jufryananta

    (@jufryananta)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @jufryananta

    We’re sorry that you’re encountering this issue. Could you check if you have the latest version of WordPress 5.8.2, Yoast SEO 17.8, and the latest version of your other plugins and themes?

    Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict, is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty.

    Please test this on your development or staging site, if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    Could you check if you still encounter this issue in accessing the SEO > Workouts section even with a default WP theme and only the Yoast SEO plugin enabled?

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    This thread has been marked as resolved due to lack of activity by original poster.

    If you are not the original poster but have a similar issue, please open a new request.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cant get token Error 500’ is closed to new replies.