I have EMONCMS (EMONPI) hosted on a Raspberry Pi with a Western Digital HDD. All was was working well until I added the Graph module from GIT. After installation, I managed to get locked out before I could run Setup | Administration | Update Database, so executed “php emoncmsdbupdate.php” on the command line (file content as follows):
// Update Emoncms database
$applychanges = true;
$mysqli = @new mysqli($server,$username,$password,$database);
Needed to clear my browser cache (Chrome) to clear “UNSUPPORTED” flags in the Input list and a lot of things (Inputs, Feeds, Visualizations and Graphs) started working.
However I am left with “Uncaught ReferenceError: _Tr_Vis is not defined” error" when running or attempting to modify dashboards and “Undefined index: content in /var/www/emoncms/Modules/dashboard/Views/dashboard_edit_view.php on line 66” when switching from dashboard design mode to view mode. Line 66 seems to at or around:
<div id="page-container" style="height:<?php echo $dashboard['height']; ?>px; background-color:#<?php echo $dashboard['backgroundcolor']; ?>; position:relative;"> <div id="page"><?php echo $dashboard['content']; ?></div> <canvas id="can" width="940px" height="<?php echo $dashboard['height']; ?>px" style="position:absolute; top:0px; left:0px; margin:0; padding:0;"></canvas> </div>
When I execute the dashboard editing feature, there are a bunch of missing tools in the toolbox and previously working dashboards have missing feed value widgets.
“cd /var/www/emoncms && git pull” says “Already up-to-date”
I’d be most grateful for some help with this problem, any ideas?
EDIT - formatted code - Paul (moderator)