[ZendTo] New install browser downloads file instead of showingZendto page

Adam Thorn alt36 at cam.ac.uk
Fri Aug 16 08:30:11 BST 2024


For mailing list posterity, in case anyone else finds this thread...
> I am running Debian 12 bookworm.

> During the installation of the php modules by the script I see this.
> 
> E: Unable to locate package php8.2-sodium
> 
> E: Couldn't find any package by glob 'php8.2-sodium'

That is ignorable. The functionality previously provided by that package 
is included in php as of 7.2.0. This could be checked in the installer 
script via checking the output of php -i | grep "sodium support => 
enabled". The failing part of the installer script has no further 
consequences.

> E: Package 'php8.2-json' has no installation candidate

This happens because the installer runs :

apt -y install php${MAXPHP}-json php-json

but if PHP${MAXPHP}-json does not exist the entire command fails, and no 
php-json package is installed. However, the php website says json 
support is a core extension since 8.0.0 anyway so a better approach 
might be:

1) check php -i | grep "json support => enabled" first
2) if missing, do

for PKG in php${MAXPHP}-json php-json ; do apt -y install $PKG; done

to ensure the entire apt command isn't skipped if one of those packages 
doesn't exist.

I don't think either of these installer script errors were related to 
the problem that Jose reported.

Adam



More information about the ZendTo mailing list