XML Parsing Error: junk after document element

[ad_1]

Hello! Your plugin is really useful! Thank you! Unfortunately, it generates an error in my RankMath post-sitemap.xml which is:

XML Parsing Error: junk after document element
Location: 
Line Number 2, Column 1:
<b>Warning</b>:  Attempt to read property "ID" on null in <b>/path-to-my-installation/wp-content/plugins/wp-last-modified-info/inc/Core/Frontend/Shortcode.php</b> on line <b>46</b><br />
^

It prevents the sitemap from being accessed manually, and Google Search Console produces an error when trying to read it. Any help would be highly appreciated 🙂 Thank you!

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer