The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] XML Error with WP-Ecommerce 3.8 (5 posts)

  1. Sebastien Tremblay
    Posted 5 years ago #


    since i've updated to wp-ecommerce 3.8. on friday, i have this bug :

    Warning: html_entity_decode() expects parameter 1 to be string, object given in /wp-content/plugins/wordpress-seo/sitemaps/xml-sitemap-class.php on line 295

    everytime i update an article or a page, i got this error.

    what can i do ?


  2. Jenny Ragan
    Posted 5 years ago #

    I was having this trouble also on 3.8. It looks like there is wp e-commerce specific code for the sitemap to get the categories and products from the old db tables. I updated wordpress-seo/sitemaps/xml-sitemap-class.php at line 280 to

    if ( defined('WPSC_VERSION') && WPSC_VERSION < 3.8 ) {

    and it seems to fix the error for me. It is just makes it skip that section of code which I think is not relevant now that products are custom post types.

  3. Sebastien Tremblay
    Posted 5 years ago #


    This works perfectly!

  4. katstool
    Posted 5 years ago #

    Awesome! I was getting annoyed with that error! Worked great! Thanks!

  5. Joost de Valk
    Plugin Author

    Posted 5 years ago #

    Should be fixed now right? Also, since 3.8 switched to using custom post types, I think it no longer needs the custom code anymore either.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic