Open matsubo opened 10 months ago
I've got following error on my running Wordpress site.
[24-Jan-2024 07:29:21 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /home/matsu/Sites/teraren.com/matsu/blog/wp-content/plugins/google-sitemap-gene rator/class-googlesitemapgeneratorstandardbuilder.php:894 Stack trace: #0 /home/matsu/Sites/teraren.com/matsu/blog/wp-includes/class-wp-hook.php(324): GoogleSitemapGeneratorStandardBuilder->index() #1 /home/matsu/Sites/teraren.com/matsu/blog/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /home/matsu/Sites/teraren.com/matsu/blog/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /home/matsu/Sites/teraren.com/matsu/blog/wp-content/plugins/google-sitemap-generator/sitemap-core.php(1976): do_action() #4 /home/matsu/Sites/teraren.com/matsu/blog/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorloader.php(771): GoogleSitemapGenerator->show_sitemap() #5 /home/matsu/Sites/teraren.com/matsu/blog/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorloader.php(255): GoogleSitemapGeneratorLoader::call_show_sitemap() #6 /home/matsu/Sites/teraren.com/matsu/blog/wp-includes/class-wp-hook.php(322): GoogleSitemapGeneratorLoader::do_template_redirect() #7 /home/matsu/Sites/teraren.com/matsu/blog/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /home/matsu/Sites/teraren.com/matsu/blog/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /home/matsu/Sites/teraren.com/matsu/blog/wp-includes/template-loader.php(13): do_action() #10 /home/matsu/Sites/teraren.com/matsu/blog/wp-blog-header.php(19): require_once('...') #11 /home/matsu/Sites/teraren.com/matsu/blog/index.php(17): require('...') #12 {main} thrown in /home/matsu/Sites/teraren.com/matsu/blog/wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorstandardbuilder.php on line 894
6.4.2
% php -v Wed Jan 24 07:35:26 2024 PHP 8.2.9 (cli) (built: Aug 3 2023 11:39:08) (NTS gcc x86_64) Copyright (c) The PHP Group Zend Engine v4.2.9, Copyright (c) Zend Technologies with Zend OPcache v8.2.9, Copyright (c), by Zend Technologies
Server version: 8.0.35 MySQL Community Server - GPL
Amazon Linux 2023
% nginx -v nginx version: nginx/1.24.0
https://matsu.teraren.com/blog/sitemap.xml
Issue
I've got following error on my running Wordpress site.
Environment
Wordpress version
6.4.2
PHP
MySQL
Server version: 8.0.35 MySQL Community Server - GPL
OS
Amazon Linux 2023
Web Server
URL
https://matsu.teraren.com/blog/sitemap.xml