From owner-freebsd-ports@freebsd.org Sun Sep 27 17:05:44 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 97841421CED for ; Sun, 27 Sep 2020 17:05:44 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (vogon.madpilot.net [159.69.1.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BzsVH42Rkz40Z0 for ; Sun, 27 Sep 2020 17:05:43 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 4BzsV81hqsz6dS4; Sun, 27 Sep 2020 19:05:36 +0200 (CEST) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10026) with ESMTP id 8pTXcUHho887; Sun, 27 Sep 2020 19:05:34 +0200 (CEST) Subject: Re: Icingaweb2 To: Xavier Humbert , FreeBSD Ports References: <1a79bb57-ff2b-23d3-7318-fd33bd7f7834@groumpf.org> From: Guido Falsi Message-ID: <9ab0500d-1e3b-0d7a-cc77-b5764730fac6@madpilot.net> Date: Sun, 27 Sep 2020 19:05:33 +0200 In-Reply-To: <1a79bb57-ff2b-23d3-7318-fd33bd7f7834@groumpf.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4BzsVH42Rkz40Z0 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.92 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.007]; R_DKIM_ALLOW(-0.20)[madpilot.net:s=bjowvop61wgh]; FROM_HAS_DN(0.00)[]; MISSING_MIME_VERSION(2.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.003]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[madpilot.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[madpilot.net,quarantine]; NEURAL_HAM_SHORT(-0.91)[-0.910]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Sep 2020 17:05:44 -0000 On 27/09/20 18:06, Xavier Humbert wrote: > Hi, > > 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 ? Ideas from the top of my head: - did you restart php-fpm? - check php-fpm config, is json support enabled there too? -- Guido Falsi