Simply-Static / simply-static

Convert your WordPress site into a static one with the free WordPress static site generator plugin, Simply Static.
https://simplystatic.com
GNU General Public License v2.0
188 stars 48 forks source link

Export stuck fetching URL repeatedly #226

Closed howiempt closed 3 months ago

howiempt commented 3 months ago

Recently hit a weird issue where the Debug logs would just endless repeat the following:

[2024-06-04 08:52:51] [class-ss-wrapup-task.php:22] Deleting temporary files
[2024-06-04 08:52:51] [class-ss-task.php:44] Status message: [wrapup] Wrapping up
[2024-06-04 08:52:51] [class-ss-archive-creation-job.php:170] This task is done and there are no more tasks, time to complete the job
[2024-06-04 08:52:51] [class-ss-archive-creation-job.php:197] Completing the job
[2024-06-04 08:52:51] [class-ss-archive-creation-job.php:324] Status message: [done] Done! Finished in 00:04:03
[2024-06-04 23:42:17] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>
[2024-06-04 23:42:17] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/plugins/file/file.json
[2024-06-04 23:42:17] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image1.png
[2024-06-04 23:42:17] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image2.png
[2024-06-04 23:42:17] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image3.jpg
[2024-06-04 23:42:17] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image4.jpg
[2024-06-04 23:42:18] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>
[2024-06-04 23:42:18] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/plugins/file/file.json
[2024-06-04 23:42:18] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image1.png
[2024-06-04 23:42:18] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image2.png
[2024-06-04 23:42:18] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image3.jpg
[2024-06-04 23:42:19] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image4.jpg
[2024-06-04 23:42:19] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>
[2024-06-04 23:42:19] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/plugins/file/file.json
[2024-06-04 23:42:19] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image1.png
[2024-06-04 23:42:19] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image2.png
[2024-06-04 23:42:19] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image3.jpg
[2024-06-04 23:42:20] [class-ss-url-fetcher.php:251] Fetching URL: https://<wp-base-url>/wp-content/themes/ok/images/image4.jpg
...

It happened repeatedly (after stopping jobs with WP Crontol, clearing setttings, trying again). I ended up removing all my additional URLs thinking it had something to do with those as they had changed recently. I slowly added some back and then it just didn't happen again even after adding them all. I was looking at the logging in the code and can't see how it would even end up logging only those statements. No logging of "Fetching URL and saving it to: ", which should be logged right before that. In my successful logs it does log the expected statements. Given I can't reproduce it anymore I realise this is not super helpful but if it happens again I will update.

I even noticed a 20 minute gap where it just repeated the 'Fetching URL's across my Additional URLs for a few sets, which seemed to coincide with logging in and looking at the SS page (not running an export).

Running WP 6.4.4, SS 3.1.7 (updated from 3.1.5 and still happened).