Hi,
I am getting the same issue – I want to turn on permissions policy but it errors on save even if I only tick
More details:
HTTP Headers Version 1.18.1
WordPress 5.6, Linux>/Apache 2.4.46, PHP 7.4 (PHP multi-admin, though my shared server says it is on PHP version 5.4.45 – I don’t know what the distinction is)
Have switched on WP-DEBUG, error message when I only tick Permissions-Policy ‘On’ and ‘accelerometer’: ‘none’ (have [Redacted] my server specific details):
Fatal error: Uncaught Error: Call to a member function switch_to_locale() on null in /[Redacted]/wp-includes/l10n.php:1665 Stack trace: #0 /[Redacted]/wp-admin/includes/misc.php(132): switch_to_locale(‘en_GB’) #1 /[Redacted]/wp-content/plugins/http-headers/http-headers.php(1272): insert_with_markers(‘/[Redacted]/p…’, ‘HttpHeaders’, Array) #2 /home1/[Redacted]/wp-content/plugins/http-headers/http-headers.php(755): update_headers_directives() #3 /[Redacted]/wp-includes/class-wp-hook.php(289): http_headers_option(‘cron’) #4 /home1/[Redacted]/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(false, Array) #5 /[Redacted]/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #6 /[Redacted]/wp-includes/option.php(486): do_action(‘updated_option’, ‘cron in /[Redacted]/wp-includes/l10n.php on line 1665
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about debugging in WordPress.
-
This reply was modified 3 years, 11 months ago by s6_mike.
-
This reply was modified 3 years, 11 months ago by s6_mike.