patrickposner
Forum Replies Created
-
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] TranslatePressHey @chugeno,
thanks for reaching out!
That is indeed only handled by the pro version of Simply Static.
We implemented a modified crawler that validates the meta tags added by TranslatePress (and other multilingual plugins) and automatically adds these pages to the export.However, you might get at least some progress on the issue by using the following code snippet:
add_filter('ss_match_tags', function( $match_tags ) {
$match_tags['link'] = array( 'href' );
return $match_tags;
});Hey @trenchy,
thanks for reaching out!
Look at the browser console – there should be an error message with further explanations.
Without further information, there are a couple of things that can cause this:- Old WP Version (SS requires at least 6.5
- Rest API disabled (we use that for our React-based settings page
- Gutenberg plugin activated (it’s experimental and often messes with older versions of components)
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Buttonlink to subpage do not workHey @gbicdmn,
thanks for reaching out!
I woulld recommend using the “Force URL replacements” setting in Simply Static -> Settings -> General -> Replace URLs
This should ensure that the button URL is updated as well.
Local Development:
One thing I want to mention is that we highly recommend using LocalWP instead of XAMPP if your are not comfortable touching the configuration files: https://docs.simplystatic.com/article/56-how-to-fix-problems-with-your-local-development-tool
Hey @ngocthulamphong,
thanks for reaching out!
That’s because some of the assets from your theme are missing on the static site.
I would recommend adding the entire assets folder (your-wp-path/wp-content/themes/wiso/assets/) in Simply Static -> Settings -> General -> Additional Files and Directories.
I would also add some other directories, to get rid of the 404 errors on the website:
– your-wp-path/wp-content/plugins/wiso-plugins/shortcodes/assets/
– your-wp-path/wp-content/plugins/js_composer/assets/Once done, re-run the export and everything should look fine.
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Only Copying the StartpageHey @berniq,
that makes a ton of sense.
We only support “pretty permalinks” and this should also be flagged as an error in Simply Static -> Diagnostics.
Because of the index.php part of the URL, Simply Static will automatically skip all URLs.
The recommended solution is to use pretty permalinks in WordPress, as this is also a common practice in general.
However, if you absolutely need to keep the URL structure for some reason, you can also use the following code snippet to whitelist PHP files:
add_filter( ‘ss_excluded_by_default’, function ( $excluded ) {
return array_diff( $excluded, array( ‘.php’ ) );
} );Thanks for confirming @zivcomp,
That’s probably the reason why we have Astra on our list of future integrations 😅
We had to get pretty creative with our Elementor (and Pro) integration to solve the same issue, and it seems we need to do the same if we want to offer real support for Astra.
- This reply was modified 1 year, 3 months ago by patrickposner.
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Activity Log weirdness@tremlas I wonder if that is related to the object cache purge we implemented here: https://github.com/Simply-Static/simply-static/blob/65958a69a432d261610dd8f61de99494f7401c7e/src/class-ss-plugin.php#L210
We now clear the object cache before running the static export to avoid cached results from our DB table.
While not needed on solid web servers, the increasing adoption of (sadly messy) Litespeed server setups forced us to get that into the plugin to fight the constant “cache-all-the-things” behaviour LS servers do to sell better performance.
Interesting @tremlas,
thanks for the update!
I’ll probably start recommending this approach instead, as unset() can be disabled on the hosting (network) level for security reasons—especially in an OOP context—so creating a new array and merging it is the more fail-safe approach!
Hey @zivcomp,
thanks for reaching out!
I’m by no means a pro regarding Astra, and their support team can probably deliver a better answer to this, but I would assume there is some automation happening in Astra, especially for mobile versions of the website.
Maybe they apply some minification/optimization to the output or conditionally exclude some scripts from the mobile version?
There might even be some caching optimized explicitly for the mobile version.
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Activity Log weirdnessHey @tremlas,
we increased the default batch size from 50 to 100 (for all tasks), which might be the reason for that.
You can modify that by using the filter shown here: https://docs.simplystatic.com/article/135-simplystatictasknamebatchsizeHey @crossy,
thanks for reaching out!
Take a close look at the URL and if there is a trailing slash at the end or not.
This issue is quite common and happens because of your “canonical” tag.Let’s say your WP website runs at https://old-url.com (also configured in WP under Site URL), but the canonical tag (often added by SEO plugins) points to https://old-url.com/.
This would result in the exact problem you’re facing right now, as the tag would tell Simply Static to add a 301 redirect instead of fetching the page’s content.
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Only Copying the StartpageHey @bernikuh,
thanks for reaching out!
Can you copy the content of the debug.txt file here,so we can dig in a bit further?
Here is how you can activate the debug log: https://docs.simplystatic.com/article/72-how-to-use-the-debugging-mode
Without context: Maybe your site is set to “no-index”? (In your admin area under Settings ->Reading)Hey @tremlas,
this one works just fine for me:
add_filter('ss_excluded_by_default', function( $excluded ) {
unset( $excluded['feed'] );
return $excluded;
});Can you double-check it?
Hey @tremlas found the problem and fixed it now: https://github.com/Simply-Static/simply-static/commit/2683d7f53759f4218f9a4ed11a42f004daa44fd2
The filter was implemented too early, so while the code snippet I recommended is the right approach to handling it, it was simply overwritten by the new feed addition. The next update will handle it appropriately.
Hey @tremlas,
we indeed added “feed” as a keyword to the excluded list for URLs unless the add feeds option is enabled:
// Exclude feeds if add_feeds is not true.
if ( ! $this->options->get( ‘add_feeds’ ) ) {
$excluded[] = ‘feed’;
}I have to do some testing, to see if it’s still happening if the option is enabled, but you can also remove it yourself with the following filter:
add_filter(‘ss_excluded_by_default’, function ($excluded) {
$excluded[] = ‘wp-json’;
$excluded[] = ‘.php’;
$excluded[] = ‘debug’;
return $excluded;
});