How to Fix WordPress Not Saving Settings?

How Can I Manually Fix What is The Root Cause?

The Site Language setting in Settings General for my site, will not update.

It is stuck on English (United States).

I have done all the usually debugging procedures, such as disabling all my plugins etc, reinstalling WordPress etc. But the issue remains.


Q: What is the best way to manually fix this, and what is the root cause of the issue likely to be?

Topic bug language options wp-admin customization Wordpress

Category Web


A possible source to the problem is the Divi theme, which applies its own translation settings. Try to go to Divi → Theme Options → General → Disable Translations and make sure that they are disabled and then recheck.

Workaround

Another way to fix this problem is by adding this snippet to your functions.php file:

function setLocale($locale) {
    return ‘LANGUAGE CODE’;
}
add_filter(‘locale’, ‘setLocale’);

I had the same problem and in my case the reason why it didn't work was that:

  • I use Divi

  • in functions.php Divi has function et_divi_maybe_change_frontend_locale and it returns 'en_US' by default.

Just change 'en_US' to your language. Remember to use a child theme if you're modyfying functions.php

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.