Currently it doesn’t seem to be possible to delete publications via CLI. Would it be possible to add a command for this? Or alternatively to have old publications deleted automatically. Currently old publications are piled up with no use.
]]>Hello!
First of all – great plugin. I tried it out on a smaller site and everything was working perfectly.
Now I have a problem with different site. I tried running the build process but it always gets stuck on like 95-98%. With each run I excluded some pages/paths that were generating errors. Now I’m down to 0 errors but the problem persists. After I run Build, the progress seems to be stuck on “crawling” at 95-98%. I’ve waited for an hour, but the progress is still the same. Even the numbers stays the same 21,792?/ ~22,515
Since there are no errors in the logs I have no idea on how to pinpoint the cause of this. There are also no errors in console. I see ajax requests being made and they all seem fine, just returning the same thing over and over again.
Any ideas on what could be causing this?
]]>I have statically generated WordPress website (with plugin called Staatic). I used option Offline Usage
which recommends to make static content to be run on local machine and static web hosting. But after I visit web root index.html and other index.html files (which are under directories with names of web pages), everytime it includes index.html at the end of each URL.
with index.html —> https://domain.com/index.html , https://domain.com/page-name-here/index.html
What I want is to remove /index.html at the each file URL. So it looks;
https://domain.com/page-name-here/index.html
WordPress is running on NGINX. WordPress, plugins are updated.
Any help to solve this issue would be appreciated.
]]>I use this plugin to host my blog on CF pages. My current workflow is deploy as zip, download and upload it manually.
Now when downloading as zip, the 404 page is downloaded as a folder root/404_folder/index.html
. When uploading to CF pages, it checks to 404 pages on the root folder, if it is not found it considers the upload as a single file application. This causes non-existing links to be redirected to home page instead of the 404 page. This causes a lot of SEO issue as there are duplicate contents.
Workaround for this issue, is before uploading move the 404page(folder/index.html) to root folder and rename it as 404.html
IS there any way to do it automatically, without me having to do the workaround, or without using GitHub
]]>I’m still getting errors while publishing although set Publication Task Timeout = 1000
Maybe I should set more or there is another reason?
12.09.2024 в 14:00 - Publication failed during initiate_deployment task
Task failed due to a timeout or fatal error; consider increasing "Publication Task Timeout" under Staatic > Settings > Advanced.
RuntimeException: Task failed due to a timeout or fatal error; consider increasing "Publication Task Timeout" under Staatic > Settings > Advanced. in /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/src/Publication/BackgroundPublisher.php:232
Stack trace: 0 /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php(235): Staatic\WordPress\Publication\BackgroundPublisher->task() 1 /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/src/Publication/BackgroundPublisher.php(148): Staatic\Vendor\WP_Background_Process->handle() 2 /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php(151): Staatic\WordPress\Publication\BackgroundPublisher->handle() 3 /home/blogger/web/blogger.com.ua/public_html/wp-includes/class-wp-hook.php(324): Staatic\Vendor\WP_Background_Process->maybe_handle() 4 /home/blogger/web/blogger.com.ua/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /home/blogger/web/blogger.com.ua/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 6 /home/blogger/web/blogger.com.ua/public_html/wp-admin/admin-ajax.php(207): do_action() 7 {main}
Hi Staatic –
I use your plugin on two sites. After updating to the July 4th update, I now get this error:
Fatal error: Declaration of Staatic\Vendor\Ramsey\Uuid\Uuid::getFields() must be compatible with Staatic\Vendor\Ramsey\Uuid\UuidInterface::getFields(): Staatic\Vendor\Ramsey\Uuid\Fields\FieldsInterface in /Users/mjb/Local Sites/c-wire-guide/app/public/wp-content/plugins/staatic/vendor/ramsey/uuid/src/Uuid.php on line 150
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Thanks for any insights you can provide
-Mandi
]]>Hi,
Suddenly, I am unable to publish. It gets stuck at “Preparing publication” and then this warning appears:
This process is taking longer than anticipated. Please consider restarting the publication or consulting our troubleshooting guide for assistance.
I have followed the troubleshooting guide by deactivating all plugins (except Staatic), decreasing logging verbosity to “No Logging,” and changing the HTTP concurrency value to 2.
This is running on a multisite setup, installed locally on a Windows 10 PC via XAMPP. It was working flawlessly before this. I don’t know why it suddenly stopped working.
Any guidance would be greatly appreciated. Thank you in advance.
]]>Howdy, I hope everyone’s day is going well.
Whenever I generate static files for my build, I have encountered an issue with the file path.
The homepage contains a business logo which, when converted into html, does not display the logo’s PNG file on my local machine (the build was created using LocalWP on Windows 11). Upon inspection (the html was viewed in both FireFox and Edge, and neither displayed the image), I determined that the image is not displaying in either browser.
During file generation, I received this error:
2024/05/21 at 12:22 pm – Crawl ‘https://urbanbirdservices.local/wp-content/uploads/2024/03/elementor/thumbs/UBS-Logo-2024-02-06-High-Quality-Cornerless-qlggdi1juyf9cleg0psnukzxka2r3my325cxh7weie.png’ rejected (Client error: GET https://urbanbirdservices.local/wp-content/uploads/2024/03/elementor/thumbs/UBS-Logo-2024-02-06-High-Quality-Cornerless-qlggdi1juyf9cleg0psnukzxka2r3my325cxh7weie.png resulted in a
404 Not Found` response: <link rel=”profile” href=”https://gmpg. (truncated…) ) (found on https://urbanbirdservices.local/404_not_found/)
I discovered that the PNG file had been renamed to something much different then what I uploaded the file to WordPress (the PNG had been renamed to the one mentioned in the error above), and the file’s name had about 40 additional random characters appended to its original name. When the name of the PNG was changed to something short like ‘Logo.png’ and the file path edited to match, the image displayed properly (‘logo.png’ was not the original name of the image file, as the original name is the one listed in the error, sans additional characters). This seems to me to be an issue with the file path being too long, a consequence of the PNG file being renamed.
While I could leave it at that for this particular instance of the error, I have this same PNG file referenced throughout the website, and the file paths are all broken as a result. It seems to me that the solution should be to prevent this png’s file rename from being excessively long either prior to or during static generation, but I’m not sure if the issue comes from Staatic’s generation process or WordPress prior to giving the PNG over to Staatic. Does anyone else have this issue? Is there a known solution?
Plugins Used:
-Staatic
-Elementor
-Yoast SEO
-Elementor Header & Footer Builder
Settings:
-built on LocalWP
-Web server: Apache
-PHP version: 8.3.0
-Wordpress version: 6.5.3
Thanks in advance!
]]>Hello everyone,
My WordPress site is privately hosted on a device on my home network, with a firewall to only allow my IP address to access it. I am using Staatic to publish it to github pages. I now have enough posts that the Pagination block of the Query Loop is active. However, when Staatic crawls and then publishes the site, the Pagination does not work. It looks like it is doing a URL change/update, but still using the query string of the original link, which won’t work as there is no server to respond to the query.
Has anyone got this working previously? Or know of any tricks/settings to get Staatic to interpret these query strings, and update them with a static link, and rendering of the next page?
]]>I am not so sure about the option “Page Not Found Path” in the Advanced tab. I am using the default “/404_not_found/”. After I published the site to Netlify and visited a non-existence page on the live static site, it doesn’t show the 404 page that I was seeing in my dynamic site. I can see these lines in netlify.toml…
[[redirects]]
from = "/*"
to = "/404_not_found/"
status = 404
force = false
…but I don’t see any folder named “404_not_found” in the publication. Is this a bug?
]]>Hi everyone,
I am using the Staatic plugin to host an old blog that I have. Everything works fine, but my blog permalinks end with .html because I migrated it from Blogger to WordPress a few years ago.
Due to the .html permalinks, the statically generated files follow the schema /year/month/blog-post.html/index.html. So when I publish my site, the URL adds a “/” at the end, making my static page URL look like this: /year/month/blog-post.html/. I’m unsure if this causes any problems with SEO. Can you please fix this?
Best regards,
Edson Luiz Candido
Rolled back from broken version 1.9.0 to perfect version 1.7.0.
My website (over 400 pages) is hosted on WordPress 6.4.3 and uses Elementor 3.19.2 and Elementor Pro 3.19.2.
Here is Example #1 from the Log Summary for version 1.9.0:
22.02.2024 в 14:44 - Crawl 'https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor/assets/css/admin-rtl.css' rejected (Server error:
GET https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor/assets/css/admin-rtl.css
resulted in a500 Internal Server Error
response: <html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></cente (truncated...) ) (found on ) 22.02.2024 в 14:47 - Crawl 'https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/instant-page/instant-page.min.js' rejected (Server error:GET https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/instant-page/instant-page.min.js
resulted in a500 Internal Server Error
response: <html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></cente (truncated...) ) (found on ) 22.02.2024 в 14:47 - Crawl 'https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/lottie/lottie.js' rejected (Server error:GET https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/lottie/lottie.js
resulted in a500 Internal Server Error
response: <html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></cente (truncated...) ) (found on ) 22.02.2024 в 14:47 - Crawl 'https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/lottie/lottie.min.js' rejected (Server error:GET https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/lottie/lottie.min.js
resulted in a500 Internal Server Error
response: <html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></cente (truncated...) ) (found on ) 22.02.2024 в 14:47 - Crawl 'https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/smartmenus/jquery.smartmenus.js' rejected (Server error:GET https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/smartmenus/jquery.smartmenus.js
resulted in a500 Internal Server Error
response: <html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></cente (truncated...) ) (found on ) 22.02.2024 в 14:47 - Crawl 'https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/smartmenus/jquery.smartmenus.min.js' rejected (Server error:GET https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/smartmenus/jquery.smartmenus.min.js
resulted in a500 Internal Server Error
response: <html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></cente (truncated...) ) (found on ) 22.02.2024 в 14:47 - Crawl 'https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/sticky/jquery.sticky.js' rejected (Server error:GET https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/sticky/jquery.sticky.js
resulted in a500 Internal Server Error
response: <html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></cente (truncated...) ) (found on ) 22.02.2024 в 14:47 - Crawl 'https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/sticky/jquery.sticky.min.js' rejected (Server error:GET https://sitetest.com/%5Cwp-content%5Cplugins%5Celementor-pro/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor-pro/assets/lib/sticky/jquery.sticky.min.js
resulted in a500 Internal Server Error
response: <html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></cente (truncated...) ) (found on )
And another Example No. 2 from Log Summary for version 1.9.0:
22.02.2024 в 15:42 - Publication failed during deploy task
Staatic\Vendor\Symfony\Component\Filesystem\Exception\IOException: Failed to create "C:/OSPanel/domains/sitetest.com/wp-content/uploads/staatic/staging/\wp-content\plugins\elementor/assets/C:/OSPanel/domains/sitetest.com/wp-content/plugins/elementor/assets/css": mkdir(): No such file or directory in C:\OSPanel\domains\sitetest.com\wp-content\plugins\staatic\vendor\symfony\filesystem\Filesystem.php:69
Stack trace:
#0 C:\OSPanel\domains\sitetest.com\wp-content\plugins\staatic\vendor\staatic\framework\src\DeployStrategy\FilesystemDeployStrategy.php(196): Staatic\Vendor\Symfony\Component\Filesystem\Filesystem->mkdir()
#1 C:\OSPanel\domains\sitetest.com\wp-content\plugins\staatic\vendor\staatic\framework\src\DeployStrategy\FilesystemDeployStrategy.php(170): Staatic\Framework\DeployStrategy\FilesystemDeployStrategy->storeFile()
#2 C:\OSPanel\domains\sitetest.com\wp-content\plugins\staatic\vendor\staatic\framework\src\StaticDeployer.php(73): Staatic\Framework\DeployStrategy\FilesystemDeployStrategy->processResults()
#3 C:\OSPanel\domains\sitetest.com\wp-content\plugins\staatic\src\Publication\Task\DeployTask.php(53): Staatic\Framework\StaticDeployer->processResults()
#4 C:\OSPanel\domains\sitetest.com\wp-content\plugins\staatic\src\Publication\BackgroundPublisher.php(249): Staatic\WordPress\Publication\Task\DeployTask->execute()
#5 C:\OSPanel\domains\sitetest.com\wp-content\plugins\staatic\vendor\deliciousbrains\wp-background-processing\classes\wp-background-process.php(235): Staatic\WordPress\Publication\BackgroundPublisher->task()
#6 C:\OSPanel\domains\sitetest.com\wp-content\plugins\staatic\src\Publication\BackgroundPublisher.php(147): Staatic\Vendor\WP_Background_Process->handle()
#7 C:\OSPanel\domains\sitetest.com\wp-content\plugins\staatic\vendor\deliciousbrains\wp-background-processing\classes\wp-background-process.php(151): Staatic\WordPress\Publication\BackgroundPublisher->handle()
#8 C:\OSPanel\domains\sitetest.com\wp-includes\class-wp-hook.php(324): Staatic\Vendor\WP_Background_Process->maybe_handle()
#9 C:\OSPanel\domains\sitetest.com\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters()
#10 C:\OSPanel\domains\sitetest.com\wp-includes\plugin.php(517): WP_Hook->do_action()
#11 C:\OSPanel\domains\sitetest.com\wp-admin\admin-ajax.php(188): do_action()
#12 {main}
]]>
Is it possible to use FTP as a deployment method?
I’m thinking of installing WordPress Multi-Site on one server and then publishing each site to another server via FTP.
]]>I would like to add custom code to the .htaccess file which is located in the target directory. Each time I publish the site, the modified .htaccess got replaced (I have enabled “Generate .htaccess file providing actual HTTP redirects, HTTP status overrides, etc.”). I am wondering is it possible to add a new option in Staatic to include my custom code when I publish my site?
]]>Trying to get started with the plugin for a site on a multisite installation. Tried to create a publication and got “Publication failed during initialize_crawler task” with urls mentioned and the message: “WordPress database error: Processing the value for the following field failed: url. The supplied value may be too long or contains invalid data.”
Is there a way to get past this?
Thanks.
]]>Kia ora team, hope everyone is well.
Here’s the scenario 1.
I create a new post, do Publish changes (on the Paid plugin), works great. However, this new post is also listed on the Homepage (as a recent post) and on other pages (like related posts). In order to update those pages I have to publish everything. Any solution for publishing those pages as well without doing a full publish?
Either I only thought about it or emailed you regarding my second issue where my website creates Taxonomy terms when a new page is added. When publishing changes only, it only publishes the post similar to the first scenario.
A bit more context to it.
I have a listing website. When a new listing is created for example “ABC Plumbers Limited”. I get the categories they have chosen then create/update terms for my “location” taxonomy.
For instance, “ABC Plumbers Limited” is based in “Auckland” and they have chosen the “Plumber” and “Gasfitter” categories. I then create/update two terms in the custom Taxonomy and the terms are called “Plumber Auckland” and “Gasfitter Auckland”.
I run into the same issue with Publish changes it only publishes the listing, not the new/updated terms in the taxonomies.
Wondering if there’s any solution for updating the pages where the posts are shown (homepage & related for example) and the terms created (or updated) without doing a full publish?
If there’s currently nothing, what are the chances of adding the feature to the paid plugin?
Thanks
Raza
]]>I want robots.txt to be available on Publishing. But I am getting an Error as below
Crawl 'https://localhost/agi/robots.txt' rejected (Client error:
GET https://localhost/agi/robots.txt
resulted in a404 Not Found
response: <!DOCTYPE html> <html lang="en-US" prefix="og: https://ogp.me/ns#"> <head> <meta charset="UTF-8"> <meta name="viewpo (truncated...) ) (found on )
Kindly let me know how to Include files
Thanks
]]>Hi team Staatic!
We are really happy with your plugin but we have one thing that doesn’t work for us and we are wondering if there is a solution.
We schedule posts in advance, to go online in a day, a week or whenever. The posts are published on time but the static site is not generated.
Is this possible at all? Did we miss a setting? Can you please advice?
Thanks
Trying to deactivate version 1.4.4 causes a critical error on my site:
Fatal error: Uncaught RuntimeException: Unable to unschedule event 'twicedaily'; event does not exist in \wp-content\plugins\staatic\src\Service\Scheduler.php:37 Stack trace: #0 \wp-content\plugins\staatic\src\Deactivator.php(37): Staatic\WordPress\Service\Scheduler->unschedule() #1 \wp-content\plugins\staatic\src\Deactivator.php(28): Staatic\WordPress\Deactivator->unscheduleEvents() #2 \wp-content\plugins\staatic\staatic_load.php(43): Staatic\WordPress\Deactivator->deactivate() #3 \wp-content\plugins\staatic\staatic_load.php(55): {closure}() #4 \wp-includes\class-wp-hook.php(308): staatic_deactivate() #5 \wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters() #6 \wp-includes\pl in \wp-content\plugins\staatic\src\Service\Scheduler.php on line 37
]]>
My site uses minify html code:
<p>Example-1</p><p>Example-2</p><p>Example-3</p>
Your plugin invalidates minify html code:
<p>Example-1</p>
<p>Example-2</p>
<p>Example-3</p>
How to make “Staatic” save minify html code?
]]>Version 1.4.2 worked fine!
Delivered 1.4.3 – problems began ??
Changed the “Publication Task Timeout” from 60 seconds to 300 and the Staatic 1.4.3 was resurrected ?? !
]]>Why does Staatic replace Cyrillic with other characters in HTML code?
https://ru.paste.pics/7cbe657142a69af80f05d66a9369ae54
How to fix it?
]]>Hi,
I am trialling the premium version of the plugin and have enabled “Automatically schedule a publication when a post is saved”.
The automatically published page does not get the latest edit. Full publications work fine.
We use the Elementor plugin for building pages. When I make an edit via Elementor, and click “Update”, I see that the Staatic publication crawler is started before the Elementor update has even completed, so I guess something is being triggered a little early.
Any idea of what could be the problem, or config that I can change? I’ve had a look at events and hooks of both plugins, but nothing jumps out at me.
Thanks,
Jon
]]>Our wordpress installation uses the EWWW Image Optimizer plugin to generate and configure different versions of uploaded images. It uses srcset
attribute to allow the client to choose which version to display based on screen width. The different versions end up as sibling files to the original in the uploads directory.
I am using Staatic Premium v1.4.2.
I have Staatic Settings > Build configured with Additional Paths /var/www/html/wp-content/uploads/ (the default)
However, the images aren’t making it to the S3 deploy location. I see a bunch of info logs such as:
Deletion of stale file wp-content/uploads/2022/11/PerformanceUpdate-Ls-1536×864.jpeg was successful
I’m not sure what the expected behaviour is; is everything under Additional Paths supposed to be synced, or only if the crawler reaches it?
I have been manually syncing the uploads dir to S3, but just wondering if there’s a way to disable the deletion?
]]>Hi,
I get the following error message after about 20mins and ~30% of the way through crawling during a publication:
Background processing: time exceeded.
At that point, it seems as though no more pages can be successfully crawled.
This did not happen in a test environment. One thing that is different is that this env (production) is also serving production traffic, so there’d be more load on the servers, although looking at CPU and memory usage, it seems like there’s plenty of capacity.
The other difference (from testing) is that there are 2x servers on the backend, not sure if that is affecting anything. The uploads directing is shared between the two servers, so they should be seeing the same data (and same MySQL DB).
]]>Hi guys, trying to setup staatis on s3 website bucket and cloudfront
i got everything running now i have the issue that .css and .js files are used with /index.html at the end of the link
aws is autmatically adding /index.html to every file and block the frrontend from loading
is there any fit to this?
Thanks!
]]>I am getting “Target URL domain is outside the website URL domain (in “potentialAction.target”)” error in the search console. I configured staatic plugin as mentioned. Kindly let me know how to resolve it.
thanks
]]>is it possible to generate single static page using staatic ? single page and only its resources instead of all media. this is important for using wp as a static page generator
]]>Hi, love the plugin.
I have one issue and that is with the redirect URL when clicking the site logo. The static version of the site appears to be keeping the existing URL and not updating it.
All other links on the site and the menu are updating perfectly, it’s just the URL used in an A-tag when converting to a static site.
I’m using the plugin on a WordPress multi/sub-site in the subdirectory format. Again, everything is fine apart from this one link and it’s not possible to change the theme header since that will update all sub-sites using that theme.
]]>hello . my publication stalls ar abt 95% , no errors
]]>