You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: