Solid Security causing duplicate entry and blocking dashboard login?
-
Hi, it’s my first time posting here and I’m not a professional IT person – just an administrator in charge of updating a wordpress website…so please keep replies as simple as you can…. Thanks in advance.
After a 503 error last week and contacting our web hosting to see if it’s something they can resolve, they have advised that they noticed there’s some duplicate code.
They advised:
While working on this I saw 2 entries today in the errors log of the website:
canalsidecommunityfood.org.uk [Fri Mar 13 09:24:34 2026] [error] [client 216.73.216.62:0] PHP Warning: Constant FORCE_SSL_ADMIN already defined in /home/sites/canalsidecommunityfood.org.uk/public_html/wp-config.php on line 12
canalsidecommunityfood.org.uk [Fri Mar 13 09:24:34 2026] [error] [client 216.73.216.62:0] PHP Warning: Constant DISALLOW_FILE_EDIT already defined in /home/sites/canalsidecommunityfood.org.uk/public_html/wp-config.php on line 11
These log entries are PHP warnings from a WordPress site, not fatal errors. They mean that two constants are being defined more than once in the file wp-config.php.
If you check the wp-config.phpfile in the public_html folder in File Manager, you see these entered twice instead of just one there:
define( ‘DISALLOW_FILE_EDIT’, true ); // Disable File Editor – Security > Settings > WordPress Tweaks > File Editor
define( ‘FORCE_SSL_ADMIN’, true ); // Redirect All HTTP Page Requests to HTTPS – Security > Settings > Enforce SSL
// END iThemes Security – Do not modify or remove this line
You could remove the duplicate.
And also: The site currently uses PHP version 8.0. We have up to 8.4 available to switch to but you need to first update the website to be compatible with a newer version before switching to it, otherwise it breaks the website and you’ll need to revert to the old PHP version for it to work.
Yesterday I tried to login to the dashboard to update wordpress and the login page won’t load and instead I get this:
Warning: Constant DISALLOW_FILE_EDIT already defined in /home/sites/canalsidecommunityfood.org.uk/public_html/wp-config.php on line 11
Warning: Constant FORCE_SSL_ADMIN already defined in /home/sites/canalsidecommunityfood.org.uk/public_html/wp-config.php on line 12
Warning: Cannot modify header information – headers already sent by (output started at /home/sites/canalsidecommunityfood.org.uk/public_html/wp-config.php:11) in /home/sites/canalsidecommunityfood.org.uk/public_html/wp-content/plugins/better-wp-security/core/modules/hide-backend/class-itsec-hide-backend.php on line 499
Warning: Cannot modify header information – headers already sent by (output started at /home/sites/canalsidecommunityfood.org.uk/public_html/wp-config.php:11) in /home/sites/canalsidecommunityfood.org.uk/public_html/wp-includes/pluggable.php on line 1531
Warning: Cannot modify header information – headers already sent by (output started at /home/sites/canalsidecommunityfood.org.uk/public_html/wp-config.php:11) in /home/sites/canalsidecommunityfood.org.uk/public_html/wp-includes/pluggable.php on line 1534
Plus all our website pages load but show the first 2 warnings.
I contacted our web host again and they’ve said:
This issue is a plug-in or code issue with the site.
It's generated by the following lines in the wp-config file and looks like its the plugin - Solid Security
..................
// BEGIN Solid Security - Do not modify or remove this line
// Solid Security Config Details: 2
define( 'DISALLOW_FILE_EDIT', true ); // Disable File Editor - Security > Settings > WordPress Tweaks > File Editor
define( 'FORCE_SSL_ADMIN', true ); // Redirect All HTTP Page Requests to HTTPS - Security > Settings > Enforce SSL
// END Solid Security - Do not modify or remove this line
define( 'ITSEC_ENCRYPTION_KEY', 'RXQjWjA1M3clT1ZvL1RTVjJifHlZe2Z2W0d4NlBFMS9hV2JPX3dKL0hhSnV7aEhGa119cjsvXVd6SGE9bFJUTw==' );
define( 'DISALLOW_FILE_EDIT', true ); // Disable File Editor - Security > Settings > WordPress Tweaks > File Editor
define( 'FORCE_SSL_ADMIN', true ); // Redirect All HTTP Page Requests to HTTPS - Security > Settings > Enforce SSL
// END iThemes Security - Do not modify or remove this line
..............................
You'd need to ask the plug-in developer why this is causing the error?I haven’t knowingly added any plugins recently, and am not sure any plugin update took place last week though it is plausible that happened (one little button click that I might have forgotten amidst a tonne of other work).
Thanks so much for any advice about how I can resolve as not being able to login means I can’t currently update wordpress, remove the plugin or do anything else to manage the situation.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.