• Resolved Treebeard

    (@malawimama)


    Just a note so others know that there’s a conflict with Gravity Forms, so sitemaps don’t generate (blank page). Only thing that shows in the sourcecode is “xml-stylesheet” and that’s it, no other text.

    Console:
    Resource interpreted as Stylesheet but transferred with MIME type text/xml: https://mywebsitedomainhere/main-sitemap.xsl

    NOTE: This doesn’t happen with yoast or all in one seo, so appears to be Rank Math only.

    Does anyone know how to fix this?

    Thanks!

    • This topic was modified 3 years, 5 months ago by Treebeard.
    • This topic was modified 3 years, 5 months ago by Treebeard. Reason: more info
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Rank Math

    (@rankmath)

    Hello @malawimama,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    The Gravity Forms team has released an update to fix the Sitemap issue:
    https://docs.gravityforms.com/gravityforms-change-log/

    Please update the plugin to v2.5.4.3

    Hope that helps.

    Thread Starter Treebeard

    (@malawimama)

    I am using Gravity Forms v2.5.4 and there is no update available.

    Plugin Author Rank Math

    (@rankmath)

    Hello @malawimama

    Please get in touch with the support of Gravity Forms.

    They will be able to help you why the update is not showing.

    You can even download the latest files from your account on GravityForms and update the plugin manually.

    Hope that helps. Thank you.

    Thread Starter Treebeard

    (@malawimama)

    I updated it but that didn’t help either.

    I went back to using yoast for now. I’ll keep troubleshooting to see what I can find out.

    Thanks!

    • This reply was modified 3 years, 5 months ago by Treebeard.
    Thread Starter Treebeard

    (@malawimama)

    OK so I got it to work on 1 site, but not another (after updating Gravity Forms) so it looks like there’s other plugins that Rank Math doesn’t work with, which means I cannot launch it on sites for clients – they’re bound to install a plugin that conflicts with it, so I will have to delete it on their sites.

    Thanks anyway for your help.

    Plugin Author Rank Math

    (@rankmath)

    Hello @malawimama

    Since the issue was fixed in the latest beta of Gravity forms, we would recommend installing that and then following these steps:
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/xXXhDt

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    That should fix the issue. Please let me know if that does not. We are here to assist. Thank you.

    Thread Starter Treebeard

    (@malawimama)

    I did all that already so it must be another plugin that’s conflicting. I don’t have the issue with any other SEO or site map plugins though so it’s off for now til I have more time to look into it

    Plugin Author Rank Math

    (@rankmath)

    Hello @malawimama

    Can you please try adding the following code to theme’s functions.php file and see if that helps?

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    add_filter( 'gform_force_hooks_js_output', function( $value ) {
    	if ( empty( get_query_var( 'sitemap' ) ) && empty( get_query_var( 'xsl' ) ) ) {
    		return $value;
    	}
    	return false;
    } );

    Sorry, but we do not want to give up so easily on you.

    Looking forward to helping you. Thank you.

    Thread Starter Treebeard

    (@malawimama)

    Thank you.

    “I got it to work on 1 site, but not another”.

    It has nothing to do with Gravity Forms anymore (I deactivated it and still saw a blank sitemap), now it’s some other plugin that’s conflicting, so I have to do more troubleshooting when I have time. Might be a security plugin.

    Plugin Author Rank Math

    (@rankmath)

    Hello @malawimama

    Sure, please.

    Do let us know if you need any assistance, we are here to help.

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Gravity Forms causes blank sitemaps’ is closed to new replies.