WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Yoast and WPML Error loading stylesheet (805303f4) (1 post)

  1. coati
    Member
    Posted 2 years ago #

    When running Yoast SEO 1.1.5 and WPML with a separate domain for each language, the sitemap_index.xml on the not-primary domains generate an error concerning the XSL sheet.

    When accessing http://www.secondary.tld/sitemap_index.xml

    Error loading stylesheet: An unknown error has occurred (805303f4)
    http://www.secondary.tld/wp-content/plugins/wordpress-seo/css/xml-sitemap.xsl

    There's a quickhack solution for this in the wp-seo.php file.

    If you strip out the domain name, the stylesheet error disappears.

    $pluginurl = preg_replace('!'.get_home_url('/').'!i', '', $pluginurl);
    define( 'WPSEO_FRONT_URL', $pluginurl );

    Now http://www.secondary.tld/sitemap_index.xml is available without errors.

    Regards,
    -coati

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic