You will need to contact your web host and ask them to install the JSON PHP extension
@bigmoxy I have sever access, can I just add the JSON PHP extension that way? I am the web host.
@pullenja do you have root/command line access or are you on a cPanel type of installation?
I’m running into the same problem, and I have full root access to my system. I have the php JSON package installed and yet I also get the error message “The update cannot be installed because WordPress 5.3.2 requires the JSON PHP extension.”…
My installed PHP packages:
$ rpm -qa | grep -i php
php71u-mbstring-7.1.33-1.el6.ius.x86_64
php71u-common-7.1.33-1.el6.ius.x86_64
php71u-json-7.1.33-1.el6.ius.x86_64
php71u-pdo-7.1.33-1.el6.ius.x86_64
php71u-fpm-httpd-7.1.33-1.el6.ius.noarch
php71u-gd-7.1.33-1.el6.ius.x86_64
php71u-cli-7.1.33-1.el6.ius.x86_64
php71u-mcrypt-7.1.33-1.el6.ius.x86_64
php71u-xml-7.1.33-1.el6.ius.x86_64
php71u-fpm-7.1.33-1.el6.ius.x86_64
php71u-mysqlnd-7.1.33-1.el6.ius.x86_64
php71u-process-7.1.33-1.el6.ius.x86_64
@brucepennypacker what does php -i | grep json say? Is it enabled? Are you running on Apache?
Yes, running Apache 2.4.41.
$ php -i | grep json
/etc/php.d/20-json.ini,
json
json support => enabled
json version => 1.5.0
proto_binary_fetched_json => 0
Ah, I just figured out my issue. I forgot we’re running php-fpm on this system, and it hadn’t been restarted since the php-JSON package was installed. I restarted php-fpm and the automatic upgrade just ran without a hitch.
@valentinbora I do have root access, we are not on cpanel. Were running a linux OS. i ran the php grep and got back. (proto_binary_fetched_json => 0. @brucepennypacker Thanks for the comments. would like to input similar JSON file.
@pullenja you don’t seem to have the extension installed based on your grep output.
@valentinbora where can I download that extension. Then I can install it, I’m also think about moving my website into containers.
@pullenja You should just be able to use rpm to download and install it for your distro. Generally speaking, you don’t usually download and install packages manually.
What distro are you running? And yes, you will likely need root to install it, or ask your hosting service to do it for you.