Setting the 'development' variable in config.php, we noticed the following error when using Xerte 3.12 (git v3.12.23):
[04-Dec-2023 11:26:21 Europe/London] PHP Warning: Undefined variable $language in /var/www/html/xerte-3.12/functions.php on line 96
[04-Dec-2023 11:26:21 Europe/London] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/xerte-3.12/functions.php on line 96
[04-Dec-2023 11:26:21 Europe/London] Failed to load language file for Xerte - //index.inc
[04-Dec-2023 11:26:21 Europe/London] Failed to load language file for Xerte - //website_code/php/display_library.inc
[04-Dec-2023 11:26:21 Europe/London] Failed to load language file for Xerte - //website_code/php/language_library.inc
[04-Dec-2023 11:26:21 Europe/London] Failed to load language file for Xerte - //index.inc
Modifying 'functions.php' at line 76 to include:
$language = "en_GB";
seemed to fix this. (No more warnings/errors seen.)
Patch file attached.
John.