• Resolved Sanjay

    (@rsclmumbai)


    Google Console reporting Invalid date.
    I checked the sitemap in a browser and indeed the date is incorrect.

    .....
    	<url>
    		<loc>https://www.31west.net/blog/</loc>
    		<priority>0.1</priority>
    		<lastmod>-0001-11-30T00:00:00+00:00</lastmod>
     	</url>
    </urlset>
    

    WP & all Plugins are updated to the latest version.
    I did some dummy changes to the blog page and saved it. Did not help.

    Nginx error logs reports:

    PHP message: PHP Warning:  Division by zero in /usr/share/nginx/html/wp-content/plugins/xml-sitemap-feed/models/public/sitemap.php on line 304
    PHP message: PHP Warning:  Division by zero in /usr/share/nginx/html/wp-content/plugins/xml-sitemap-feed/models/public/sitemap.php on line 304
    PHP message: PHP Warning:  Division by zero in /usr/share/nginx/html/wp-content/plugins/xml-sitemap-feed/models/public/sitemap.php on line 304
    PHP message: PHP Warning:  Division by zero in /usr/share/nginx/html/wp-content/plugins/xml-sitemap-feed/models/public/sitemap.php on line 304
    PHP message: PHP Warning:  Division by zero in /usr/share/nginx/html/wp-content/plugins/xml-sitemap-feed/models/public/sitemap.php on line 304
    PHP message: PHP Warning:  Division by zero in /usr/share/nginx/html/wp-content/plugins/xml-sitemap-feed/models/public/sitemap.php on line 304
    

    Pls look into this asap. It’s likely to have an adverse impact on SEO.

    Thanks!!

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Sanjay

    (@rsclmumbai)

    I tried tick and untick “Automatic Priority calculation.”
    ??

    It is strange that https://www.31west.net/blog/ would come up in your posts sitemap. I presume it is a page, no? If so, is that page set as your blog page on Settings > Reading?

    The division by zero messages will be addressed in the upcoming release.

    Thread Starter Sanjay

    (@rsclmumbai)

    It’s blog home page & defined under Settings > Reading
    https://www.awesomescreenshot.com/image/3959710/a6d0e7a84727ca683866723dc7dcb38c

    Google is reporting the date error.
    https://www.awesomescreenshot.com/image/3959711/cb495e2cd8f7d23ceac61e6e69a5d6d0

    Please try to get this update out asap. Anything which makes Google unhappy is a pain for us ??

    Thanks a ton!!

    I really cannot explain then why that page is appearing in your posts sitemap. That is certainly not what is requested by the plug-in… Is this page appearing in other feeds too maybe? And since I’m not able to reproduce this issue, I won’t be able to fix it either. Sorry…

    Is it related to another plugin or your theme maybe? Do you have a staging site to run some tests? If not, I might be able to add some check for basic date validity but not sure when the next version will be ready for release. Your best option might simply be to quickly switch to another sitemap plugin that does not have this conflict or whatever is going wrong in your case.

    Thread Starter Sanjay

    (@rsclmumbai)

    I have the following relevant plugins:
    1. Yoast -> sitemap OFF
    2. Simple Sitemap -> HTML Sitemap by David Gwyer
    and yours.

    I do not expect there to be any conflicts.

    Why do you think https://www.31west.net/blog/ should not come in that sitemap? It’s blog home and I guess it’s rightly showing, correct me if I’ve misunderstood.

    Where does your plugin capture “Last Changed”?

    Thread Starter Sanjay

    (@rsclmumbai)

    I can ofcourse switch back to Yoast, but I want to fail all options with your plugin first.

    Thread Starter Sanjay

    (@rsclmumbai)

    The date in mysql looks fine to me.
    https://prnt.sc/n8xko3

    Where does your plugin capture “Last Changed”?

    Directly from the query where each WP_Post object has a modified_gmt property… unless you have activated the option to change lastmod on new comments, then extra queries are made for that ??

    Why do you think https://www.31west.net/blog/ should not come in that sitemap? It’s blog home and I guess it’s rightly showing, correct me if I’ve misunderstood.

    Because that is a page, not a post. By the plugin design, it should appear in the page sitemap. I have absolutely NO explanation for why it would appear in the post sitemap unless it is done by another plugin. I’ll test with the plugins you mentioned.

    Thread Starter Sanjay

    (@rsclmumbai)

    Directly from the query where each WP_Post object has a modified_gmt property… unless you have activated the option to change lastmod on new comments, then extra queries are made for that ??

    Comments are disabled on all pages and so is the “change lastmod on new comments” option

    Because that is a page, not a post. By the plugin design, it should appear in the page sitemap. I have absolutely NO explanation for why it would appear in the post sitemap unless it is done by another plugin. I’ll test with the plugins you mentioned.

    Understood. I’ve switched back to Yoast Sitemap ??

    Hi @rsclmumbai although I’ve not been able to reproduce the issue, there is a new release that might or might not suffer the same issue. If you have the opportunity to test it, please let me know the result ??

    Thread Starter Sanjay

    (@rsclmumbai)

    @ravanh,

    After our last conversation, I moved to another plugin. Unfortunately, I’ll not be able to test your new release.

    Best regards

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Sitemap Error: Invalid date: Critical’ is closed to new replies.