hotglue2 icon indicating copy to clipboard operation
hotglue2 copied to clipboard

[proxy_fcgi:error] Cannot redeclare is_base_url_secure() when setting basic authentication credentials in user-config.inc.php

Open alwayslearningalwaysexploring opened this issue 2 years ago • 1 comments

When I create a user-config.inc.php file with the user and password to overwrite the default settings, I get the following error in my error.log:

[Sat Mar 23 14:55:39.318663 2024] [proxy_fcgi:error] [pid 1178021:tid 140168765875904] [client 37.134.211.147:0] AH01071: Got error 'PHP message: PHP Fatal error: Cannot redeclare is_base_url_secure() (previously declared in /media/data0076/sites/355979/web/hotglue2/config.inc.php:73) in /media/data0076/sites/355979/web/hotglue2/user-config.inc.php on line 82'

My config.inc.php file includes the user-config.inc.php file and is set to basic authentication. I have also tried uncommenting this include and seeing if the default values work but I get prompted over and over again with the same login modal (both in Firefox and in Chrome). The only way I can "fix this" is if I disable authentication all together, which is not my ideal.

Any insight? Thanks in advance!

hi,

why is is_base_url_secure() function defined in your user-config.inc.php ?

k0a1a avatar Apr 30 '24 12:04 k0a1a