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

Empty login screen after installing version 1.9.10 #448

Closed
max951 opened this issue Dec 8, 2023 Discussed in #447 · 1 comment
Closed

Empty login screen after installing version 1.9.10 #448

max951 opened this issue Dec 8, 2023 Discussed in #447 · 1 comment

Comments

@max951
Copy link

max951 commented Dec 8, 2023

Discussed in #447

Originally posted by xaver-ius December 7, 2023
I was lucky to install the package using sqlite, but after saving the settings the login screen is empty.
I don't have an idea what has to be done ...


I think, I run into the same error.
After activate error messages in php.ini this error was shown:
Fatal error: Uncaught ValueError: mb_internal_encoding(): Argument #1 ($encoding) must be a valid encoding, "charset" given in /html/webcalendar/includes/classes/WebCalendar.php:946 Stack trace: #0 /html/webcalendar/includes/classes/WebCalendar.php(946): mb_internal_encoding('...') #1 /html/webcalendar/includes/classes/WebCalendar.php(1034): WebCalendar->_initTranslate() #2 /html/webcalendar/login.php(51): WebCalendar->setLanguage() #3 {main} thrown in /html/webcalendar/includes/classes/WebCalendar.php on line 946

After some analysis, I believe that the fallback character "=" for "charset" in the translation files does not work at this point, as it passes the string "charset" to the mb_internal_encoding function instead of "utf-8" or "iso-8859-1" or some other charset code.

After replacing the line in the translation file (in my case: translations/German.txt)
charset: =
to
charset: iso-8859-1
the login form appears as expected.

craigk5n added a commit that referenced this issue Dec 8, 2023
Some translation files use '-' to indicate to use the same charset as English
(iso-8859-1).  This update just replaces '-' with 'iso-8859-1' in those cases.
@craigk5n
Copy link
Owner

craigk5n commented Dec 8, 2023

Code in master has been updates. Thanks for the fix!

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

No branches or pull requests

2 participants