• There appears to be an issue when using Asset cleanup with rankmath plugin. It breaks the sitemap funtionality.

    After much testing turning off the CSS Files Minification AND Apply font-display: CSS property value (do not use) fixes the issue.

    Keeping either of these options on breaks the sitemap and gives the: Error loading stylesheet: A network error occurred loading an XSLT stylesheet

    Again not using OR turning BOTH those options off seems to fix the issue.

    Such a shame unable to use those options ??

    Any chance of a fix please?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @umbrellaweb thanks for reporting a potential bug! I’m surprised at what you’re reporting as, in my tests, there were no errors with RankMath. All the sitemaps are working fine.

    Thus, I need more information from you in order to debug this.

    1) Where do you see the following error: “Error loading stylesheet: A network error occurred loading an XSLT stylesheet“? If you can actually send me a few print screens of the process, it would be very helpful!

    2) Is this happening after the update to WordPress 5.5?

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    no problem.

    I can do 1 better IF I can send you a private message (how/can I do that) I can record a video for you showing the error. How does that sound?

    2. nope, not upgraded to 5.5 yet no plans too until all bugs are ironed out!

    Plugin Author Gabe Livan

    (@gabelivan)

    @umbrellaweb thanks for the reply! Yes, a private message with a video, if that’s more comfortable for you, will work. Please do so via https://www.gabelivan.com/contact/ – you can attach the video to a place like Google Drive.

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    No problem, done: Thanks for raising this ticket! You will be reached about your inquiry via the email address you provided.

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    sorry should have confirmed YOU cannot view the source code as there is none! It doesnt allow you to view page source in FF or chrome…

    Plugin Author Gabe Livan

    (@gabelivan)

    @umbrellaweb if you go to “View” (Chrome top bar menu) -> “Developer” -> “View Source” it should work, something is there. Is the path to the XML file revealed in /wp-admin/admin.php?page=rank-math-options-sitemap?

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    blank im afraid. its totally empty screen on chrome FF shows what you saw in video and you cannot view page source. No option to do so and that is in dev FF

    Plugin Author Gabe Livan

    (@gabelivan)

    @umbrellaweb because this has never been reported so far and I couldn’t get any errors in my tests, I have the feeling that due to the nature of your pages, something is wrong there (e.g. Asset CleanUp is triggering when it shouldn’t and RankMath can’t finish the task it was supposed to). I will make analyze your website further (test a few links) and let you know what I found.

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    Thanks gabe.

    That update has helped but atill facing the issue.

    Investigating further to see why its happening hence the late reply.

    What i have noticed is with the plugin activated we start getting the cirl issue and rest api not working issue. Could that be the reason why it breaks?

    Plugin Author Gabe Livan

    (@gabelivan)

    @umbrellaweb Please update to the latest tag (1.3.6.8) then set up the “Error Log Monitor” plugin and try to re-generate the XML sitemaps. If there are PHP errors generated in the background, they will be logged and visible in the Dashboard’s widget (“PHP Error Log”). When you said, “we start getting the cirl issue“, I believe you meant “cURL issue”, correct? Just to be sure ??

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    @gabelivan been testing and its not fixed the issue. If i turn on either the css option or font option the rankmath sitemap breaks as per my original message and vide.

    As soon as those options are turned off then the sitemap starts working.

    Added in the errorlog plugin. Was it this: https://www.ads-software.com/plugins/error-log-monitor/ ?

    If so this is what it reported in the dashboard:

    Fatal error: Uncaught Error: Using $this when not in object context in /XXXX/wp-asset-clean-up/classes/ObjectCache.php:606
    Stack Trace
    1.	WpAssetCleanUp\ObjectCache::wpacu_cache_get('wpacu_css_optim...')/XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php:641
    2.	WpAssetCleanUp\OptimiseAssets\OptimizeCss::updateHtmlSourceOriginalToOptimizedCss('<?xml version="...')/XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php:459
    3.	WpAssetCleanUp\OptimiseAssets\OptimizeCss::alterHtmlSource('<?xml version="...')/XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php:224
    4.	WpAssetCleanUp\OptimiseAssets\OptimizeCommon::alter in /XXXX/wp-asset-clean-up/classes/ObjectCache.php on line 606/XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php:171

    AND here is from actual log files:

    [Sat Aug 22 15:23:35 2020] [error] [client XXXX] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /XXXX/wp-asset-clean-up/classes/ObjectCache.php:597\nStack trace:\n#0 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(641): WpAssetCleanUp\\ObjectCache::wpacu_cache_get('wpacu_css_optim...')\n#1 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(459): WpAssetCleanUp\\OptimiseAssets\\OptimizeCss::updateHtmlSourceOriginalToOptimizedCss('<?xml version="...')\n#2 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(224): WpAssetCleanUp\\OptimiseAssets\\OptimizeCss::alterHtmlSource('<?xml version="...')\n#3
    [Sat Aug 22 15:27:34 2020] [error] [client XXXX] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Using $this when not in object context in /XXXX/wp-asset-clean-up/classes/ObjectCache.php:606\nStack trace:\n#0 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(641): WpAssetCleanUp\\ObjectCache::wpacu_cache_get('wpacu_css_optim...')\n#1 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(459): WpAssetCleanUp\\OptimiseAssets\\OptimizeCss::updateHtmlSourceOriginalToOptimizedCss('<?xml version="...')\n#2 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(224): WpAssetCleanUp\\OptimiseAssets\\OptimizeCss::alterHtmlSource('<?xml version="...')\n#3

    So even after the update seems lik ethe issue still exists…

    Yes, I meant curl issue. Apologies for the phat fingers! Fixed the curl issue. Site health is reported as good (just need to remove some deactivated plugins etc).

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Breaks Rankmath Sitemaps’ is closed to new replies.