Conversation
supportHello It has been a year using the plugin for the emails and it has been working fine until the last few weeks that it has caused a problem and I was not aware of it until I checked the Google search console and realised that there is conflict between Yaymail and the RankMath plugin. Yaymail is not appearing in Rankmath so it is not possible to set it to noindex and then I found out that Yaymail uses its own way to avoid being appeared in the Rankmath post list. If nothing is done, the entire Sitemap wipes out and causing google to get confused and suddenly in a week or two I see 200,000 pages were index which is a huge issue now on ranking. Debug error from FTP: PHP Deprecated: Automatic conversion of false to array is deprecated in /home/u640624113/domains/lelika.se/public_html/wp-content/plugins/yaymail/src/Integrations/RankMath.php on line 24 Now I tell you what I found to solve it: In the Rankmath.php in plugin codes I found this: add_filter( ‘rank_math/sitemap/exclude_post_type’, function( $excluded_post_types ) { $excluded_post_types[] = TemplatePostType::POST_TYPE; return $excluded_post_types; } ); and I changed it to add_filter( ‘rank_math/sitemap’, function( $excluded_post_types ) { $excluded_post_types[] = TemplatePostType::POST_TYPE; return $excluded_post_types; } ); simply I changed this line: ‘rank_math/sitemap/exclude_post_type’, To ‘rank_math/sitemap’, and immidiately the error was gone! sitemap propagated properly and issue resolved. but IT must be fixed properly otherwise it will come back with an update. Kind Regards Payam This topic was modified 9 months, 2 weeks ago by pymsh . This topic was modified 9 months, 2 weeks ago by pymsh . The page I need help with: [ log in to see the link]
Hi @pymsh , Thank you for sharing these detailed findings and the workaround you discovered. We’ve acknowledged the RankMath conflict and the deprecated code notice you reported. Our development team is already working on an official fix and will release an update as soon as possible to address this issue properly. We appreciate your patience and your helpful investigation, it really speeds up the solution. Best regards, The YayMail Team
Hi @pymsh , Thank you for sharing these detailed findings and the workaround you discovered. We’ve acknowledged the RankMath conflict and the deprecated code notice you reported. Our development team is already working on an official fix and will release an update as soon as possible to address this issue properly. We appreciate your patience and your helpful investigation, it really speeds up the solution. Best regards, The YayMail Team