Today I tried updating to a new version of emoncms, and boom. As expected now the stuff won't work.
PHP Fatal error: Cannot redeclare class ProcessArg in /var/www/emoncms/Lib/enum.php on line 3
I really don't have a clue. I was on v. 5 I guess (version is nowhere to be found in the interface). And after a gitt pull emoncms broke, so I had to install redit (not on the update page that info either). But now RMFpi board won't receive data.
Anyone a clue how to solve this?
We really need a more solid way of upgrading is you ask me.
Re: PHP Fatal error on raspberrypi_run.php
Hello jonrescca, did you update the rasperrypi module too?
Re: PHP Fatal error on raspberrypi_run.php
I guess not. I tried updating following this tutorial, but it seems I ended up with emoncms 7 instead of 6 ;-)
http://emoncms.org/site/docs/upgrading
Any sugessions how to get emoncms fresh again, without losing data? Since now it seems the dashboards are now broken too.
Re: PHP Fatal error on raspberrypi_run.php
I've just updated the upgarding page with details for v7. Does it show any errors on the dashboards?
Re: PHP Fatal error on raspberrypi_run.php
It shows errors when trying to add a new widget to the canvas. See the attached screenshot.
Re: PHP Fatal error on raspberrypi_run.php
Is anything else working apart from dashboards? Do you have redis installed?
The error's there are quite fundamental in that it cant find the session userid on line 114. It might be worth trying a clean install of the core files (not the database and your data) so if you rename your emoncms folder to something like emoncms_tmp and then do a fresh
git clone https://github.com/emoncms/emoncms.git
create a new copy of settings.php from default.settings.php and then insert your mysql database authentication details. See if that works with no errors and your feeds are accessible first.
Re: PHP Fatal error on raspberrypi_run.php
I did as advised, and did a git clone of the whole project including the raspberrypi module after moving the original aside. But still I get the same error. My installation is from the standard emoncms image that you provided for imaging the SD card.
Re: PHP Fatal error on raspberrypi_run.php
Do inputs and feeds work at all? Or is the feed list blank too?
Re: PHP Fatal error on raspberrypi_run.php
Yeah, the inputs and feeds work al normal. It seems now that something changed from version 5 to 7. It's normal for the widget to display the error after adding. After configuring it goes away. Don't blame me for not trying first, since the error scared me ;-)
All running fine and dandy again.
Re: PHP Fatal error on raspberrypi_run.php
Sorry it is indeed a bug with emoncms the visualization error pre configuration, not sure how I missed it but I can see exactly the same here on my system when I try creating new widgets. Iridium had the same error here http://openenergymonitor.org/emon/node/3674