Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Lanuguage unset in functions.php 7 months 1 week ago #8792

  • jayaich
  • jayaich's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 82
  • Thank you received: 5
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.
Attachments:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.054 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search