Skip to content

Instantly share code, notes, and snippets.

@matsubo
Created Oct 8, 2021
Embed
What would you like to do?
[08-Oct-2021 02:37:19 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, string given in /home/matsu/Sites/teraren.com/diary/wp-content/plugins/google-sitemap-generator/sitemap-builder.php:475
Stack trace:
#0 /home/matsu/Sites/teraren.com/diary/wp-includes/class-wp-hook.php(303): GoogleSitemapGeneratorStandardBuilder->Index(Object(GoogleSitemapGenerator))
#1 /home/matsu/Sites/teraren.com/diary/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
#2 /home/matsu/Sites/teraren.com/diary/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#3 /home/matsu/Sites/teraren.com/diary/wp-content/plugins/google-sitemap-generator/sitemap-core.php(1623): do_action('sm_build_index', Object(GoogleSitemapGenerator))
#4 /home/matsu/Sites/teraren.com/diary/wp-content/plugins/google-sitemap-generator/sitemap-loader.php(327): GoogleSitemapGenerator->ShowSitemap(Array)
#5 /home/matsu/Sites/teraren.com/diary/wp-content/plugins/google-sitemap-generator/sitemap-loader.php(202): GoogleSitemapGeneratorLoader::CallShowSitemap('params=')
#6 /home/matsu/Sites/teraren.com/diary/wp-includes/class-wp-hook.php(301): GoogleSitemapGeneratorLoader::DoTemplateRedirect()
#7 /home/matsu/Sites/teraren.com/diary/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(true, Array)
#8 /home/matsu/Sites/teraren.com/diary/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#9 /home/matsu/Sites/teraren.com/diary/wp-includes/template-loader.php(13): do_action('template_redire...')
#10 /home/matsu/Sites/teraren.com/diary/wp-blog-header.php(19): require_once('/home/matsu/Sit...')
#11 /home/matsu/Sites/teraren.com/diary/index.php(17): require('/home/matsu/Sit...')
#12 {main}
thrown in /home/matsu/Sites/teraren.com/diary/wp-content/plugins/google-sitemap-generator/sitemap-builder.php on line 475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment