Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2018 13:09:27 +0100
From:      Lars Engels <lars.engels@0x20.net>
To:        Guido Falsi <mad@madpilot.net>
Cc:        Xavier <xavier@groumpf.org>, FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: Upgrade from PHP71 to PHP72 breaks icingaweb2
Message-ID:  <20181107120927.GV98934@e.0x20.net>
In-Reply-To: <d6b69c9f-a8ca-57d8-fd72-2a8e6c056a7d@madpilot.net>
References:  <68f377509b704b8604dd41e29484115c@groumpf.org> <2e352ca4-6515-7c08-e1c0-b5f9e2d54791@madpilot.net> <0e76384d-3479-44c1-2f50-463250b25d1c@groumpf.org> <4cfd72d7-1176-f098-72ed-4f594e740d4e@madpilot.net> <d6b69c9f-a8ca-57d8-fd72-2a8e6c056a7d@madpilot.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 07, 2018 at 08:48:19AM +0100, Guido Falsi wrote:
> On 07/11/18 08:46, Guido Falsi wrote:
> > On 07/11/18 07:24, Xavier wrote:
> >> On 03/11/2018 18:50, Guido Falsi wrote:
> >>> On 03/11/18 18:17, Xavier Humbert wrote:
> >>>> Context FreeBSD 11-STABLE, last pkg upgrade led to update PHP71 to PHP72.
> >>>> php72-json is installed, but when I launch a navigator, IcingaWeb2
> >>>> crashes with :
> >>>>
> >>>>> Call to undefined function Icinga\Util\json_encode() in
> >>>>> /usr/local/www/icingaweb2/library/Icinga/Util/Json.php:57
> >>>>>
> >>>>
> >>>> Any idea ?
> >>>
> >>> Yess, you need to install the php72-json package which provides the
> >>> json_encode() function.
> >>>
> >>> The port actually depends on it, so something went wrong with your update.
> >>>
> >>> You should try reinstalling it and check that all dependencies install
> >>> successfully.
> >>>
> >>
> >> Thanks for your answer Guido. Unfortunately, as I wrote, php-json *is*
> >> installed, in the correct flavour. And pkg check -Bd succeeds
> >>
> > 
> > Is it being loaded?
> > 
> > Check for 'ext-20-json.ini' to be present in /usr/local/etc/php and have
> > correct content.
> > 
> 
> BTW, if you've not tried it a 'pkg install -f php72-json' is worth a try.

Can you check if you also upgraded the mod_php[57][16] module for
Apache?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181107120927.GV98934>