• Resolved nuramor

    (@nuramor)


    We have been notified by Google Search Control that the sitemap-misc file is not readable, getting a “Server error (5xx)”.
    When calling it directly (using Firefox) we get the message:
    `XML Parsing Error: no root element found
    Location: https://[our-website]/sitemap-misc.xml
    Line Number 17, Column 1:

    ^’
    Calling it with Chrome only returns an empty page, with the console displaying an error message: “Failed to load resource: the server responded with a status of 500 ()”.

    What could be the issue?

    • This topic was modified 2 years, 3 months ago by nuramor.
    • This topic was modified 2 years, 3 months ago by nuramor.
Viewing 5 replies - 1 through 5 (of 5 total)
  • @nuramor,
    Thanks for reaching out to us. Will you be comfortable providing us with the sitemap URL so we can better debug it and resolve the issue as soon as possible?

    Thread Starter nuramor

    (@nuramor)

    The full sitemap is at https://www.klinikfinder-psychosomatik.de/sitemap.xml.
    Sitemap-misc is listed first.

    We have now also been notified by Google about an error in another custom Plugin that calls yours to add pages to the index:

    `An error of type E_ERROR was found in line 22 in file /homepages/16/d98473758/htdocs/klinikfinder-psychosomatik/wp-content/plugins/klinikfinder/klinikfinder.php. error message: Uncaught Error: Call to undefined method GoogleSitemapGenerator::GetInstance() in /homepages/16/d98473758/htdocs/klinikfinder-psychosomatik/wp-content/plugins/klinikfinder/klinikfinder.php:22
    Stack trace:
    #0 /homepages/16/d98473758/htdocs/klinikfinder-psychosomatik/wp-includes/class-wp-hook.php(307): kf_add_detail_page_to_sitemap(”)
    #1 /homepages/16/d98473758/htdocs/klinikfinder-psychosomatik/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
    #2 /homepages/16/d98473758/htdocs/klinikfinder-psychosomatik/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #3 /homepages/16/d98473758/htdocs/klinikfinder-psychosomatik/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorstandardbuilder.php(390): do_action(‘sm_buildmap’)
    #4 /homepages/16/d98473758/htdocs/klinikfinder-psychosomatik/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorstandardbuilder.php(57): GoogleSitemapGeneratorStandardBuilder->build_misc(Object(GoogleSitemapGenerator))
    #5 /homepages/16/`

    The specific line reads
    $generatorObject = GoogleSitemapGenerator::GetInstance();

    In case this may be connected.

    • This reply was modified 2 years, 3 months ago by nuramor.

    @nuramor We have changed the naming conventions of our methods and also informed the documentation of our plugin. If you can please double-check the documentation and plugin methods and use them inside your custom plugin. That should resolve the issues. For example, GetInstance() has been renamed to get_instance().

    Thread Starter nuramor

    (@nuramor)

    That did it.
    I changed the two methods we were using from GetInstance() to get_instance() and AddURL() to add_url() and now sitemap-misc is filled as desired.

    Thank you for your help.

    @nuramor Glad, I could help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parsing error on sitemap-misc’ is closed to new replies.