• Hi,

    I just installed SimplyStatic, checked out its Settings and see green OKs & checkmarks agains everything, however when I try to generate a site I get a screenful of red error message! ??

    Debug log is copied below. Any help would be much appreciated.

    Thanks,

    Steve

    [2021-11-18 14:33:44] [class-ss-plugin.php:260] Received request to start generating a static archive
    [2021-11-18 14:33:46] [class-ss-archive-creation-job.php:61] Starting a job; no job is presently running
    [2021-11-18 14:33:46] [class-ss-archive-creation-job.php:62] Here’s our task list: setup, fetch_urls, create_zip_archive, wrapup
    [2021-11-18 14:33:46] [class-ss-archive-creation-job.php:76] Pushing first task to queue: setup
    [2021-11-18 14:33:46] [class-ss-archive-creation-job.php:105] Current task: setup
    [2021-11-18 14:33:46] [class-ss-archive-creation-job.php:121] Performing task: setup
    [2021-11-18 14:33:46] [class-ss-task.php:44] Status message: [setup] Setting up
    [2021-11-18 14:33:46] [class-ss-setup-task.php:32] Creating archive directory: /var/www/html/wp-content/plugins/simply-static/static-files/simply-static-1-1637246026/
    [2021-11-18 14:33:46] [class-ss-setup-task.php:77] Adding origin URL to queue: https://www.klassapps.com/
    [2021-11-18 14:33:46] [class-ss-archive-creation-job.php:140] We’ve found our next task: fetch_urls
    [2021-11-18 14:33:46] [class-ss-archive-creation-job.php:105] Current task: fetch_urls
    [2021-11-18 14:33:46] [class-ss-archive-creation-job.php:121] Performing task: fetch_urls
    [2021-11-18 14:33:46] [class-ss-fetch-urls-task.php:54] Total pages: 1; Pages remaining: 1
    [2021-11-18 14:33:46] [class-ss-fetch-urls-task.php:57] URL: https://[our_domain_name]
    [2021-11-18 14:33:46] [class-ss-fetch-urls-task.php:67] URL is not being excluded
    [2021-11-18 14:33:46] [class-ss-url-fetcher.php:85] Fetching URL and saving it to: /tmp/6196644adc913-lDjKlA.tmp
    [2021-11-18 14:33:47] [class-ss-url-fetcher.php:89] Filesize: 72025 bytes
    [2021-11-18 14:33:47] [class-ss-url-fetcher.php:104] http_status_code: 200 | content_type: text/html; charset=UTF-8
    [2021-11-18 14:33:47] [class-ss-url-fetcher.php:187] New filename for static page: index.html
    [2021-11-18 14:33:47] [class-ss-url-fetcher.php:127] Renaming temp file from /tmp/6196644adc913-lDjKlA.tmp to /var/www/html/wp-content/plugins/simply-static/static-files/simply-static-1-1637246026/index.html
    [2021-11-18 14:33:47] [class-ss-fetch-urls-task.php:122] Extracting URLs and replacing URLs in the static file
    [2021-11-18 14:33:47] [class-ss-archive-creation-job.php:327] Error: (1) Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php:163Stack trace:#0 /var/www/html/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php(223): voku\helper\HtmlDomParser->__construct()#1 /var/www/html/wp-content/plugins/simply-static/src/class-ss-url-extractor.php(268): voku\helper\HtmlDomParser::__callStatic()#2 /var/www/html/wp-content/plugins/simply-static/src/class-ss-url-extractor.php(158): Simply_Static\Url_Extractor->extract_and_replace_urls_in_html()#3 /var/www/html/wp-content/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(125): Simply_Static\Url_Extractor->extract_and_update_urls()#4 /var/www/html/wp-content/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(97): Simply_Static\Fetch_Urls_Task->handle_200_response()#5 /var/www/html/wp-content/plugins/simply-static/src/class-ss-archive-creation-job.php(122): Simply_Static\Fetch in <b>/var/www/html/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php</b> on line <b>163</b>
    [2021-11-18 14:33:47] [class-ss-archive-creation-job.php:269] Status message: [error] Error: (1) Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php:163Stack trace:#0 /var/www/html/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php(223): voku\helper\HtmlDomParser->__construct()#1 /var/www/html/wp-content/plugins/simply-static/src/class-ss-url-extractor.php(268): voku\helper\HtmlDomParser::__callStatic()#2 /var/www/html/wp-content/plugins/simply-static/src/class-ss-url-extractor.php(158): Simply_Static\Url_Extractor->extract_and_replace_urls_in_html()#3 /var/www/html/wp-content/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(125): Simply_Static\Url_Extractor->extract_and_update_urls()#4 /var/www/html/wp-content/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(97): Simply_Static\Fetch_Urls_Task->handle_200_response()#5 /var/www/html/wp-content/plugins/simply-static/src/class-ss-archive-creation-job.php(122): Simply_Static\Fetch in <b>/var/www/html/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php</b> on line <b>163</b>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 92042

    (@anonymized-92042)

    I’m seeing the same problem:

    [2021-12-09 01:19:14] Setting up
    [2021-12-09 01:19:14] Error: (1) Uncaught Error: Class ‘DOMDocument’ not found in /home/webmaster/web/blog.example.com/releases/20211209011553/public/content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php:163 Stack trace: #0 /home/webmaster/web/blog.example.com/releases/20211209011553/public/content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php(223): voku\helper\HtmlDomParser->__construct() #1 /home/webmaster/web/blog.example.com/releases/20211209011553/public/content/plugins/simply-static/src/class-ss-url-extractor.php(268): voku\helper\HtmlDomParser::__callStatic() #2 /home/webmaster/web/blog.example.com/releases/20211209011553/public/content/plugins/simply-static/src/class-ss-url-extractor.php(158): Simply_Static\Url_Extractor->extract_and_replace_urls_in_html() #3 /home/webmaster/web/blog.example.com/releases/20211209011553/public/content/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(129): Simply_Static\Url_Extractor->extract_and_update_urls() in /home/webmaster/web/blog.example.com/releases/20211209011553/public/content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php on line 163

    My server:
    * Simply Static 2.1.5.1
    * WordPress 5.8.2
    * PHP 7.4.3
    * Nginx front end serving static files, proxying WP requests to an Apache backend
    * The site is publicly reachable, no authentication required.

    I will third this as I’m getting the exact same error but with a slightly different configuration:

    ~~ Simply Static Plugin Version 2.1.5.6
    ~~ WordPress 5.9.2
    ~~ LAMP stack with Amazon Linux 2, Apache and MySQL
    ~~~~~ PHP 7.4.28

    Thanks!

    I upgraded SimplyStatic to version 2.1.5.7 and am still having the same issue.

    Thanks!

    I was able to fix this on a Debian bullseye system by doing:

    sudo apt install php-xml

    HTH!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught Error: Class ‘DOMDocument’ not found’ is closed to new replies.