k0a1a / hotglue2

HOTGLUE is a Content Manipulation System which allows to construct websites directly in a web-browser.
http://hotglue.me/demo
GNU General Public License v3.0
275 stars 38 forks source link

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

Open alwayslearningalwaysexploring opened 5 months ago

alwayslearningalwaysexploring commented 5 months ago

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!

k0a1a commented 4 months ago

hi,

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