-
Hi,
While checking the sitemap of one of my client clients I saw that inside the sitemap index one of the sitemap was not working and throwing critical error. So, I enabledWP_Debug
and saw that Rankmath was throwing a few warnings and then one Fatal error which basically crashed the page.I’ve attaching the logs here so that you guys can easily see and fix the problems:
Warning: Trying to access array offset on value of type int in /example.com/public/wp-content/plugins/seo-by-rank-math-pro/includes/modules/acf/class-acf.php on line 106
Warning: Trying to access array offset on value of type int in /example.com/public/wp-content/plugins/seo-by-rank-math-pro/includes/modules/acf/class-acf.php on line 107
Warning: Trying to access array offset on value of type int in /example.com/public/wp-content/plugins/seo-by-rank-math-pro/includes/modules/acf/class-acf.php on line 108
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /example.com/public/wp-content/plugins/seo-by-rank-math-pro/includes/modules/acf/class-acf.php:99 Stack trace: #0 /example.com/public/wp-content/plugins/seo-by-rank-math-pro/includes/modules/acf/class-acf.php(78): RankMathProACFACF->add_images_to_sitemap() #1 /example.com/public/wp-includes/class-wp-hook.php(292): RankMathProACFACF->add_acf_images() #2 /example.com/public/wp-includes/plugin.php(255): WP_Hook->apply_filters() #3 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): apply_filters_ref_array() #4 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-image-parser.php(130): RankMathSitemapImage_Parser->do_filter() #5 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/providers/class-post-type.php(447): RankMathSitemapImage_Parser->get_images() #6 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/providers/class-post-type.php(197): RankMathSitemapProvidersPost_Type->get_url() #7 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-generator.php(169): RankMathSitemapProvidersPost_Type->get_sitemap_links() #8 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-generator.php(135): RankMathSitemapGenerator->build_sitemap() #9 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(153): RankMathSitemapGenerator->get_output() #10 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(144): RankMathSitemapSitemap_XML->build_sitemap() #11 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(84): RankMathSitemapSitemap_XML->has_sitemap_in_cache() #12 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php(74): RankMathSitemapSitemap_XML->output() #13 /example.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php(78): RankMathSitemapSitemap_XML->__construct() #14 /example.com/public/wp-includes/class-wp-hook.php(292): RankMathSitemapRouter->request_sitemap() #15 /example.com/public/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #16 /example.com/public/wp-includes/plugin.php(551): WP_Hook->do_action() #17 /example.com/public/wp-includes/class-wp-query.php(1083): do_action_ref_array() #18 /example.com/public/wp-includes/class-wp-query.php(1771): WP_Query->parse_query() #19 /example.com/public/wp-includes/class-wp-query.php(3465): WP_Query->get_posts() #20 /example.com/public/wp-includes/class-wp.php(629): WP_Query->query() #21 /example.com/public/wp-includes/class-wp.php(752): WP->query_posts() #22 /example.com/public/wp-includes/functions.php(1291): WP->main() #23 /example.com/public/wp-blog-header.php(16): wp() #24 /example.com/public/index.php(17): require('...') #25 {main} thrown in /example.com/public/wp-content/plugins/seo-by-rank-math-pro/includes/modules/acf/class-acf.php on line 99
You must be logged in to reply to this ticket.