Dashboard not working after update - SOLVED

I just did a fresh install of emoncms but moved the existing data to a different location. I updated the appropriate config files. This would be the 3 php* files and also the mysql data. I did this just prior to the first run of the web interface. 

I saw that the dashboard was not installed so I did that as user pi but there was an error updating a .config file somewhere owned by root - not sure if that matters.

When I looked at my existing dashboard things were not right. Widgets missing etc, I deleted everything and recreated the dashboard but it's not updating correctly. I have 2 feedvalues and they update in edit mode but not in view mode. I also have 2 dials that show up and update in edit mode but are invisible in view mode. A realtime and simplezoom widget display properly.

What could be causing these feedvalue and dials to not update?

PS, How do I remove the modules and app so I can reinstall them? Do they need to be installed as root or pi?

Thanks

TrystanLea's picture

Re: Dashboard not working after update - SOLVED

Can you check to see if you see any errors in your browsers development console window? It may also be worth doing a full page refresh or browser cache clean - It may still be loading the old javascript from its cache.

You can delete the app module by deleting the folder although the mysql database will remain..

billvolz's picture

Re: Dashboard not working after update - SOLVED

I erased the image and files. Same thing. I normally use Chrome, but I also tried IE and Edge with the same result.

The Chrome console showed this:

Uncaught SyntaxError: Unexpected token ILLEGAL
jquery-1.11.3.min.js:5 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

Not sure what file but it's line 196:

 $('body').css("background-color","#<br />
<b>Notice</b>:  Undefined index: backgroundcolor in <b>/var/www/emoncms/Modules/dashboard/Views/dashboard_view.php</b> on line <b>36</b><br />
");

 

I also deleted the table data (not the tables themselves) but it didn't help. Was there a change in the tables between versions 8 and 9? I copied the mysql tables rather than losing the data in them.

billvolz's picture

Re: Dashboard not working after update - SOLVED

Figured it out - I needed to do a Admin->update Database. All's well now.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.