elementor / static-html-output

Static HTML Output Plugin for WordPress
https://statichtmloutput.com
The Unlicense
124 stars 33 forks source link

Fatal error: Uncaught TypeError: Return value of StaticHTMLOutput\CrawlQueue::getTotalCrawlableURLs() must be of the type int, null returned #147

Closed thomasfrobieter closed 3 years ago

thomasfrobieter commented 3 years ago

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:

`

  1. StaticHTMLOutput\CrawlQueue::getTotalCrawlableURLs()/var/www/html/wp-content/plugins/static-html-output-plugin/src/CrawlQueue.php:99
  2. | StaticHTMLOutput\CrawlQueue::truncate()/var/www/html/wp-content/plugins/static-html-output-plugin/src/Controller.php:189
  3. | StaticHTMLOutput\Controller->detect_urls()/var/www/html/wp-content/plugins/static-html-output-plugin/src/Controller.php:218
  4. | StaticHTMLOutput\Controller::renderOptionsPage('')/var/www/html/wp-includes/class-wp-hook.php:287
  5. | WP_Hook->apply_filters('', Array)/var/www/html/wp-includes/class-wp-hook.php:311
  6. | WP_Hook->do_action(Array)/var/www/html/wp-includes/plugin.php:478
  7. | do_action('toplevel_page_s...')/var/www/html/wp-admin/admin.php:259
  8. | {main} thrown in /var/www/html/wp-content/plugins/static-html-output-plugin/src/CrawlQueue.php on line 86 `
thomasfrobieter commented 3 years ago

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

thomasfrobieter commented 3 years ago

Okay, a plugin reinstallation fixed this!