patrickposner
Forum Replies Created
-
100% agree, let’s go with all these recommendations! ๐ช
- add a filter to bring back clearing up after the export with a simple flag (true/false)
- add a button to quickly clear the dir inside Utilities
- auto-clear the directory on deactivation
And thanks for the shoutout, btw! ๐
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Typesense Compatibilitythat would be great – please keep me updated!
If that works out of the box, we happily add that to our “supported plugins” database (on the website and inside the plugin!)
we do a lookup for both and run an array_intersect() to catch boths (Now that I think about it, we might want to change that!)
Hey @madtownlems,
that’s indeed the case!
We had to modify the behaviour here (that’s why the wrap up task still contains the comment).
Perhaps we can add a filter here to re-enable this option on the wrap-up task, allowing both choices.The primary reason for this was runtime generated files – these were often missing inside the static export because we already cleared the temporary directory, so we had to find a way to ensure all files get included.
A couple of examples:
- RankMath (and most other SEO plugins, really) generates the robots.txt and llms.txt files on request, not as physical files – so we have to fetch them outside of our main crawler and manually add them to the temporary directory.
- additional configuration files generated by cookie consent plugins (like Complianz) – they generate a JSON file containing the possible consent combinations (also on runtime)
There are, for sure, some other edge cases I’m missing here!
I’ll leave a note, and we’ll add a filter to bring back the original behavior.
Cheers,
PatrickHey @madtownlems,
happy to help!
We haven’t fully updated the documentation around the Enhanced Crawl feature (just because Scott got tired of keeping up with all the changes related to it as I’m pushing some minor improvements in almost every release! ๐ )
We have a bunch of filters you can use here:
Post Types:add_filter('simply_static_post_types_to_crawl', function( $post_types ) {
unset( $post_types['post'] ); // $post types is an array that contains the names of all the post types included.
return $post_types;
});Plugins:
This one still needs a filter – it was introduced in the last update (but only for Pro users) with an option to manage it inside the Enhanced Crawl settings. However, I’m happy to add a dedicated filter for this as well.
What you can already do is exclude directories inside each plugin (like /node_modules/ or /git/) like this:
add_filter('ss_skip_crawl_plugin_directories', function( $excluded_dirs ) {
$additional_dirs = ['node', 'vue'];
return array_merge( $excluded_dirs, $additional_dirs );
});Let me follow up here as well, once the new filter is implemented!
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Export Filename SuggestionsHey @madtownlems,
thanks for reaching out!
I was 99% sure there was a filter for that, but it turns out there isn’t one! ๐
Let me add one, and I’ll come back to you with an example that produces your desired filename structure!
Cheers,
PatrickForum: Plugins
In reply to: [Simply Static - The Static Site Generator] Typesense CompatibilityHey @jamesjosephfinn,
thanks for reaching out!
I’ll put that on my backlog for testing.
While Algolia works, I’m also not particularly happy with their latest developments.The pricing approach was always somewhat opaque, but the recent SDK changes and the requirement to have at least PHP 8.1 have made it even more challenging, as we still have many users working with PHP 7+.
Did you run a test with that? I wonder if it just works?
Cheers,
Patrick@madtownlems I don’t want to sound like Chat-GPT, butโฆ you’re absolutely right! ๐
We get that fixed ASAP and ship that with the next update – thanks for the heads-up!
Cheers,
PatrickForum: Plugins
In reply to: [Simply Static - The Static Site Generator] Plugin not generating html filesHey @vabrol,
happy to help!
Did you follow the steps here: https://docs.simplystatic.com/article/72-how-to-use-the-debugging-mode
If so, can you copy and paste the content of the debug file?
That will help a lot in recommending steps to fix it.Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Suspicious function foundHey @vraisa,
thanks for heads-up!
Happy to get that removed in the next update – we had it to support some PHP 7.2 environments, but since we upped the minimum version to 7.4 a while ago, it’s no longer needed.
Should be gone with the next update!
Cheers,
Patrick@schmoewordpress Alles klar!
Kรถnntest du uns mal eine E-Mail an [email protected] schicken mit Zugangsdaten fรผr WP und FTP?
Damit sollten wir in der Lage sein das Problem zu finden und einen passenden Patch zu entwickeln!
Hey @schmoewordpress,
thanks for reaching out!
I assume you are using the local directory export and you export it to your own server, right?
I’m having a hard time replicating it locally and on our testing environments, but we also don’t use anything besides UTF-8 for encoding the content.
So this is most likely produced by the server trying to force their own encoding here (as we no longer deal with UTF-8 conversion inside Simply Static – it’s just too much work to adapt to each and every language).Can you please test the following fix I just committed to our repository?
Here is the link: https://github.com/Simply-Static/simply-static/commit/1484b424e71178764f36c0938e99d70d4a18d189@drcq Okay, I worked on a solution for this and pushed it now: https://github.com/Simply-Static/simply-static/commit/8ab3e866aa74737bd7caa7be881c89e1be2b11ef
This will be included in the next update and should handle your problem accordingly.
We switched to stream mode a while ago (to allow parallel processing = much faster exports).
Still, it turns out not all servers support this (especially older or less maintained machines) – now it simply falls back to the old approach if we detect 0-byte files.
Hey @kywong85,
not sure what you have installed, but this endpoint isn’t used by Simply Static nor by Simply Static Pro.
You might have either installed another plugin or used one from an unofficial source – our Cloudflare Deployments work via our GitHub integration.