Can you help with the troubleshooting of being unable to login using old version? I just did a git pull and there are some changes not quite right ....
According to the troubleshooting website, I manually add in a small function call ... http://emoncms.org/site/docs/troubleshooting
But I can't login ..
I edited the call, trying
include('Lib/dbschemasetup.php');
db_schema_setup(load_db_schema());
in index.php
however, getting …
Warning: Missing argument 3 for db_schema_setup(), called in /var/www/emoncms/index.php on line 44 and defined in /var/www/emoncms/Lib/dbschemasetup.php on line 18
Warning: key() expects parameter 1 to be array, null given in /var/www/emoncms/Lib/dbschemasetup.php on line 21
Clearly the instructions have changed … any ideas??
Thanks
Re: Old version help?
So, am I right in thinking that the new emoncms version has overwritten the place for the old version on github?
If so, that's really annoying! My heating systems and monitoring systems are all using this, and by updating (with too much bravado) my own personal plugins are now failing too. In fact, all my systems have failed as I cannot get in to update the db via the CMS. So, looks like I will be working this evening. Damn. Just spent the last hour figuring it all out, updating all my Pi's ... I won't bother trying to roll back to an old version or anything, now I'm here I have to move forward.
Appreciate some advice on this too .. I have an mqtt import plugin based on raspberrypi plugin (https://github.com/elyobelyob/mqtt) .. it seems the *_run.php file has changed how it connects with everything (probably for the better with more OO approach). Anything else changed?
Thanks
Re: Old version help?
Actually, I see emoncms3 is still seperated. I guess I may as well move to that and hope for the best!
Re: Old version help?
In answer to my first question in the first post ..
db_schema_setup($mysqli,load_db_schema(),true);
Right .. database up to date ... :)
Re: Old version help?
Trystan says to follow the steps here http://emoncms.org/site/docs/upgrading setting $updatelogin = true; and then run the database updater http://localhost/emoncms/admin/view
Re: Old version help?
Does anyone else run their system on a bespoke port? I previously rewrote the raspberrypi_run to write direct to the db, which I've now lost. Do I need to fill in the remote emoncms server details for domain:3333 as a domain name?
Re: Old version help?
Thanks will look through that. Not sure what version I have upgraded too.
Re: Old version help?
Sometimes the version information is in the readme.md file. The released Version 5 and the 'dev' version that preceded it are both labelled "# Emoncms v5.0". The version that preceded it was just "# Emoncms".
[I copied the "v5.0" line into each of the major source files so I know which version I have installed. The version information really ought to be in every file.]
Re: Old version help?
Well, after a number of hours, I've managed to get the system back up. One major thing I noticed was hat the remote server reply had a blank line, which meant that $result[0] failed to fetch 't' .. $result[1] works. Not sure why .. as I bodged to get going.
Also, a lot of my inputs weren't converted to the new node id (i.e. moving from node45_1_1 to 1) etc ...
Basically, I altered both raspberrypi_model and raspberrypi_model .. some of it to allow handling ports.
I guess I need to work out how to submit these changes to dev, get events working again and find out how to rewrite my mqtt plugin.
At least now my heating system will be back online (although my fall back worked perfectly, which was to switch back to the stock drayton controller).
All I had wanted to do was update to get quicker multigraphs ;)