• Resolved Alwin

    (@wp-opti)


    I recently updated this website from http to https and now I have this error in my sitemaps:

    https://www.einberg.nl/page-sitemap.xml
    Catchable fatal error: Object of class WP_Post could not be converted to string in /home/users/einbeftp/einberg.nl/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-image-parser.php on line 239

    Strange thing is that other sitemap parts are working okay, like this one:
    https://www.einberg.nl/attachment-sitemap.xml

    I have done everything to force the site over htpps the right way (has far as I know).

    I have looked at line 239 in class-sitemap-image-parser.php file and find this line:
    239 return array_unique( $attachments );

    What can be wrong here? thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Alwin

    (@wp-opti)

    I rolled back to version 6.0 and this solved the problem.

    MariusG

    (@marius_codeinwp)

    Thank you for bringing this issue to our attention. We apologize for the trouble you are experiencing with Yoast SEO 6.1. A bug report is currently open with our development team for this issue.

    If you have further information or would like to follow the progress of the report, you can do that here: https://github.com/Yoast/wordpress-seo/issues/8634

    In the meantime, a temporary workaround would be to edit the /wordpress-seo-premium/inc/sitemaps/class-sitemap-image-parser.php file and replace the 239 line to this return array_unique( $attachments, SORT_REGULAR );. However, we would recommend waiting for a plugin update to fix this issue. It is not recommended to modify the core plugin files, but this could be a temporary workaround.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Just to let you know that we have already released a fix in the Yoast SEO v6.1.1. Please, update the Yoast SEO plugin to the latest version and which should resolve this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Catchable fatal error Sitemap’ is closed to new replies.