Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined $option['mode'] error #6

Closed
reatlat opened this issue Jul 24, 2022 · 1 comment
Closed

Undefined $option['mode'] error #6

reatlat opened this issue Jul 24, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@reatlat
Copy link
Contributor

reatlat commented Jul 24, 2022

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') {

@16patsle
Copy link
Owner

16patsle commented Aug 9, 2022

Fixed in #7 (thanks!)

@16patsle 16patsle closed this as completed Aug 9, 2022
@16patsle 16patsle added the bug Something isn't working label Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants