FreeBSD upde from php73 to php74 broke icingaweb2

Hello,
FreeBSD pkg update broke icingaweb2 :

  • it upgraded php73 to php74, which at first glance is not a problem
  • deleted blindly icingaweb2 without noticing that icingaweb2-php74 was
    present

So I reinstalled manually icingaweb2-php74, and when launching the
browser, I got the (in)famous

Call to undefined function Icinga\Util\json_encode()
However :

[root@aragorn ~]# pkg info php74-json
php74-json-7.4.10
[root@aragorn ~]# php -m | grep json
json
[root@aragorn ~]# php phpinfo.php | grepjson
json
json support => enabled
I ran into the very same problem when updated from php72 to php73, but
can’t remember how I fixed it

Someone can help, please ?

Regards

Xavier

SOLVED
I gave up using mod_php, enabled mpm_event anf php-fpm. Icingaweb2 is back
Xavier