From owner-freebsd-ports@freebsd.org Wed Nov 7 12:19:11 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54C37112552A for ; Wed, 7 Nov 2018 12:19:11 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "0x20.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA6AE8EB93 for ; Wed, 7 Nov 2018 12:19:10 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from e.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id B75839F563; Wed, 7 Nov 2018 13:09:29 +0100 (CET) Received: (from lars@localhost) by e.0x20.net (8.15.2/8.15.2/Submit) id wA7C9Rnf058490; Wed, 7 Nov 2018 13:09:27 +0100 (CET) (envelope-from lars) Date: Wed, 7 Nov 2018 13:09:27 +0100 From: Lars Engels To: Guido Falsi Cc: Xavier , FreeBSD Ports ML Subject: Re: Upgrade from PHP71 to PHP72 breaks icingaweb2 Message-ID: <20181107120927.GV98934@e.0x20.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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 8.0 User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: CA6AE8EB93 X-Spamd-Result: default: False [2.18 / 200.00]; ARC_NA(0.00)[]; MX_INVALID(0.50)[cached]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[0x20.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.53)[0.531,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.13)[-0.127,0]; NEURAL_SPAM_LONG(0.08)[0.076,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[lars.engels@0x20.net,lars@e.0x20.net]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:31400, ipnet:46.251.251.0/24, country:DE]; FROM_NEQ_ENVFROM(0.00)[lars.engels@0x20.net,lars@e.0x20.net]; IP_SCORE(-0.00)[country: DE(-0.01)]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2018 12:19:11 -0000 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?