Page 1 of 1

Problems after upgrading Lubuntu to 24.04

Posted: Mon Oct 07, 2024 6:58 am
by Speedy
Hi,

I have been using Zoneminder for serveral years, but now after updating Lubuntu 22.04 to 24.04 I have been struggling with apache errors.
I am using ppa:iconnor/zoneminder-proposed

I am getting HTTP ERROR 500 and apache log shows:
[Mon Oct 07 09:29:38.253174 2024] [php:error] [pid 12962] [client 192.168.11.188:59573] PHP Fatal error: Uncaught Error: Found unconstructed IntlDateFormatter in /usr/share/zoneminder/www/includes/config.php:171\nStack trace:\n#0 /usr/share/zoneminder/www/includes/config.php(171): IntlDateFormatter->setPattern()\n#1 /usr/share/zoneminder/www/index.php(51): require_once('...')\n#2 {main}\n thrown in /usr/share/zoneminder/www/includes/config.php on line 171
php version is 8.3.6 and intl module should be loaded.

Zoneminder is running on background but I can't go to it's web page. Does anybody know how to fix this error? I don't want to reinstall everything because I have good settings which I have been fine tuning during many years.

Re: Problems after upgrading Lubuntu to 24.04

Posted: Sat Oct 12, 2024 7:23 pm
by JDS
Same problem here after upgrading to Ubuntu Server 24.04.1.
viewtopic.php?t=33464

Re: Problems after upgrading Lubuntu to 24.04

Posted: Fri Oct 25, 2024 7:42 am
by Speedy
I also tried and installed older php 8.1.30 from ondrej's repository. But it didn't help and still got this IntlDateFormatter error:

Code: Select all

[Fri Oct 25 08:49:51.285831 2024] [php:error] [pid 564284:tid 564284] [client 192.168.11.188:51357] PHP Fatal error:  Uncaught Error: Found unconstructed IntlDateFormatter in /usr/share/zoneminder/www/includes/config.php:171\nStack trace:\n#0 /usr/share/zoneminder/www/includes/config.php(171): IntlDateFormatter->setPattern()\n#1 /usr/share/zoneminder/www/index.php(51): require_once('...')\n#2 {main}\n  thrown in /usr/share/zoneminder/www/includes/config.php on line 171
I am not sure what has been done different in this newer ubuntu 24.04, but it would be nice to find fix for this so that I could use Zoneminder web UI.

Re: Problems after upgrading Lubuntu to 24.04

Posted: Fri Oct 25, 2024 10:53 am
by Speedy
After long search I found out that newer PHP has this error when locale is set to invalid.
https://github.com/php/php-src/issues/12912
I think my system has somehow corrupted that locale information to invalid and then zoneminder dosn't have error handling for it. So I created bug report for that:
https://github.com/ZoneMinder/zoneminder/issues/4179

Does anyone know where in MYSQL that locale information is located and what is working data. I could use phpMyAdmin to change my locale information for working one.

Re: Problems after upgrading Lubuntu to 24.04

Posted: Fri Oct 25, 2024 3:07 pm
by iconnor
Good job figuring it out. Fix has been applied and the ppa is updating.

Question would be, how did an invalid entry get in your config? All the available locales are listed in the dropdown Options->System->Default Locale. Saving the system options should clear out the invalid value.

Re: Problems after upgrading Lubuntu to 24.04

Posted: Sat Oct 26, 2024 3:37 pm
by Speedy
Thanks for quick respond and fix. I have tested the fix and I can confirm that it's working.
It's strange that locale information was invalid. I don't think that I have ever changed it. And I think it has always been on "system default". Only thing that comes to my mind is that this new ubuntu 24.04 has changed "system locale" when I upgraded it from 22.04.