Team Staatic
Forum Replies Created
-
Forum: Plugins
In reply to: [Staatic - Static Site Generator] Error when save changes in Deployment tabVery nice to hear. Hopefully it will be a smoother experience from now on. Also, please don’t hesitate to open another topic if you have any other questions.
Forum: Plugins
In reply to: [Staatic - Static Site Generator] Error when save changes in Deployment tabHi Ben, thanks for giving Staatic a try. We’re sorry you are running into these errors.
It appears that Local by default doesn’t define the security keys in your
wp-config.phpfile (see https://developer.wordpress.org/apis/wp-config-php/#security-keys). Can you try adding the lines from this URL to yourwp-config.phpfile?https://api.wordpress.org/secret-key/1.1/salt/
This sets up the WordPress security keys and will immediately improve the security of your dynamic WordPress site. Once the lines are included, try saving the settings again and hopefully everything will work as expected.
In the next release of the plugin we will make sure to take this situation into account to prevent any errors even when the keys are not defined.
Looking forward to your response.
Hi @seyisulu, thanks for giving Staatic a try to speed up and secure your site. We’re very sorry to hear that you are having difficulties generating the static version of your site.
In order to resolve the issue, can you please provide us with a diagnostics JSON file? This file can be generated by going to
/wp-admin/admin.php?staatic=diagnosticsand may be sent to contact@staatic.com. It contains some environment information that helps us troubleshoot the issue (feel free to open it in a text editor to verify).Also, what happens if you start a new publication?
Looking forward to your feedback.
Thanks!
Forum: Plugins
In reply to: [Staatic - Static Site Generator] SVG issues?Hi @razakhadim,
Data URLs including SVG like the one mentioned should be supported by Staatic, however in this case it looks like the URL was not correctly matched or there may be an error in the HTML document. In any way it should not have generated this type of error so that’s definitely something that needs to be fixed.
Could you send us a copy of the original HTML of the page containing this fragment (from the dynamic WordPress site) to contact@staatic.com? We will then try to reproduce the issue and implement a fix.
Thanks!
Forum: Plugins
In reply to: [Staatic - Static Site Generator] Absolute path redirectsIt appears that Elementor will not open popups when the link href does not start with a fragment (#). We have updated the code responsible for processing links and released a new development version available here:
https://wordpress.org/plugins/staatic/advanced/
From that page scroll down to Advanced Options and select the Development Version to download it.
Can you check whether this version fixes the issue for you?
Also, you may want to add an additional path in the plugin Settings screen under the Build tab:
* /path/to/wp-content/plugins/elementor/assets/
This will ensure that all Elementor assets are included in the build. We will improve this in a future release by detecting Elementor and including these automatically.
Looking forward to your feedback.
Forum: Plugins
In reply to: [Staatic - Static Site Generator] Absolute path redirectsWe have just released an update of the plugin (v1.2.2) which adds a new filter hook
staatic_netlify_config_extra. This can be used to inject additional configuration to the netlify toml file.This does require some code, but can be easily achieved by adding the following to your theme’s
functions.phpfile or by creating a file in themu-pluginsfolder, e.g.staatic_netlify.php:add_filter('staatic_netlify_config_extra', function ($extraConfig) { return $extraConfig . <<<EOD # extra domain-level redirects [[redirects]] from = "http://myapp.netlify.app/*" to = "https://myapp.com/:splat" status = 301 force = true [[redirects]] from = "https://myapp.netlify.app/*" to = "https://myapp.com/:splat" status = 301 force = true EOD; });Please let me know if this solution works well for you.
- This reply was modified 3 years, 9 months ago by Team Staatic.
- This reply was modified 3 years, 9 months ago by Team Staatic. Reason: Fix code formatting
- This reply was modified 3 years, 9 months ago by Team Staatic. Reason: Fix code formatting
- This reply was modified 3 years, 9 months ago by Team Staatic. Reason: Fix code formatting
Forum: Plugins
In reply to: [Staatic - Static Site Generator] Absolute path redirectsHi @razakhadim, first of all thanks for using Staatic!
Regarding your request, what you are trying to achieve appears to be related to Netlify’s domain-level redirects functionality (https://docs.netlify.com/routing/redirects/redirect-options/#domain-level-redirects) allowing you to redirect all traffic from your site’s netlify.app domain to your custom domain, is that correct?
This is currently not supported using the “Additional Redirects” setting since such redirects are expected to have the same origin as the static site and are therefore path-based. It would still make sense to support this use case though, so we will have to think what the best approach to achieve this would be.
If you can confirm whether I understand your request correctly, I will discuss this with the team and we can see if we can find a way to make this use case possible in a future release of the plugin.