• Resolved Pixelwunder

    (@pixelwunder)


    In the future I would like to use the sitemap and news sitemap via SEO Framework.

    I use a LiteSpeed server with php 7.4.

    If I deactivate the previous plugin (Google XML Sitemaps), a wp-sitemap.xml is generated, which is also accessible.

    However, the following links do not work and I get a 404 error:

    /wp-sitemap-taxonomies-category-1.xml

    /wp-sitemap-taxonomies-post_tag-1.xml

    /wp-sitemap-taxonomies-post_format-1.xml

    other taxonomies work.

    If I activate “Output optimized sitemap”, the sitemap is called: /sitemap.xml

    But this generates a 404 error.

    What to do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • tomruthenberg

    (@tomruthenberg)

    Same here. It seems to apear after the WP 6 Update. This is the error in the server Log for wp-sitemap-taxonomies-post_tag-1.xml and wp-sitemap-taxonomies-category-1.xml:

    PHP Fatal error:  Uncaught TypeError: Illegal offset type in isset or empty in /htdocs/iondesign_de/wp-content/plugins/autodescription/inc/classes/builders/sitemap/main.class.php:229
    Stack trace:
    #0 /htdocs/iondesign_de/wp-content/plugins/autodescription/inc/classes/builders/coresitemaps/taxonomies.class.php(99): The_SEO_Framework\\Builders\\Sitemap\\Main->is_term_included_in_sitemap()
    #1 /htdocs/iondesign_de/wp-includes/sitemaps/class-wp-sitemaps.php(208): The_SEO_Framework\\Builders\\CoreSitemaps\\Taxonomies->get_url_list()
    #2 /htdocs/iondesign_de/wp-includes/class-wp-hook.php(307): WP_Sitemaps->render_sitemaps()
    #3 /htdocs/iondesign_de/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #4 /htdocs/iondesign_de/wp-includes/plugin.php(476): WP_Hook->do_action()
    #5 /htdocs/iondesign_de/wp-includes/template-loader.php(13): do_action()
    #6 /htdocs/iondesign_de/wp-blog-header.php(19): require_once('...')
    #7 /htdocs/iondesign_de/index.php(17): require('...')
    #8 {main}
    thrown in /htdocs/iondesign_de/wp-content/plugins/autodescription/inc/classes/builders/sitemap/main.class.php on line 229
    Plugin Author Sybre Waaijer

    (@cybr)

    Howdy!

    WordPress Core developers ninja-updated two lines here that changed a list of “term ids” to a list of “terms with ids”. https://github.com/WordPress/wordpress-develop/commit/dcb118ef8f2ba1405f18bd52e431963fe30f3f57

    This change causes TSF to fetch term object to test against, instead of the before expected term ID. This test causes a notice in PHP 7, and an error in PHP 8.

    Since this is becoming a widespread issue I’ll have it patched before the end of this week.

    If I activate “Output optimized sitemap”, the sitemap is called: /sitemap.xml
    But this generates a 404 error.

    Please try /sitemap_index.xml or /sitemap.xmla. Some hosts don’t know how to configure NGINX for WordPress, causing the regular endpoints to fail with 404.

    Thread Starter Pixelwunder

    (@pixelwunder)

    Please try /sitemap_index.xml or /sitemap.xmla. Some hosts don’t know how to configure NGINX for WordPress, causing the regular endpoints to fail with 404.

    Unfortunately, this does not work. Besides, it is a LiteSpeed server (Apache).

    Plugin Author Sybre Waaijer

    (@cybr)

    I’m releasing the fix tomorrow because today is a holiday for most TSF users.

    @pixelwunder For Google News sitemap support (which requires TSF’s “optimized” sitemap to be enabled), please contact me via https://tsf.fyi/contact and share the URL of the site that cannot display TSF’s sitemap. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Sitemap.xml with 404 error’ is closed to new replies.