• Resolved simonlown

    (@simonlown)


    Hello,
    I was updating my website and doing some checks. I noticed that my sitemaps were not up to date.
    All I can see is 6 posts and 2 pages. I’ve added 30 posts over the last few months and there are over a dozen web pages.

    So I started looking around to see how I manually update and found the article that suggests: disable sitemaps – clear cache – re-enable.

    No change.

    I started looking deeper, added cache exclusions to all the sitemaps and tried again with no change.

    It was when I tried to run the Yoast optimisation again that I ran into a critical error. (I’ll post the critical email at the end)

    I tried disabling all other plugins except yoast, switching to the 2019 theme and running the optimisation again. It still generated a critical error.

    I tried deleting the wordpress-seo plugin folder, uninstalling the plugin and reinstalling.
    It’s picks up all the old settings from somewhere and still causes a critical error when trying to optimise.

    I found the Yoast Test Helper and clicked all the reset buttons and checked the disable XML cache. Still causes critical errors.

    Not sure where to go from here. All I wanted was my sitemap updated. ??

    Any suggestions would be much appreciated.

    Kind regards,
    Simon.

    Here is the detail from the WordPress Critical Email Notification:

    Hi,

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Yoast SEO.

    [SECTION WITH LINKS TO SITE ADMIN AND RECOVERY LOGIN REMOVED]

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.7.2
    Current theme: Beaver Builder Theme Child (version 1.7.6.1594646025)
    Current plugin: Yoast SEO (version 16.4)
    PHP version 7.4.13

    Error Details
    =============
    An error of type E_ERROR was caused in line 62 of the file /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wordpress-seo/src/values/semrush/semrush-token.php. Error message: Uncaught Yoast\WP\SEO\Exceptions\SEMrush\Tokens\Empty_Property_Exception: Token creation failed. Property access_token cannot be empty. in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wordpress-seo/src/values/semrush/semrush-token.php:62
    Stack trace:
    #0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wordpress-seo/src/config/semrush-client.php(187): Yoast\WP\SEO\Values\SEMrush\SEMrush_Token->__construct()
    #1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wordpress-seo/src/config/semrush-client.php(75): Yoast\WP\SEO\Config\SEMrush_Client->get_token_from_storage()
    #2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1647): Yoast\WP\SEO\Config\SEMrush_Client->__construct()
    #3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(844): Yoast\WP\SEO\Generated\Cached_Container->getSEMrushClientService()
    #4 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(3403`

    • This topic was modified 3 years, 6 months ago by simonlown.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Simon,

    We are sorry that in trying to figure out how to update your sitemaps, you ran into another critical error. Please try these steps:

    1. Navigate to WordPress > SEO > General > Integrations to turn OFF the Semrush integration
    2. Deactivate all plugins except Yoast SEO and switch to a default WordPress theme
    3. Reset Indexables tables & migrations using the Yoast Test Helper plugin
    4. Navigate to WordPress > SEO > Tools and re-run the Yoast SEO data optimization tool

    Please inform us of the results once done

    Thread Starter simonlown

    (@simonlown)

    Hi Maybellyne,
    Thank you for such a quick reply.

    Thanks for the tip.

    Yes, that worked.

    I also found that if I leave all the plugins enabled and my beaver theme active, just switching off the SEMRush integration stops it from going critical.

    When I post now, Yoast notifies me that the permalink structure has changed and I need to optimise. Is that correct?
    It does run the optimisation okay.

    Also, still no updates to my post & Page sitemap XMLs.
    https://www.2waydigital.com/post-sitemap.xml
    https://www.2waydigital.com/page-sitemap.xml

    Maybe I’m not understanding what should be in there.

    The posts that are listed are more recent posts. I am expecting to see all of the published posts on my blog.
    I would also expect to see all published pages.

    What should I be seeing?

    Many thanks.
    Simon.

    Plugin Support Suwash

    (@suascat_wp)

    @simonlown We understand published posts and pages are still not appearing on the post sitemap and page sitemap. We’re sorry for these continued difficulties.

    To narrow the cause, could you please show us some example post/page URLs that are missing from sitemaps so that we can take a look at them?

    We look forward to hearing from you.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Yoast – XML Update & Critical Error Issues’ is closed to new replies.