16patsle / wordpress-csp-manager

WordPress plugin for configuring Content Security Policy headers for your site. Allows different CSP headers for admin, logged inn frontend and regular visitors.

Home Page:https://wordpress.org/plugins/csp-manager/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined $option['mode'] error

reatlat opened this issue · comments

I got errors on frontend debug mode

Notice: Undefined index: mode in /var/www/html/wp-content/plugins/csp-manager/src/CSP_Manager/Core.php on line 54 Notice: Undefined index: mode in /var/www/html/wp-content/plugins/csp-manager/src/CSP_Manager/Core.php on line 57 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/csp-manager/src/CSP_Manager/Core.php:54) in /var/www/html/wp-content/plugins/csp-manager/src/CSP_Manager/Core.php on line 74 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/csp-manager/src/CSP_Manager/Core.php:54) in /var/www/html/wp-content/plugins/headers-security-advanced-hsts-wp/headers-security-advanced-hsts-wp.php on line 79

Issue related to this line code

if ($option !== false && $option['mode'] !== 'disabled') {

Fixed in #7 (thanks!)