Array to string conversion in /var/www/emoncms/Modules/user/user_model.php

When you run the command:

sudo pecl -d php_suffix=7.4 install redis

it should print a whole load of stuff to the screen. If you can copy the whole output here that would be really useful thanks.

This is what I get

[email protected]:~$ sudo pecl -d php_suffix=7.4 install redis
PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /us                                                                                                                                                             r/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: cannot open shared                                                                                                                                                              object file: No such file or directory), /usr/lib/php/20190902/redis.so.so (/usr                                                                                                                                                             /lib/php/20190902/redis.so.so: cannot open shared object file: No such file or d                                                                                                                                                             irectory)) in Unknown on line 0

Notice: Trying to access array offset on value of type bool in PEAR/REST.php on                                                                                                                                                              line 187
PHP Notice:  Trying to access array offset on value of type bool in /usr/share/p                                                                                                                                                             hp/PEAR/REST.php on line 187

Notice: Trying to access array offset on value of type bool in PEAR/REST.php on                                                                                                                                                              line 187
PHP Notice:  Trying to access array offset on value of type bool in /usr/share/p                                                                                                                                                             hp/PEAR/REST.php on line 187

Notice: Trying to access array offset on value of type bool in PEAR/REST.php on                                                                                                                                                              line 187
PHP Notice:  Trying to access array offset on value of type bool in /usr/share/p                                                                                                                                                             hp/PEAR/REST.php on line 187

Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
PHP Notice:  Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
pecl/redis is already installed and is the same as the released version 5.3.4
install failed
[email protected]:~$

I followed the procedure from this link: EmonScripts/readme.md at master · openenergymonitor/EmonScripts · GitHub

Is this different from the EmonScripts? Because it installed 7.2 not 7.3

@TrystanLea How can I install emoncms in ubuntu 20 using the latest emonscripts with PHP7.4?

I used the emonscripts to install this instance and even tried on a fresh ubuntu 18 and 20 but still the same results. It installed 7.2 and would fail to start.

This is odd.

If you start with a fresh Ubuntu install and just do

sudo apt-get install -y php

What version does it install? It should be 7.4

This is all the scripts do

You could run the install script and capture all the output to see what might be happening.

<command> |& tee  <outputFile>