Warning: Use of undefined constant
-
Hello,
in my developement environment I got this warnings:
Warning: Use of undefined constant WPF2B_EVENT_COMMENT_CLOSED – assumed ‘WPF2B_EVENT_COMMENT_CLOSED’ (this will throw an Error in a future version of PHP) in G:\Repositories\bla\wp-config.php on line 11
Warning: Use of undefined constant WPF2B_EVENT_COMMENT_DRAFT – assumed ‘WPF2B_EVENT_COMMENT_DRAFT’ (this will throw an Error in a future version of PHP) in G:\Repositories\bla\wp-config.php on line 11
Warning: Use of undefined constant WPF2B_EVENT_COMMENT_TRASH – assumed ‘WPF2B_EVENT_COMMENT_TRASH’ (this will throw an Error in a future version of PHP) in G:\Repositories\bla\wp-config.php on line 11
Warning: Use of undefined constant WPF2B_EVENT_COMMENT_CLOSED – assumed ‘WPF2B_EVENT_COMMENT_CLOSED’ (this will throw an Error in a future version of PHP) in G:\Repositories\bla\wp-config.php on line 11
Warning: Use of undefined constant WPF2B_EVENT_COMMENT_NOT_FOUND – assumed ‘WPF2B_EVENT_COMMENT_NOT_FOUND’ (this will throw an Error in a future version of PHP) in G:\Repositories\bla\wp-config.php on line 11
It’s very annoying because the half page is only showing warnings.
My wp-config.php looks like:
<?php /** determine environment */ define('DEV_ENV', file_exists('dev-config.php')); /** Enable W3 Total Cache */ define('WP_CACHE', DEV_ENV); // Added by W3 Total Cache /** wp-fail2ban */ define('WP_FAIL2BAN_AUTH_LOG', LOG_AUTHPRIV); define('WP_FAIL2BAN_BLOCKED_USERS', ['admin', 'root', 'user', '[login]', 'administrator']); define('WP_FAIL2BAN_LOG_COMMENTS_EXTRA', WPF2B_EVENT_COMMENT_CLOSED | WPF2B_EVENT_COMMENT_DRAFT | WPF2B_EVENT_COMMENT_TRASH | WPF2B_EVENT_COMMENT_CLOSED | WPF2B_EVENT_COMMENT_NOT_FOUND); /* ... and so on... */
Is my wp-config wrong?
- The topic ‘Warning: Use of undefined constant’ is closed to new replies.