s6_mike
Forum Replies Created
-
Forum: Plugins
In reply to: [HTTP Headers] Cannot save any settingsHi,
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.
BTW your plugin doesn’t show up for the search GTM in WP’s plugin search – which might be restricting your exposure.
Sounds good to me, thanks for taking so much trouble with your plugin.
Also if GTM appears in the head the <iframe> part of the code is meant to cause issues on IE so you might wish to warn your users of that.
Thanks for responding so quickly.
That sounds like a great solution.
Note that the plugin metronet tag manager’s solution is similar to your custom: you have to add a <?php do_action( ‘body_open’ ); ?> tag to the theme.
Perhaps you could use the same function for consistency? Would make it easier for me to switch to yours 🙂
I also saw a change request on WP’s code for a hook like this (while I was googling) which might be worth checking, but I don’t have the link handy.
Thanks,
Mike
Dear Yoast,
Now that Universal Analytics is to be the standard GA implementation, I would really like to know what your plans are for your GA plugin.
Following Google’s announcement my clients are looking to adopt Universal Analytics. So I need to decide whether to switch to another implementation, or wait patiently for you to switch your plugin to the Universal Analytics code.
That’s assuming your’re planning to do so – could you state what your plans are, even if they are currently vague?
I’d prefer to stick with your plugin, as it is the best GA for WP plugin, but obviously I can’t reassure my clients without knowing more.
Cheers,
Mike
I have exactly the same issue. Can anyone help?