Hi,
Thanks for sharing the details. Since this is a 500 server error, could you please check whether any fatal errors are being generated in the server error logs or wp-content/debug.log?
Please also share:
- your current PHP version
- any relevant error log entries related to Kirki or the affected pages
Please remove any sensitive information before posting logs publicly.
Thread Starter
Boris
(@ispacecrusader)
Hi @parag44 – thanks for your help!
– Debug.log shows only deprecation messages, and nothing Kirki-related
– this is what was found in the server log: Request exceeded the limit of 10 internal redirects
due to probable configuration error. Use ‘LimitInternalRecursion’ to increase. this led us to the htaccess file initially.
the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.
– PHP version: 8.3.31
Hi @ispacecrusader
Thanks for checking the logs.
The message Request exceeded the limit of 10 internal redirects usually points to a rewrite/permalink loop in .htaccess, rather than a direct PHP fatal error from Kirki.
Kirki itself does not normally write or manage .htaccess rules. In many themes, Kirki is only used as the framework for Customizer fields, while the theme registers and handles the actual settings. So this may be coming from the Sober theme, WPML, or another integration that runs when Kirki is active.
Could you please try the following?
- Back up your current
.htaccess file.
- With Kirki active, go to Settings > Permalinks and click Save Changes.
- Compare the regenerated
.htaccess file with the working version.
- Temporarily switch to a default WordPress theme, such as Twenty Twenty-Four or Twenty Twenty-Five, while keeping Kirki active.
- Temporarily deactivate WPML and its related add-ons, then test the affected pages again.
- Temporarily deactivate all plugins except Kirki and WooCommerce, then test again.
Please let me know the update after checking these.
Thread Starter
Boris
(@ispacecrusader)
Hi @parag44 ,
Thank you. I will run those tests. But it will take a bit of time, especially changing the theme, since I don’t want to risk losing widgets. I will run the tests next week, and let you know.
Thread Starter
Boris
(@ispacecrusader)
Hi @parag44,
I’ve run all the tests. The results:
1. after replacing htaccess, activating kirki and saving permalinks, the error is back.
2. Compared htaccess files. Two lines have been added:
RewriteBase /fr/
RewriteRule . /fr/index.php [L]
3. Switched to 2024. The error remains.
4. disabled all plugins except Kirki and WooCommerce. The error is gone.
5. Switched back to Sober theme. The error still gone.
6. Re-enabled plugins one by one. The error returns when I activate WPML.
7. Disabled Kirki again, and the error is gone again.
8. I’ve manually edited htaccess and replaced the /fr/ entries with standard WordPress ones. Then the error disappears again. For a few minutes, then it’s back because the htaccess file has been changed again.
So it looks like the issue is somewhere in the compatibility of Kirki and WPML. What do you think?
-
This reply was modified 1 week, 5 days ago by
Boris.
Thread Starter
Boris
(@ispacecrusader)
I see several “flush_rewrite_rules” in the Kirki plugin. Perhaps that is causing it?
Looks like Kirki is repeatedly flushing permalinks while WPML’s current language context is /fr/.
For now, I’ve manually updated htaccess and set its permissions on 444. But that’s not the ideal situation.
-
This reply was modified 1 week, 5 days ago by
Boris.
Hello @ispacecrusader ,
Thanks for narrowing this down so thoroughly. Your observation is reasonable. Since the issue reappears after WPML rewrites the .htaccess file, it suggests a permalink rewrite conflict. We will review this internally and investigate what to do in this scenario.
Thread Starter
Boris
(@ispacecrusader)
Thank you @urnafiz. I will keep the workaround in place for now and await your findings.