WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Sebastien Tremblay
    Member
    Posted 3 years ago #

    Hello,

    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 ?

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Jenny Ragan
    Member
    Posted 3 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
    Member
    Posted 3 years ago #

    Thanks!

    This works perfectly!

  4. katstool
    Member
    Posted 3 years ago #

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

  5. Joost de Valk
    Member
    Plugin Author

    Posted 3 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

About this Topic