Suddenly stopped working on WordPress 5.5.1
-
Hello Simply Static,
Big fan of your plugin, and it has worked well for a long time.
After wordpress auto updated to 5.5.1, the plugin suddenly stopped crawling the site and now only crawls the home page. No other changes to the site have been made since, and debug.txt has no errors.
Was just wondering if anyone was experiencing the same error.
-
I’m experiencing the same problem, except I’m still on version 4.9.15. I upgraded my ubuntu installation last week to version 20.04 and Simply Static hasn’t been working since then.
We are using managed hosting on wordpress.com, so it could be the same issue
Hello and thanks for your work?!
I can’t get simply static to work on a fresh installation?:
Wordpress in docker
wp updated to 5.5.1I just install the plugin, change the config to use relative URLs and local directory.
Then I start the export and it download only two files.Here is a debug log?:
[class-ss-plugin.php:232] Received request to start generating a static archive [class-ss-archive-creation-job.php:61] Starting a job; no job is presently running [class-ss-archive-creation-job.php:62] Here's our task list: setup, fetch_urls, transfer_files_locally, wrapup [class-ss-archive-creation-job.php:76] Pushing first task to queue: setup [class-ss-archive-creation-job.php:105] Current task: setup [class-ss-archive-creation-job.php:120] Performing task: setup [class-ss-task.php:38] Status message: [setup] Mise en place [class-ss-setup-task.php:23] Creating archive directory: /var/www/html/wp-content/plugins/simply-static/static-files/simply-static-1-1603638186/ [class-ss-setup-task.php:57] Adding origin URL to queue: https://wordpress.mysite.com/ [class-ss-setup-task.php:68] Adding additional URL to queue: https://wordpress.mysite.com/wp-includes/js/wp-emoji-release.min.js [class-ss-setup-task.php:99] Adding files from directory: /var/www/html/wp-content/uploads/ [class-ss-archive-creation-job.php:142] We've found our next task: fetch_urls [class-ss-archive-creation-job.php:105] Current task: fetch_urls [class-ss-archive-creation-job.php:120] Performing task: fetch_urls [class-ss-fetch-urls-task.php:37] Total pages: 2; Pages remaining: 2 [class-ss-fetch-urls-task.php:40] URL: https://wordpress.mysite.com/ [class-ss-fetch-urls-task.php:50] URL is not being excluded [class-ss-url-fetcher.php:85] Fetching URL and saving it to: /tmp/5f9593ab13a6a-QXn1T1.tmp [class-ss-url-fetcher.php:89] Filesize: 26432 bytes [class-ss-url-fetcher.php:104] http_status_code: 200 | content_type: text/html; charset=UTF-8 [class-ss-url-fetcher.php:180] New filename for static page: index.html [class-ss-url-fetcher.php:120] Renaming temp file from /tmp/5f9593ab13a6a-QXn1T1.tmp to /var/www/html/wp-content/plugins/simply-static/static-files/simply-static-1-1603638186/index.html [class-ss-fetch-urls-task.php:99] Extracting URLs and replacing URLs in the static file [class-ss-fetch-urls-task.php:106] Adding 0 URLs to the queue [class-ss-fetch-urls-task.php:117] We're saving this URL; keeping the static file [class-ss-fetch-urls-task.php:40] URL: https://wordpress.mysite.com/wp-includes/js/wp-emoji-release.min.js [class-ss-fetch-urls-task.php:50] URL is not being excluded [class-ss-url-fetcher.php:85] Fetching URL and saving it to: /tmp/5f9593ab2d225-A0zDVK.tmp [class-ss-url-fetcher.php:89] Filesize: 14246 bytes [class-ss-url-fetcher.php:104] http_status_code: 200 | content_type: application/javascript [class-ss-url-fetcher.php:180] New filename for static page: wp-includes/js/wp-emoji-release.min.js [class-ss-url-fetcher.php:120] Renaming temp file from /tmp/5f9593ab2d225-A0zDVK.tmp to /var/www/html/wp-content/plugins/simply-static/static-files/simply-static-1-1603638186/wp-includes/js/wp-emoji-release.min.js [class-ss-fetch-urls-task.php:99] Extracting URLs and replacing URLs in the static file [class-ss-fetch-urls-task.php:106] Adding 0 URLs to the queue [class-ss-fetch-urls-task.php:117] We're saving this URL; keeping the static file [class-ss-task.php:38] Status message: [fetch_urls] 0 pages/fichiers sur 2 g??n??r??s [class-ss-archive-creation-job.php:147] We're not done with the fetch_urls task yet [class-ss-archive-creation-job.php:105] Current task: fetch_urls [class-ss-archive-creation-job.php:120] Performing task: fetch_urls [class-ss-fetch-urls-task.php:37] Total pages: 2; Pages remaining: 0 [class-ss-task.php:38] Status message: [fetch_urls] 2 pages/fichiers sur 2 g??n??r??s [class-ss-archive-creation-job.php:142] We've found our next task: transfer_files_locally [class-ss-archive-creation-job.php:105] Current task: transfer_files_locally [class-ss-archive-creation-job.php:120] Performing task: transfer_files_locally [class-ss-transfer-files-locally-task.php:64] Total pages: 2; Pages remaining: 2 [class-ss-archive-creation-job.php:147] We're not done with the transfer_files_locally task yet [class-ss-archive-creation-job.php:105] Current task: transfer_files_locally [class-ss-archive-creation-job.php:120] Performing task: transfer_files_locally [class-ss-transfer-files-locally-task.php:64] Total pages: 2; Pages remaining: 0 [class-ss-task.php:38] Status message: [transfer_files_locally] 2 fichiers sur 2 copi??s [class-ss-archive-creation-job.php:142] We've found our next task: wrapup [class-ss-archive-creation-job.php:105] Current task: wrapup [class-ss-archive-creation-job.php:120] Performing task: wrapup [class-ss-wrapup-task.php:13] Deleting temporary files [class-ss-task.php:38] Status message: [wrapup] Fin du processus [class-ss-archive-creation-job.php:138] This task is done and there are no more tasks, time to complete the job [class-ss-archive-creation-job.php:161] Completing the job [class-ss-archive-creation-job.php:271] Status message: [done] Effectu?? ! Fini en 00:00:01
I had the same problem after upgrading to Ubuntu 20.04. Turns out there’s a dependency inside Simply Static on PHP 7.2 – it does not work with PHP 7.3 or 7.4 (which is the default level of PHP on Ubuntu 20.04). I suspect (but have not tried) that if you change your PHP level to 7.2 the plugin will work fine. Of course changing the PHP level requires access to the host operating system…
For those needing a bit more technical detail, Simply Static includes a library called PhpSimpleHtmlDom. The version (1.5) included in the current version of Simply Static does not work on PHP 7.3.
On my own system I hacked the plugin to include a newer version of the library (from https://github.com/caophihung94/php-simple-html-dom-parser) and this fixes the problem. Obviously this is not something I would recommend unless you have full access to the system and are very happy to hack around the plugin’s code (Also obviously, doing so quite rightly upsets Wordfence).
Hello,
I had the same problem when changing from PHP7.2 to 7.4. In PHP 7.3 the Perl Compatible Regular Expressions (PCRE) engine was migrated to PCRE2.
https://php.watch/versions/7.3/pcre2This has impacted the interpretation of regex patterns used by PHPSimpleHTMLDOM. Fortunately, it seems to just impact the escaping of hyphens, which is evidently addressed by the newer version of the parser, as @tremlas says. But actually, the supplied version, 1.5, can be fixed by simply inserting ‘\’ before instances of ‘-’ in two lines of simple_html_dom.php:
l.696 (4 insertions) becomes:
$pattern = "/([\w\-:\*]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
l. 1378 (1 insertion) becomes:
if (!preg_match("/^[\w\-:]+$/", $tag)) {
That seemed to enable the plugin to work again in my case.
@paul_mhs got it right. Thanks for making your solution public!
I ran into the same issue and @paul_mhs ‘s solution worked for me too.
@paul_mhs, wow thanks, it really solved the problem! Thanks a lot! ??
But it’s still bad that the developers stopped continuing the project. ??
- The topic ‘Suddenly stopped working on WordPress 5.5.1’ is closed to new replies.