I have a weird case off a emoncs running on ubuntu where for some reason the account got corrupted and I can’t get it back ok. This is on a friends Nuc I can only access remotely
Something similar was reported (and solved) fairly recently, but I simply cannot find the the thread.
From what I remember, it involves setting a flag to allow the local emonCMS to become multi-user, create a second user, then copy part of the (valid and working) database of the new user over the bad data for the original.
Hello @bidouilleur sorry about this error, this relates to the use of php functions only available in php version 7.3 or later. If you can update to php 7.4 that will fix the issue. I need to add a more gracious message to say that the requirements have changed and also document the php upgrade steps here.
ok, I understand better, the system is on PHP5. I took the device home and will re install from scratch with latest PHP and re import the data. At least a clean nice system again.
Last question regarding this, since I’m going to upgrade all, is PHP8 already supported/stable ??? While spending time on this might as well jump 7 thanks
Great thanks! We’re not generally using the leading edge of what php offers, but there were some important security related improvements that require 7.3 or above discussed here.
For as much I could test/read mosquitto-php is NOT yet php8 ready. In my case on a clean ubuntu 20LTS VM with PHP8 that part fails during install . All the rest seemed ok though the lines flash by quickly
PHP Warning: PHP Startup: Unable to load dynamic library 'mosquitto.so' (tried: /usr/lib/php/20200930/mosquitto.so (/usr/lib/php/20200930/mosquitto.so: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/mosquitto.so.so (/usr/lib/php/20200930/mosquitto.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.0.10 (cli) (built: Aug 26 2021 15:50:07) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.10, Copyright (c) Zend Technologies
with Zend OPcache v8.0.10, Copyright (c), by Zend Technologies
not going to copy over the +/- hundred error lines from mosquitto install part …
guess I delete the VM and test with latest PHP7 branch