Community
OpenEnergyMonitor

Community

Dashboard error messages

dashboards
Tags: #<Tag:0x00007f16a9a7e100>

(Paul Reed) #1

I’ve updated emoncms core & dashboard (Master repos), and now I’m getting a screen error message when editing my dashboards;
Notice: Undefined index: content in /var/www/emoncms/Modules/dashboard/Views/dashboard_edit_view.php on line 71

…which in console view, suggests a syntax error and points to -

br

…and I also get this popup -

error

Server Information
Emoncms Version 9.9.6-beta
Modules Administration : App v1.2.0 : Dashboard v1.3.1 : Device v1.1.1 : EventProcesses : Feed : Graph v1.2.1 : Input : CoreProcess : Schedule : Time : User : Visualisation
Git URL https://github.com/emoncms/emoncms.git
Git Branch * master
Server OS Linux 4.14.70-v7+
Host raspberrypi raspberrypi (192.168.1.8)
Date 2018-11-21 18:18:41 UTC
Uptime 18:18:41 up 21 days, 22:39, 2 users, load average: 0.40, 0.35, 0.36
HTTP Server Apache/2.4.25 (Raspbian) HTTP/1.1 CGI/1.1 443
MySQL Version 5.5.5-10.1.23-MariaDB-9+deb9u1
Host localhost (127.0.0.1)
Date 2018-11-21 18:18:41 (UTC 00:00‌​)
Stats Uptime: 1895933 Threads: 2 Questions: 1811120 Slow queries: 0 Opens: 37 Flush tables: 1 Open tables: 31 Queries per second avg: 0.955
Redis Version 3.2.6
Host localhost:6379 (127.0.0.1)
Size 111 keys (700.59K)
Uptime 21 days
MQTT Server Version Mosquitto 1.4.10
Host localhost:1883 (127.0.0.1)
Pi Model Raspberry Pi 3 Model B+ Rev 1.3 - 1 GB (Sony UK)
SoC Broadcom BCM2835
Serial num. E76F62EC
Temperature CPU: 48.85°C - GPU: 48.3’C
Memory RAM Used: 58.51% Total: 875.65 MB Used: 512.36 MB Free: 363.29 MB
Swap Used: 100.00% Total: 100 MB Used: 100 MB Free: 0 B
Disk Mount Stats
/ Used: 76.23% Total: 6.86 GB Used: 5.23 GB Free: 1.29 GB
/boot Used: 53.40% Total: 41.15 MB Used: 21.97 MB Free: 19.18 MB
/mnt/data Used: 18.48% Total: 458.49 GB Used: 84.73 GB Free: 373.75 GB
PHP Version 7.0.30-0+deb9u1 (Zend Version 3.0.0)
Modules apache2handler : bz2 v7.0.30-0+deb9u1 : calendar v7.0.30-0+deb9u1 : Core v7.0.30-0+deb9u1 : ctype v7.0.30-0+deb9u1 : curl v7.0.30-0+deb9u1 : date v7.0.30-0+deb9u1 : dio v0.1.0 : dom v20031129 : exif v7.0.30-0+deb9u1 : fileinfo v1.0.5 : filter v7.0.30-0+deb9u1 : ftp v7.0.30-0+deb9u1 : gd v7.0.30-0+deb9u1 : gettext v7.0.30-0+deb9u1 : hash v1.0 : iconv v7.0.30-0+deb9u1 : json v1.4.0 : libxml v7.0.30-0+deb9u1 : mbstring v7.0.30-0+deb9u1 : mcrypt v7.0.30-0+deb9u1 : mosquitto v0.4.0 : mysqli v7.0.30-0+deb9u1 : mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $ : openssl v7.0.30-0+deb9u1 : pcre v7.0.30-0+deb9u1 : PDO v7.0.30-0+deb9u1 : pdo_mysql v7.0.30-0+deb9u1 : Phar v2.0.2 : posix v7.0.30-0+deb9u1 : readline v7.0.30-0+deb9u1 : redis v3.1.6 : Reflection v7.0.30-0+deb9u1 : session v7.0.30-0+deb9u1 : shmop v7.0.30-0+deb9u1 : SimpleXML v7.0.30-0+deb9u1 : sockets v7.0.30-0+deb9u1 : SPL v7.0.30-0+deb9u1 : standard v7.0.30-0+deb9u1 : sysvmsg v7.0.30-0+deb9u1 : sysvsem v7.0.30-0+deb9u1 : sysvshm v7.0.30-0+deb9u1 : tokenizer v7.0.30-0+deb9u1 : wddx v7.0.30-0+deb9u1 : xml v7.0.30-0+deb9u1 : xmlreader v7.0.30-0+deb9u1 : xmlwriter v7.0.30-0+deb9u1 : xsl v7.0.30-0+deb9u1 : Zend OPcache v7.0.30-0+deb9u1 : zip v1.13.5 : zlib v7.0.30-0+deb9u1
Client Information
HTTP Browser Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
Screen Resolution 1366 x 768
Window Size 1686 x 830

(Trystan Lea) #2

Thanks Paul, do you have the full line for the error “Undefined index: id…” there should be a bit more information in there on where in emoncms the error originates from.


(Paul Reed) #3

@TrystanLea - I’ve PM’d you a link.

I think that it may be my fault because I may of changed dashboard whilst still in dashboard edit mode.
Steps to recreate;

  1. Open a dashboard
  2. Select the cog to edit the dashboard
  3. Click on another dashboard from ribbon menu (notice what happens to the floating palette)
  4. Try to then get out of edit mode by selecting the ‘eye’ in the floating palette

Still it would be good to catch the error.