• Resolved aejaz

    (@aejaz)


    Hello,

    I’m trying to generate a static version of my website but when I click on “start static site export” button I’m getting below error.

    I’m using latest version of plugin

    An error has occurred, but let’s fix it!
    Everyone’s WordPress hosting environment and configuration is unique, with different plugins, themes, PHP versions, to name a few. Whilst the plugin does its best to support all environments, sometimes you’ll encounter a new issue. Sometimes we can adjust the settings in the plugin to overcome an issue, other times, it will require a bugfix and a new release of the plugin (usually a quick process).

    Troubleshooting:
    Switch to the Logs tab to look for obvious errors
    Switch to the Help tab for links that will help solve your issue

    pls look into the issue

    Regards
    Aejaz

Viewing 10 replies - 1 through 10 (of 10 total)
  • Same problem.
    From error logs:

    
    PHP Fatal error:  Uncaught Error: Class 'DOMDocument' not found in /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/HTMLProcessor.php:23
    Stack trace:
    #0 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(341): HTMLProcessor->processHTML(Object(GuzzleHttp\\Psr7\\Stream), 'https://domain...')
    #1 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(258): SiteCrawler->loadFileForProcessing()
    #2 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(168): SiteCrawler->crawlABitMore()
    #3 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(44): SiteCrawler->crawl_site()
    #4 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(472): SiteCrawler->__construct()
    #5 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/Dispatcher.php(11): requir in /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/HTMLProcessor.php on line 23, referer: https://domain.com/wp-admin/admin.php?page=wp2static
    
    Plugin Author Leon Stafford

    (@leonstafford)

    Hi to both of you,

    OK, great news: this is a fairly easy fix. The plugin uses a part of PHP, called the DOMDocument, to help parse HTML files and rewrite links.

    It’s usually available on most hosting providers, but when it’s not, you have some options to install it, which should solve your error.

    Please try the recommended solution here:

    https://stackoverflow.com/a/14395414/1668057

    If that’s not working, please let me know your hosting company or how you are running your WordPress server, and I can point you towards other options.

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Aejaz,

    Please let me know what your log files say. Specifically, the Export Log.

    If preferred, you can email them to me:

    [email protected]

    There is also this list of troubleshooting steps if you want to try and solve it yourself:

    https://forum.wp2static.com/-33/how-to-troubleshoot-a-failing-export

    Cheers,

    Leon

    Cheers,

    Leon

    Thread Starter aejaz

    (@aejaz)

    Hello leon,

    My export file

    STARTING EXPORT: 2018-12-28 11:31:00
    STARTING EXPORT: PHP VERSION 7.1.25
    STARTING EXPORT: OS VERSION Linux grh19.myukcloud.com 3.10.0-714.10.2.lve1.5.17.el7.x86_64 #1 SMP Mon Apr 30 13:06:32 EDT 2018 x86_64
    STARTING EXPORT: WP VERSION 4.9.8
    STARTING EXPORT: WP URL https://redmountaintech.imco.sa
    STARTING EXPORT: WP SITEURL https://redmountaintech.imco.sa
    STARTING EXPORT: WP HOME https://redmountaintech.imco.sa
    STARTING EXPORT: WP ADDRESS https://redmountaintech.imco.sa
    STARTING EXPORT: PLUGIN VERSION 6.1
    STARTING EXPORT: VIA WP-CLI?
    STARTING EXPORT: STATIC EXPORT URL https://example.com/

    I’m trying to export zip file.

    also, I checked with my hosting provider he said DOM Extension is already installed.

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi aejaz,

    Please share with me what’s in your server logs (webserver or PHP logs) at the time your export fails.

    Your hosting provider may be able to help show where to find these.

    As it is, the plugin isn’t showing a specific error, so we need to look lower down in the system.

    Cheers,

    Leon

    Thread Starter aejaz

    (@aejaz)

    Hi,

    I checked there is not a single error in the server.

    I will give my website WordPress credentials can you pls check it out for me. if possible can you pls generate a zip file of the static website.

    https://redmountaintech.imco.sa

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Leon

    I’m getting the same error

    Have tried the stackoverflow fix of installing php-xml, and getting no errors on server logs

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Graham,

    I saw you joined the Slack group, it may be easier to do a bit of back and forth there, to diagnose the cause.

    There is also a 6.1.1 release just out today, that could possibly help with things.

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    For any in this thread still experiencing issues, please update to today’s release (6.2), which solves a few issues. If any persist, please let me know with a new support request.

    Cheers,

    Leon

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can’t Make Static File’ is closed to new replies.