craigk5n / webcalendar

WebCalendar is a PHP application used to maintain a calendar for a single user or an intranet group of users. It can also be configured as an event calendar.
http://www.k5n.us/webcalendar.php
GNU General Public License v2.0
153 stars 75 forks source link

v1.9.1: after update to php8.2 "German_utf8" drops an error #474

Open AxelDuerrbaum opened 6 months ago

AxelDuerrbaum commented 6 months ago

In version v1.9.1 the language "German_uttf8" drops an error when using php8.2:

php:922\nStack trace:\n#0 /opt/WWW/webcalendar/includes/classes/WebCalendar.php(922): mb_language()\n#1 /opt/WWW/webcalendar/includes/classes/WebCalendar.php(1010): WebCalendar->_initTranslate()\n#2 /opt/WWW/webcalendar/includes/classes/WebCalendar.php(168): WebCalendar->setLanguage()\n#3 /opt/WWW/webcalendar/includes/classes/WebCalendar.php(978): WebCalendar->_initInitSecondPhase()\n#4 /opt/WWW/webcalendar/includes/classes/WebCalendar.php(1001): WebCalendar->_doInit()\n#5 /opt/WWW/webcalendar/includes/init.php(72): WebCalendar->initializeSecondPhase()\n#6 /opt/WWW/webcalendar/view_v.php(23): require_once('...')\n#7 {main}\n thrown in /opt/WWW/webcalendar/includes/classes/WebCalendar.php on line 922

Solution: changing all occourences of "German_utf8" to "German" in the database (webcal_user_pref, webcal_config) and reconfigure Webcalendar.

Problem is: I can still select "German_utf8" in the Admin prefs.