Http Headers + WPML = Crash
-
Hi,
Once again I get a crash when I use HTTP Headers with WPML, editing an
Access-Control-Allow-Origin rule.
It Works when I deactivate WPML.Here’s the message :
Fatal error: Uncaught Error: Call to a member function switch_to_locale() on null in /var/www/html/wp-includes/l10n.php:1665 Stack trace: #0 /var/www/html/wp-admin/includes/misc.php(132): switch_to_locale(‘en_US’) #1 /var/www/html/wp-content/plugins/http-headers/http-headers.php(1181): insert_with_markers(‘/var/www/html/….’, ‘HttpHeaders’, Array) #2 /var/www/html/wp-content/plugins/http-headers/http-headers.php(670): update_headers_directives() #3 /var/www/html/wp-includes/class-wp-hook.php(289): http_headers_option(‘_transient_time…’) #4 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #5 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #6 /var/www/html/wp-includes/option.php(625): do_action(‘added_option’, ‘_transient_time…’, 1598132862) #7 /var/www/html/wp-includes/option.php(884): add_option(‘_transient_time…’, 1598132862, ”, ‘no’) #8 /var/www/html/wp-content/plugins/wpml-string-translation/classes/upgrade/class-wpml-st-upgrade.php(225): set_transient(‘wp in /var/www/html/wp-includes/l10n.php on line 1665
- The topic ‘Http Headers + WPML = Crash’ is closed to new replies.