Problems after upgrading Lubuntu to 24.04

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Speedy
Posts: 4
Joined: Mon Oct 07, 2024 6:41 am

Problems after upgrading Lubuntu to 24.04

Post 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.
JDS
Posts: 6
Joined: Sat Sep 28, 2024 1:08 am

Re: Problems after upgrading Lubuntu to 24.04

Post by JDS »

Same problem here after upgrading to Ubuntu Server 24.04.1.
viewtopic.php?t=33464
Speedy
Posts: 4
Joined: Mon Oct 07, 2024 6:41 am

Re: Problems after upgrading Lubuntu to 24.04

Post 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.
Speedy
Posts: 4
Joined: Mon Oct 07, 2024 6:41 am

Re: Problems after upgrading Lubuntu to 24.04

Post 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.
User avatar
iconnor
Posts: 3231
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Problems after upgrading Lubuntu to 24.04

Post 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.
Speedy
Posts: 4
Joined: Mon Oct 07, 2024 6:41 am

Re: Problems after upgrading Lubuntu to 24.04

Post 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.
Post Reply