Hello @wmcausland. I havent seen the error “Fatal error: Can’t use function return value in write context in /var/www/emoncms/Modules/user/user_controller.php on line 122.” before, but searching google I think its caused by a php compatibility issue.
you could if you feel adventurous, SSH into the emonPi and comment out lines 117 through to 152 to see if it works again. If that’s the only issue I can rewrite those lines to support php 5.4 which might be a good idea to do anyway.
I would double check the SD card compatibility for you.
I’m in the same position …I have an unused EmonPi since 2015 …
yesterday, I connect it and began to use I prefer to update it, and click on update button in admin section, replace settings.php by default.setting.php in var/www/emoncms/ and re-enter some data (usr, passw, mqtt_enabled = false …etc) : Fatal error : Can’t use function return value in write context in /var/www/emoncms/Modules/user/user_controller.php on line 122
ls /boot | grep emonSD don’t return nothing…
/home/pi/data /emonpiupdate.log does not exist…
OK -my emonSD is 17jun2015, But couldn’t find an update log in the location suggested.
As Xavi is still having issues after amending the suggested lines, I decided to try inserting my newly pre-built SD card which arrived this morning (great service!).
As per the install instructions, I attempted to edit /boot/config.txt using Paragon ExtFS under windows, but there were no files visible in the boot directory to edit.
I put the new SD card into the emonPi anyway - but couldn’t access it using ssh through putty, or using a browser on either ethernet or wifi.
I have ordered a replacement complete EmonPi as I have limited time now to get this current project working.
Is it possible to return the old emonPi for refurbishment, and to update it to Pi3?
In fact this 2015 EmonPi, is a gift from my brother that has bought in 2015, never used but very manipulated ( I see the last commands in terminal, and he edited a lot of files …)
I have some issues that I’m not sure that are normal or maybe something was misconfigured…
OK - all working now!
I ordered a pre-build SD card, and it arrived the next day - cost £9 plus postage.
I inserted the card into a Usb card reader into my Windows 10 PC. The boot partition is readable in windows and came up as the first drive letter. Downloaded notepad ++, and edited config.txt to comment out the lines relating to a Pi3 ( arm_freq=1200 arm_freq_min=600) and saved the file. Inserted card into my old Pi2 emonPi, and powered it up.
SSH’d in using putty. Did a factory reset to be sure. Waited until all updated, and wifi access point showing on LCD screen. Removed ethernet cable and connected to wifi access point and configured wifi. All looks good! recommended route for old emonPi.
Certainly I don’t have any data to backup in a 2015 version, then I reflash the last image, and I began to make some test and …like @plord I have some issues :
Uncaught TypeError: Cannot read property ‘push’ of undefined
I open a new topic (I undertand is another and diferent problem …)