Fatal error: Uncaught TypeError: Return value of StaticHTMLOutput\CrawlQueue::getTotalCrawlableURLs() must be of the type int, null returned
thomasfrobieter opened this issue · comments
- Wordpress 5.5.1 (Multisite)
- Plugin Version 6.6.21
When i open "/wp-admin/admin.php?page=statichtmloutput" one multisite works without problems, the second one shows:
"There was a critical bug on your website. Please check your website administrator email address inbox for further instructions."
(translated from german)
Log:
`
- | StaticHTMLOutput\CrawlQueue::getTotalCrawlableURLs()/var/www/html/wp-content/plugins/static-html-output-plugin/src/CrawlQueue.php:99
-- | -- - | StaticHTMLOutput\CrawlQueue::truncate()/var/www/html/wp-content/plugins/static-html-output-plugin/src/Controller.php:189
- | StaticHTMLOutput\Controller->detect_urls()/var/www/html/wp-content/plugins/static-html-output-plugin/src/Controller.php:218
- | StaticHTMLOutput\Controller::renderOptionsPage('')/var/www/html/wp-includes/class-wp-hook.php:287
- | WP_Hook->apply_filters('', Array)/var/www/html/wp-includes/class-wp-hook.php:311
- | WP_Hook->do_action(Array)/var/www/html/wp-includes/plugin.php:478
- | do_action('toplevel_page_s...')/var/www/html/wp-admin/admin.php:259
- | {main}
thrown in /var/www/html/wp-content/plugins/static-html-output-plugin/src/CrawlQueue.php on line 86
`
Oh a further log entry mentions they are missing database entries for some reason.. i'll try to reinstall the plugin:
WordPress-Database-Error Table 'wordpress.wp_2_statichtmloutput_urls' doesn't exist für Abfrage SELECT COUNT(*) FROM wp_2_statichtmloutput_urls von do_action('toplevel_page_statichtmloutput'), WP_Hook->do_action, WP_Hook->apply_filters, StaticHTMLOutput\Controller::renderOptionsPage, StaticHTMLOutput\Controller->detect_urls, StaticHTMLOutput\CrawlQueue::truncate, StaticHTMLOutput\CrawlQueue::getTotalCrawlableURLs
Okay, a plugin reinstallation fixed this!