Edit + Save not working

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Behr
Posts: 5
Joined: Saturday 26 May 2018 17:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Edit + Save not working

Post by Behr » Saturday 26 May 2018 17:34

Version: 3.9501
Platform: RASPBERRY
Plugin/Hardware: RFXtrx433E
Description:

When in Switches, I select any switch to with EDIT button
I can interact with controls such as name / Switch type etc. ...
I can DELETE the Switch ... (no a good idea)
But when I click on SAVE (from SAFARI / iOS 11.3.1 or MAC OS Sierra 10.12.6)
I cannot save my change (nothing happens)

EDIT :
From Chrome version 66.0 : this is the same.

User avatar
waaren
Posts: 1346
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Edit + Save not working

Post by waaren » Saturday 26 May 2018 17:47

Behr wrote:
Saturday 26 May 2018 17:34

When in Switches, I select any switch to with EDIT button
I can interact with controls such as name / Switch type etc. ...
But when I click on SAVE (from SAFARI / iOS 11.3.1 or MAC OS Sierra 10.12.6)
I cannot save my change (nothing happens)

EDIT :
From Chrome version 66.0 : this is the same.
For this and most of the problems reported in the last couple of days related to the way browsers react unexpected in the various tabs / pages of the domoticz gui on a recent Beta, please take these steps before reporting:

Code: Select all

remove all browser caches including appcache and check  
if still not OK
     Goto your www/js directory and check if exists:
     domoticz.js.gz (delete it)
     domoticz.js (keep it)
if still not OK
    restart domoticz and try again
if still not OK
   update to the latest available Beta
Thanks
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

Behr
Posts: 5
Joined: Saturday 26 May 2018 17:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Edit + Save not working

Post by Behr » Saturday 26 May 2018 19:08

Thanx Waaren but

All this step already done... and the status is the one I described ;)

User avatar
waaren
Posts: 1346
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Edit + Save not working

Post by waaren » Saturday 26 May 2018 20:06

OK.

If the user you do these actions with already has admin rights, a next step could be to analyze the log

if you don't see anything related in the log now could you start with option debug and try again. Maybe you can catch an error or something else that points to the reason you cannot save your changes.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

Behr
Posts: 5
Joined: Saturday 26 May 2018 17:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Edit + Save not working

Post by Behr » Sunday 27 May 2018 15:29

waaren wrote:
Saturday 26 May 2018 20:06
If the user you do these actions with already has admin rights, a next step could be to analyze the log
If you mean the Error log from Setup > Log : no Error related to our matter it seems.
Before looking at the log I tried to modify and save a switch and it did not work.
2018-05-27 03:44:36.851 Error: Nest: Error getting current state!
2018-05-27 14:48:09.274 Error: Nest: Error getting current state!
2018-05-27 15:22:24.977 Error: Nest: Error getting current state!
waaren wrote:
Saturday 26 May 2018 20:06
if you don't see anything related in the log now could you start with option debug and try again. Maybe you can catch an error or something else that points to the reason you cannot save your changes.
I would like to start with option debug but can you be more specific (I am not so familiar with Domoticz)?

Behr
Posts: 5
Joined: Saturday 26 May 2018 17:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Edit + Save not working

Post by Behr » Sunday 27 May 2018 15:49

OK according to the Domoticz manual, I launched Domoticz with -verbose 1 option.

Unfortunately no interesting Error catched

...

User avatar
waaren
Posts: 1346
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Edit + Save not working

Post by waaren » Sunday 27 May 2018 18:51

if you start domoticz from the commandline with parm --help you get this screen with all the possible command line options

Spoiler: show

Code: Select all

root@nnnn: xxx.xxx.xxx.xx:/opt/domoticz:#./domoticz --help
2018-05-27 18:48:52.652  Domoticz V3.9502 (c)2012-2018 GizMoCuz
2018-05-27 18:48:52.652  Build Hash: a2154714, Date: 2018-05-26 21:58:43
2018-05-27 18:48:52.652  Startup Path: /opt/domoticz/
2018-05-27 18:48:52.652  Usage: Domoticz -www port -verbose x
        -www port (for example -www 8080, or -www 0 to disable http)
        -wwwbind address (for example -wwwbind 0.0.0.0 or -wwwbind 192.168.0.20)
        -sslwww port (for example -sslwww 443, or -sslwww 0 to disable https)
        -sslcert file_path (for example /opt/domoticz/server_cert.pem)
        -sslkey file_path (if different from certificate file)
        -sslpass passphrase (to access to server private key in certificate)
        -sslmethod method (for SSL method)
        -ssloptions options (for SSL options, default is 'default_workarounds,no_sslv2,no_sslv3,no_tlsv1,no_tlsv1_1,single_dh_use')
        -ssldhparam file_path (for SSL DH parameters)
        -wwwroot file_path (for example /opt/domoticz/www)
        -dbase file_path (for example /opt/domoticz/domoticz.db)
        -userdata file_path (for example /opt/domoticz)
        -webroot additional web root, useful with proxy servers (for example domoticz)
        -verbose x (where x=0 is none, x=1 is all important, x=2 is debug)
        -startupdelay seconds (default=0)
        -nowwwpwd (in case you forgot the web server username/password)
        -nocache (do not return appcache, use only when developing the web pages)
        -noupdates do not use the internal update functionality
        -log file_path (for example /var/log/domoticz.log)
        -loglevel (0=All, 1=Status+Error, 2=Error , 3= Trace )
        -debug    allow log trace level 3
        -notimestamps (do not prepend timestamps to logs; useful with syslog, etc.)
        -logthreadids (log thread ids; useful for trouble shooting.)
        -php_cgi_path (for example /usr/bin/php-cgi)
        -daemon (run as background daemon)
        -pidfile pid file location (for example /var/run/domoticz.pid)
        -syslog [user|daemon|local0 .. local7] (use syslog as log output, defaults to facility 'user')
just try the relevant options with increasing level of detail and hope for the best :D
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

Behr
Posts: 5
Joined: Saturday 26 May 2018 17:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Edit + Save not working

Post by Behr » Sunday 27 May 2018 22:54

The only weird message would be
2018-05-27 22:46:33.153 PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
Unfortunatelly my system tells
pi@raspberrypi:~ $ sudo apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version (2.7.13-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

User avatar
waaren
Posts: 1346
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Edit + Save not working

Post by waaren » Sunday 27 May 2018 23:50

Google is your friend (at least sometimes :D )


Python has this kind of funny way to show versions. If you ask what is my Python version it gives you the answer 2.7
If you ask what is my Python3 version is gives you a different answer.

Code: Select all

waaren@PI-1:/usr/local/domotica:$python --version
Python 2.7.13
waaren@PI-1:/usr/local/domotica:$python3 --version
Python 3.5.3
There are numerous posts on this forum about different versions and to cut them short; do not install phyton 3.5 if you are on Debian stretch but install phyton3.4

Having said that, I don't think it is related to your problem of not being able to edit + save
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

miskec123
Posts: 3
Joined: Monday 28 May 2018 13:03
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Edit + Save not working

Post by miskec123 » Monday 28 May 2018 14:51

I have the same problem after when I made upgrade to 3.9501. Now I have V3.9524 and the problem still exist.
I got error message:
Error: Pushbullet: {"error":{"code":"pushbullet_pro_required","type":"invalid_request","message":"Pushbullet Pro is required to make this call.","cat":"🙀"},"error_code":"pushbullet_pro_required"}

and in chrome browser under developer console I got
ReferenceError: isLED is not defined angular.min.js:124 ReferenceError: isLED is not defined
at Object.isColorSettingsAvailable (DeviceLightEdit.js:599)
at fn (eval at compile (angular.min.js:242), <anonymous>:4:180)
at m.$digest (angular.min.js:148)
at m.$apply (angular.min.js:151)
at HTMLFormElement.<anonymous> (angular.min.js:288)
at HTMLFormElement.dispatch (jquery-3.3.1.min.js:2)
at HTMLFormElement.y.handle (jquery-3.3.1.min.js:2)
(anonymous) @ angular.min.js:124
(anonymous) @ angular.min.js:96
$digest @ angular.min.js:149
$apply @ angular.min.js:151
(anonymous) @ angular.min.js:288
dispatch @ jquery-3.3.1.min.js:2
y.handle @ jquery-3.3.1.min.js:2

cyle77
Posts: 1
Joined: Wednesday 13 June 2018 11:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Edit + Save not working

Post by cyle77 » Wednesday 13 June 2018 11:31

This problem still persists. In all browsers so it doesn't seem to be a client problem.

Version: 3.9631
Platform: Raspbian Stretch @ Raspberry Pi

Firefox console shows:

ReferenceError: b64EncodeUnicode is not defined
Stack trace:
updateDevice@http://192.168.1.91:8080/app/DeviceLightEdit.js:540:17
fn@http://192.168.1.91:8080/js/angular.min.js line 242 > Function:4:165
e@http://192.168.1.91:8080/js/angular.min.js:288:66
$eval@http://192.168.1.91:8080/js/angular.min.js:151:65
$apply@http://192.168.1.91:8080/js/angular.min.js:151:289
compile/</<@http://192.168.1.91:8080/js/angular.min.js:288:116
dispatch@http://192.168.1.91:8080/js/jquery-3.3.1.min.js:2:41720
add/y.handle@http://192.168.1.91:8080/js/jquery-3.3.1.min.js:2:39774
angular.min.js:124:507


ReferenceError

columnNumber: 17

fileName: "http://192.168.1.91:8080/app/DeviceLightEdit.js"

lineNumber: 540

message: "b64EncodeUnicode is not defined"

stack: "updateDevice@http://192.168.1.91:8080/app/DeviceLigh ... lar.min.js line 242 > Function:4:165\ne@http://192.168.1.91:8080/js/angular.min ... :2:39774\n"

__proto__: Object { stack: "", … }
angular.min.js:124:507
e/<
http://192.168.1.91:8080/js/angular.min.js:124:507
Bf/this.$get</<
http://192.168.1.91:8080/js/angular.min.js:96:66
$apply
http://192.168.1.91:8080/js/angular.min.js:151:336
compile/</<
http://192.168.1.91:8080/js/angular.min.js:288:116
dispatch
http://192.168.1.91:8080/js/jquery-3.3.1.min.js:2:41720
add/y.handle
http://192.168.1.91:8080/js/jquery-3.3.1.min.js:2:39774

cotthemh
Posts: 6
Joined: Sunday 12 June 2016 0:40
Target OS: -
Domoticz version:
Contact:

Re: Edit + Save not working

Post by cotthemh » Wednesday 31 October 2018 18:47

i have the same issue, what is the workaround? the last post about this is now 5 months old

SnehaI
Posts: 2
Joined: Thursday 01 November 2018 9:50
Target OS: OS X
Domoticz version:
Contact:

Re: Edit + Save not working

Post by SnehaI » Thursday 01 November 2018 9:57

Hey,,

If the user you do these actions with already has admin rights, a next step could be to analyze the log

if you don't see anything related in the log now could you start with option debug and try again. Maybe you can catch an error or something else that points to the reason you cannot save your changes.
Bcoz even i have the same problem......???

Javedbhai
Posts: 2
Joined: Thursday 01 November 2018 11:50
Target OS: Windows
Domoticz version:
Contact:

Re: Edit + Save not working

Post by Javedbhai » Thursday 01 November 2018 11:54

If the user you do these actions with already has admin rights, a next step could be to analyze the log

if you don't see anything related in the log now could you start with option debug and try again. Maybe you can catch an error or something else that points to the reason you cannot save your changes......................!!!!!
__________________________________________________________________________________________________________________________________

ShowBox MobdroVidMate
Last edited by Javedbhai on Friday 02 November 2018 19:49, edited 3 times in total.

cotthemh
Posts: 6
Joined: Sunday 12 June 2016 0:40
Target OS: -
Domoticz version:
Contact:

Re: Edit + Save not working

Post by cotthemh » Thursday 01 November 2018 12:32

the bug is very simple:
angular.min.js:124 ReferenceError: b64EncodeUnicode is not defined
at Object.updateDevice (DeviceLightEdit.js:540)
at fn (eval at compile (angular.min.js:242), <anonymous>:4:168)
at e (angular.min.js:288)
at m.$eval (angular.min.js:151)
at m.$apply (angular.min.js:151)
at HTMLFormElement.<anonymous> (angular.min.js:288)
at HTMLFormElement.dispatch (jquery-3.3.1.min.js:2)
at HTMLFormElement.y.handle (jquery-3.3.1.min.js:2)

in devicelight on line 540 there are 2 calls to the function:
strparam1: b64EncodeUnicode(vm.device.StrParam1),
strparam2: b64EncodeUnicode(vm.device.StrParam2),


but this function (b64EncodeUnicode) is simply not defined to solve this somebody needs to add something like:
function b64EncodeUnicode(str) {
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
return String.fromCharCode('0x' + p1);
}));
}

its quite critical because you simply cannot edit the switches or change the timeouts. Its very easy to reproduce:
- edit a switch
- change the off Delay

save => look in the debugger tools and see the console log

kind regards,

Herwig

cotthemh
Posts: 6
Joined: Sunday 12 June 2016 0:40
Target OS: -
Domoticz version:
Contact:

Re: Edit + Save not working

Post by cotthemh » Friday 07 December 2018 17:33

anyone?

SweetPants
Posts: 2397
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.10267
Location: The Netherlands
Contact:

Re: Edit + Save not working

Post by SweetPants » Saturday 08 December 2018 15:39

cotthemh wrote:
Friday 07 December 2018 17:33
anyone?
Pls try to upgrade first to latest Beta, clear app. and browser cache and try again
Ubuntu 16.04.5 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests