elementor / static-html-output

Static HTML Output Plugin for WordPress

Home Page:https://statichtmloutput.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

`

  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
    `

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!