• Resolved Tejas Hapani

    (@tejashapani-1)


    Hello,

    I am getting below error while generating static html:

    Error: (1) Uncaught TypeError: Argument 1 passed to voku\helper\HtmlDomParser::loadHtml() must be of the type string, bool given, called in /chroot/home/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php on line 228 and defined in /chroot/home/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php:870

    I tried resetting plugin data option but same error occurred.

    Can you please help?

    Thanks
    Tejas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @tejashapani-1,

    that happens if Simply Static finds invalid HTML that the crawler can’t parse.

    That usually happens with other plugins (look for things with a shortcode/block in particular).

    The traditional debugging would work fine here to isolate the problem:

    1. Deactivate all plugins and run an export
    2. Step by step re-activate the plugins to figure out which one causes the problem
    3. Find an alternative for that particular plugin

    Cheers,
    Patrick

    Thread Starter Tejas Hapani

    (@tejashapani-1)

    Hi Patrick,

    I have disabled all the plugins and also set the theme to Twenty Twenty-Four

    Then i tried to generate static html, but still getting same error

    [2023-11-10 01:02:29] Setting up
    [2023-11-10 01:02:29] Fetched 71 of 98 pages/files

    [2023-11-10 01:02:32] Error: (1) Uncaught TypeError: Argument 1 passed to voku\helper\HtmlDomParser::loadHtml() must be of the type string, bool given, called in /chroot/home/mysite/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php on line 228 and defined in /chroot/home/mysite/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php:870 Stack trace: #0 /chroot/home/mysite/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php(228): voku\helper\HtmlDomParser->loadHtml() #1 /chroot/home/mysite/wp-content/plugins/simply-static/src/class-ss-url-extractor.php(337): voku\helper\HtmlDomParser::__callStatic() #2 /chroot/home/mysite/wp-content/plugins/simply-static/src/class-ss-url-extractor.php(179): Simply_Static\Url_Extractor->extract_and_replace_urls_in in /chroot/home/mysite/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php on line 870

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error while generating static html’ is closed to new replies.