• Contact Form 7 creates an entry in the XML sitemap generated by Yoast’s WordPress SEO that causes an error. Google Webmaster Tools reports: “Parsing error: We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.”

    Contact Form 7 creates an entry like this:

    <url>
    		<loc>http://www.generalkinematics.com/?post_type=wpcf7_contact_form&p=2259</loc>
    		<lastmod>2013-03-11T20:59:08+00:00</lastmod>
    		<changefreq>weekly</changefreq>
    		<priority>0.8</priority>
    	</url>

    The problem is that the ampersand needs to be in the form of an HTML entity, and not just an actual ampersand. This entry from Contact Form 7 shouldn’t even be in the XML sitemap anyway.

    This thread is similar: http://wordpress.org/support/topic/google-xml-sitemap-erroring-due-to-contact-form-7

    What is the best way to block Contact Form 7 from making this entry in the XML sitemap?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Is there a solution for this? I have the same problem. 🙁

    Thread Starter RyanMasterson

    (@ryanmasterson)

    Unfortunately I don’t think the author of Contact Form 7 is interested in fixing this problem. Your best bet is to use a different contact form plugin.

    At the moment I am not sure if this is a CF7 problem or maybe one of Yoast’s SEO tool.
    I am trying to get an answer there as well.

    Thread Starter RyanMasterson

    (@ryanmasterson)

    It’s a CF7 problem. It happens with the Google XML Sitemaps plugin too (in other words, not Yoast).

    http://wordpress.org/support/topic/google-xml-sitemap-erroring-due-to-contact-form-7

    I don`t know how can i help you, but you should try contact form by bestwebsoft. I use it and it works great without any problem/.

    http://wordpress.org/plugins/contact-form-plugin/

    hi, I had a similar issue some minutes ago. within the sitemap the contact form entry + other entries that should not be there popped up and produced some errors.

    Plugins
    – Google XML Sitemap (0.1.1)
    – WordPress SEO (1.4.23)
    – Contact Form 7 (3.6)
    – W3 Total Cache (0.9.3)

    after playing around with the SEO created output I thought there are caching issues, because my <loc> (e.g. <loctest> then) tag didn’t change at all. E.g. sitemap_index changed fine.

    I realized that my sitemap output was partially created by the Google XML Sitemap Plugin. I deactivated it and it works fine by now. Can’t even remember when I installed this one.

    Hi guys,
    the problem was solved by removing the second sitemap plugin. After that everything turned back to normal and only valid URIs showed up.

    Thanks alpippan for your tip!

    Harry.

    Thread Starter RyanMasterson

    (@ryanmasterson)

    I’m not using two sitemap plugins and am still having the problem. If I use WordPress SEO OR (not AND) Google XML Sitemap with Contact Form 7, my XML sitemap breaks.

    Hi once more. I wrote an article about broken WordPress sitemaps and how those were solved in my case.

    Ryan, do you have some other plugins which might interfere with the sitemaps?

    @ryanmasterson try to pinpoint the source of the issue first. Google XML Sitemap does not work that’s sure. At the moment it seems like you can’t be sure another plugin might be interfering with wordpress seo.

    You may retry my harsh and desperate issue search:
    – Edit WordPress-Seo Plugins output
    – Navigate to wordpress-seo/inc/class-sitemaps.php
    – Change the 4 Lines outputting <loc> to e.g. loc1 – loc4
    – Try refreshing your sitemap that didn’t work
    – Check the generated code, if there’s no loc1-4 used, wordpress-seo might not generate the output and is interfering with something else

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Contact Form 7 breaking XML sitemap by Yoast's WordPress SEO’ is closed to new replies.