Error code seen in browser after using Admin > update & check button
Fatal error: Call to a member function fetch_object() on a non-object in /usr/share/emoncms/www/Modules/admin/update_class.php on line 67
I had seen this before while testing the debian packages but never got to the reason why it occurred. now that I seen it a few times I think there is a pattern. Is it possible this error is the result of initiating an "update & check" and there was no update to perform?
When I tried U&C (update & check) this morning on a out of date v8 pre-release I got the error
later I tried it on a v8 pre-release updated to v8.0.3-3 and still got the error
again on a fresh install of v8.0.3-3 the error occurred
BUT after installing the event module package I tried U&C and it did not error, it displayed the proposed updates which I agreed to, it then completed them without fault and displayed attached screenshot.
And then when I clicked "check for further updates" it resulted in the same error, which i now get again each time i click Admin > U&C button.
I haven't noticed any other related issues so I think functionally all is ok but this error message does crop up each time the U&C button is used.
Paul
Re: EmonCMS update & check error
Exactly the same situation here! I get this message every time I press 'Update&Check'.
Jörg.
Re: EmonCMS update & check error
Here a bit more info on this.
The issue is definitely linked to whether it thinks an update to the database is required. I tried it again on a fresh install of emoncms and got the same results ie one shot at U&C and yet using apt-get to remove and then reinstall the event module does not give you another go probably because the db/index is still there.
As a side note "My Electric Config" page appears to be dependent on being able to perform a U&C as on my original install i could not get the boxes to populate, but when i updated to v8.0.3-3 the couple of feeds i had previously created appeared in the dropdown box. But as I created more feeds the list remained the same and it wasn't until i installed the event module and was able to use U&C that the rest of my feeds appeared in the my electric dropdown boxes.
I assume the list is not getting updated and requires a manual U&C but that's not currently possible.( I think this may be part of the problem over on this thread as maybe the my elec boxes are just not populating)
Is there a way to trick emoncms into thinking it needs the U&C performed to test this theory?
Paul
Re: EmonCMS update & check error
I get the same error on a v8.0.3 shared linux host install. Other than this particular error, and not being able to make my feeds public (clicking the padlock icon has no effect) it appears to be working OK.
Bill
Re: EmonCMS update & check error
Problem solved for me after updating some files to V8.0.4!
Thank you very much, Trystan!
Re: EmonCMS update & check error
Yup! all fixed when I upgraded to v8.0.7 using apt
(very minor point the on-screen version still says v8.0.6 (from apt))
Paul
Re: EmonCMS update & check error
Unfortunately the debian packaging process just adds "(from apt)". I should probably introduce some kind of validation that errors out if it tries to build a version against a mis-matching tag?
Re: EmonCMS update & check error
In time im sure Il tag and update the version in the index.php file correctly :)
Re: EmonCMS update & check error
Hi.
I have emonCMS installed in a linux machine (server - not shared hosting). When I Update & Check I got a blank page like the one you can see in the attached file.
Re: EmonCMS update & check error
Hi Bruno, not sure exactly why you are getting that blank page but I can see somethings not quite right, the raspberrypi module, (and more recently the node nodule and myelectric modules) has been depreciated so you may have installed an out of date version and added a module that's no longer used. What guide did you follow?
Paul
Re: EmonCMS update & check error
Hi Paul!
I've followed the "Install Emoncms v8 on Ubuntu / Debian Linux" - https://github.com/emoncms/emoncms/blob/master/docs/LinuxInstall.md
I shouldn't had installed raspberry pi module, just realized that after it was done. I don't know how to uninstall modules :p
My Electric and Node modules are not used anymore?
Edit: Anyone? :)