Problem with the basic dashboard data

Hello

I have installed emoncms for Ubuntu 16.04 as indicated in the procedure:

Once installed I modified the settings.php variables:

  • $fullwidth = false;
  • $enable_multi_user = true;

I have also installed the module: graph with the command

I have modified the varible:

  • $feedviewpath = “graph/”; in settings.php

I have updated the database from: Setup → Administration → Update & check

everything seems to work except the page / emoncms / dashboard / list


On this page I change the name but the system does not save it. When I pulse F5 “no name” appears again. The same thing happens when I change the “Public” icon
When I edit the dashboard I can include Widget and visualization elements but I can not change the name from “configure dashboard basic data” nor the “background color”

Anyone having the same problem?
Thanks for your help

Onsar

You cloned the dashboard git to the Modules folder as normal?

Names and Aliases are picky about special characters and long entries I find, might be it.

I share @onsar problem, i have cloned the git of the dashboard as instructed in linuxInstalls.md, I have read the Readme in the dashboard files and followed the update path with: /var/www/html/emoncms/Modules/dashboard$ git pull origin master, it has made some changes. but I still cannot change names of the dashboards, i also tried changing the read and write permissions but it didnt solve the issue.
I tried changing the name and alias just to one letter but it did not work as well.

Can you both copy your server information from the administration page please?

Server Information
Emoncms Version 9.8.31 : 2018.06.21
Modules Administration : App v1.1.1 : Dashboard v1.3.0 : Device v1.1.0 : EventProcesses : Feed : Graph v1.2.0 : Input : CoreProcess : Schedule : Time : User : Visualisation
Server OS Linux 4.15.0-34-generic
Host
Date 2018-09-13 21:43:05 -03
Uptime 21:43:05 up 11:22, 5 users, load average: 1.92, 2.05, 2.11
HTTP Server Apache/2.4.29 (Ubuntu) HTTP/1.1 CGI/1.1 80
MySQL Version 5.7.23-0ubuntu0.18.04.1
Host localhost (127.0.0.1)
Date 2018-09-13 21:43:05 (UTC -03:00‌​)
Stats Uptime: 40935 Threads: 2 Questions: 118964128 Slow queries: 0 Opens: 1067 Flush tables: 1 Open tables: 988 Queries per second avg: 2906.171
Redis Version 4.0.9
Host localhost:6379 (127.0.0.1)
Size 94 keys (954.98K)
Uptime 0 days
Memory RAM Used: 13.35% Total: 15.29 GB Used: 2.04 GB Free: 13.25 GB
Swap Used: 0.00% Total: 1.92 GB Used: 0 B Free: 1.92 GB
Disk Mount Stats
/ Used: 47.46% Total: 98.3 GB Used: 46.65 GB Free: 47.43 GB
/snap/firefox/118 Used: 100.00% Total: 195 MB Used: 195 MB Free: 0 B
/snap/vscode/53 Used: 100.00% Total: 114.25 MB Used: 114.25 MB Free: 0 B
/snap/core/5145 Used: 100.00% Total: 87 MB Used: 87 MB Free: 0 B
/snap/firefox/124 Used: 100.00% Total: 194.63 MB Used: 194.63 MB Free: 0 B
/snap/vscode/52 Used: 100.00% Total: 117.13 MB Used: 117.13 MB Free: 0 B
/snap/core/5328 Used: 100.00% Total: 88 MB Used: 88 MB Free: 0 B
/snap/core/4486 Used: 100.00% Total: 86.63 MB Used: 86.63 MB Free: 0 B
/snap/vscode/51 Used: 100.00% Total: 119.88 MB Used: 119.88 MB Free: 0 B
PHP Version 7.2.7-0ubuntu0.18.04.2 (Zend Version 3.2.0)
Modules apache2handler : calendar v7.2.7-0ubuntu0.18.04.2 : Core v7.2.7-0ubuntu0.18.04.2 : ctype v7.2.7-0ubuntu0.18.04.2 : curl v7.2.7-0ubuntu0.18.04.2 : date v7.2.7-0ubuntu0.18.04.2 : dom v20031129 : exif v7.2.7-0ubuntu0.18.04.2 : fileinfo v1.0.5 : filter v7.2.7-0ubuntu0.18.04.2 : ftp v7.2.7-0ubuntu0.18.04.2 : gettext v7.2.7-0ubuntu0.18.04.2 : hash v1.0 : iconv v7.2.7-0ubuntu0.18.04.2 : json v1.6.0 : libxml v7.2.7-0ubuntu0.18.04.2 : mcrypt v7.2.7-0ubuntu0.18.04.2 : mysqli v7.2.7-0ubuntu0.18.04.2 : mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ : openssl v7.2.7-0ubuntu0.18.04.2 : pcre v7.2.7-0ubuntu0.18.04.2 : PDO v7.2.7-0ubuntu0.18.04.2 : pdo_mysql v7.2.7-0ubuntu0.18.04.2 : Phar v2.0.2 : posix v7.2.7-0ubuntu0.18.04.2 : readline v7.2.7-0ubuntu0.18.04.2 : redis vdevelop : Reflection v7.2.7-0ubuntu0.18.04.2 : session v7.2.7-0ubuntu0.18.04.2 : shmop v7.2.7-0ubuntu0.18.04.2 : SimpleXML v7.2.7-0ubuntu0.18.04.2 : sockets v7.2.7-0ubuntu0.18.04.2 : sodium v7.2.7-0ubuntu0.18.04.2 : SPL v7.2.7-0ubuntu0.18.04.2 : standard v7.2.7-0ubuntu0.18.04.2 : sysvmsg v7.2.7-0ubuntu0.18.04.2 : sysvsem v7.2.7-0ubuntu0.18.04.2 : sysvshm v7.2.7-0ubuntu0.18.04.2 : tokenizer v7.2.7-0ubuntu0.18.04.2 : wddx v7.2.7-0ubuntu0.18.04.2 : xml v7.2.7-0ubuntu0.18.04.2 : xmlreader v7.2.7-0ubuntu0.18.04.2 : xmlwriter v7.2.7-0ubuntu0.18.04.2 : xsl v7.2.7-0ubuntu0.18.04.2 : Zend OPcache v7.2.7-0ubuntu0.18.04.2 : zlib v7.2.7-0ubuntu0.18.04.2

Client Information
HTTP Browser Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
Screen Resolution 1876 x 1173
Window Size 1788 x 1028

I intentionally omitted my ip address

The most relevant difference between our setups is the PHP version, I’m using 5.

Hello,

Thanks for your support. The problem is that the dashboard module fails in its latest version

When installing it, the following command should be used:
git clone -b stable --single-branch https://github.com/emoncms/dashboard.git

instead of:
git clone https://github.com/emoncms/dashboard.git
this command installs the latest version but not the stable one.

I believe that the procedure should be changed to avoid the problem

Best wishes
Onsar

1 Like

Thanks for letting us know. You should indeed be able to use either branch and the shorter command should work, or you can specify the stable branch by adding -b stable. The stable branches are auto selected in the emonSD updates but the default is currently the master branch.

There have been several changes to the code between the current stable and master branches, here’s a link to the diff Comparing 1.3.0...f729cf25b6d9751f4f30cab09e61213f57b92c52 · emoncms/dashboard · GitHub.

Probably @trystanlea and/or @emrys need to take a look before those changes get merged to stable.

(I also see there are warnings about merge conflicts to be resolved as well.)

From Spain, thanks to you for your work and for this wonderful project

Testing the latest master branch here both on latest emoncms master and on emoncms.org I am not able to replicate the issue. @onsar can you see anything in your browsers developer console? Any javascript errors? Or perhaps errors in the apache2 log? /var/log/apache2/error.log, or emoncms log /var/log/emoncms.log

I installed in ubuntu 18.04 the module php-mbstring and at least in my installation it has solved my issue of not saving: names, the states of main, public and published.

1 Like

There is nothing relevant in the logs
I can prepare a virtual machine with Emoncms on Ubuntu in VirtualBox. In fact I only work on virtual machines. Could it be that the problem only occurs on this kind of machine?
best regards

forgive me ,
I have checked the apache2 log and these errors appear:

[Sat Sep 29 14:42:40.236970 2018] [:error] [pid 2369] [client [192.168.1.134:39026](http://192.168.1.134:39026)] PHP Fatal error:  Uncaught Error: Call to undefined function mb_strtolower() in /var/www/html/emoncms/Modules/dashboard/dashboard_model.php:247\nStack trace:\n#0 /var/www/html/emoncms/Modules/dashboard/dashboard_model.php(132): Dashboard->make_slug(NULL)\n#1 /var/www/html/emoncms/Modules/dashboard/dashboard_controller.php(71): Dashboard->set(1, 1, Object(stdClass))\n#2 /var/www/html/emoncms/core.php(64): dashboard_controller()\n#3 /var/www/html/emoncms/index.php(189): controller('dashboard')\n#4 {main}\n  thrown in /var/www/html/emoncms/Modules/dashboard/dashboard_model.php on line 247, referer: http://192.168.1.137/emoncms/dashboard/list
[Sat Sep 29 14:43:28.499080 2018] [:error] [pid 1235] [client [192.168.1.134:39036](http://192.168.1.134:39036)] PHP Notice:  Undefined property: stdClass::$alias in /var/www/html/emoncms/Modules/dashboard/dashboard_model.php on line 132, referer: http://192.168.1.137/emoncms/dashboard/list
[Sat Sep 29 14:43:28.499340 2018] [:error] [pid 1235] [client [192.168.1.134:39036](http://192.168.1.134:39036)] PHP Fatal error:  Uncaught Error: Call to undefined function mb_strtolower() in /var/www/html/emoncms/Modules/dashboard/dashboard_model.php:247\nStack trace:\n#0 /var/www/html/emoncms/Modules/dashboard/dashboard_model.php(132): Dashboard->make_slug(NULL)\n#1 /var/www/html/emoncms/Modules/dashboard/dashboard_controller.php(71): Dashboard->set(1, 1, Object(stdClass))\n#2 /var/www/html/emoncms/core.php(64): dashboard_controller()\n#3 /var/www/html/emoncms/index.php(189): controller('dashboard')\n#4 {main}\n  thrown in /var/www/html/emoncms/Modules/dashboard/dashboard_model.php on line 247, referer: http://192.168.1.137/emoncms/dashboard/list
[Sat Sep 29 14:44:13.812363 2018] [:error] [pid 2372] [client [192.168.1.134:39056](http://192.168.1.134:39056)] PHP Notice:  Undefined property: stdClass::$alias in /var/www/html/emoncms/Modules/dashboard/dashboard_model.php on line 132, referer: http://192.168.1.137/emoncms/dashboard/list
[Sat Sep 29 14:44:13.812654 2018] [:error] [pid 2372] [client [192.168.1.134:39056](http://192.168.1.134:39056)] PHP Fatal error:  Uncaught Error: Call to undefined function mb_strtolower() in /var/www/html/emoncms/Modules/dashboard/dashboard_model.php:247\nStack trace:\n#0 /var/www/html/emoncms/Modules/dashboard/dashboard_model.php(132): Dashboard->make_slug(NULL)\n#1 /var/www/html/emoncms/Modules/dashboard/dashboard_controller.php(71): Dashboard->set(1, 1, Object(stdClass))\n#2 /var/www/html/emoncms/core.php(64): dashboard_controller()\n#3 /var/www/html/emoncms/index.php(189): controller('dashboard')\n#4 {main}\n  thrown in /var/www/html/emoncms/Modules/dashboard/dashboard_model.php on line 247, referer: http://192.168.1.137/emoncms/dashboard/list

Possibly related?