Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1] Deprecation warning in mod_languages when inside an error page #43293

Open
Chaosxmk opened this issue Apr 17, 2024 · 0 comments
Open

[5.1] Deprecation warning in mod_languages when inside an error page #43293

Chaosxmk opened this issue Apr 17, 2024 · 0 comments

Comments

@Chaosxmk
Copy link

Steps to reproduce the issue

Install Joomla 5.1 or upgrade to 5.1
Create a bilingual site
Create an instance of mod_languages in a position that exists also on an error page
In global configuration, set error reporting to maximum
Navigate to a url that will produce an error

Expected result

The module works correctly

Actual result

This warning message is displayed:

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/gdwtest2/domains/gdwtest2.geantduweb.ca/public_html/libraries/src/Extension/ExtensionManagerTrait.php on line 45

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/gdwtest2/domains/gdwtest2.geantduweb.ca/public_html/modules/mod_languages/src/Helper/LanguagesHelper.php on line 79

Additional comments

I've tested this in both a freshly created site and a site that was upgraded to 5.1, the error occurs either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants