• I just installed your plugin and after a few minutes of reading and testing everything seems to work fine. Thank you for that!

    No when visiting my site, I see for a short moment an error message saying: “Warning: Undefined array key “Permissions-Policy” in /wp-content/plugins/security-header-generator/work/inc/kcp-cspgen-headers.php on line 326

    I’m working on WordPress 6.1.1 and you plugin 3.6.02.

    Is it a bug or did I do anything wrong? Thank you in advance for any hint!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Pirnie

    (@kevp75)

    Neither. Well, mostly neither. looks like your hosting may have the PHP error reporting set to show everything. What the warning means is that I just need to add another check to see if it’s set or not.

    For now, you can try adding these 2 lines to your wp-config.php file and see if the message goes away:

    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    Thread Starter Stephan Kockmann

    (@teescout)

    Thank you for your quick answer! I deactivated “Permissions Policy” for now. I don’t dare to edit the wp-config.php at the moment. So I will wait for the next update, which hopefully will make the error message disappear. 🙂

    Plugin Author Kevin Pirnie

    (@kevp75)

    fixed in v3.6.11

    Committed to WP, just need to wait for it to filter the update out.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error message on loading site’ is closed to new replies.