iPhone Locator error
-
Given the fact that I run the Here version just fine on openLuup and that I made no changes to these functions, this is getting really weird.
Are you trying to access the settings from UI7 or from ALTUI?If from ALTUI, maybe go look at the ALTUI device and under settings/config field and find the sections calling out IPhoneLocator.
I suspect there is something going on there which got modified.
I am also wondering if the file gets compressed and/or placed in the wrong location and can't be found when you upload it from the UI on the new vera firmware being part of the problem. -
Cheers
I've tried with both UI7 and AltUI
UI7 gives the short error.
AltUI gives the longer version
I'm only running on 7.29Worth SCPing the files into the location as opposed to using the UI?
C
-
Yeah I would try first to see what the dates are on the current files and make sure that they are indeed in the right folder: /etc/cmh. Sorry I don't have a vera to test this anymore.
PS: Don't you love this auto update "feature"...
-
Oh yes!
C
-
If you want, we can brute force our way through this by merging the two user-data.json from before the update (backup) with your current one. I have done this in the past... I can walk you through it if you want. Not much risk if you have a backup although it is very error prone and might get you very frustrated...
-
-rw-r--r-- 1 root root 67935 Jun 9 22:16 L_IPhone.lua
-rw-r--r-- 1 root root 26729 Jun 9 21:45 L_IPhone.lua.lzo-rw-r--r-- 1 root root 43216 Jun 9 22:16 J_IPhone.js
-rw-r--r-- 1 root root 17241 Jun 9 21:45 J_IPhone.js.lzoI've reloaded Luup
Using UI7 I get
Error executing function iphone_Settings(): on the settings tab
Error executing function iphone_Map(): on the Map tab.Although the address location is correct
In AltUI settings tab:
an error occurred while displaying the javascript tab. devid: 0-246 err:iphone_Settings is not defined
stack:ReferenceError: iphone_Settings is not defined
at eval (eval at _deviceDrawControlPanelJSTab (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:3022:17), :1:1)
at _deviceDrawControlPanelJSTab (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:3022:17)
at _deviceDrawControlPanelOneTabContent (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:3717:8)
at _displayActiveDeviceTab (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:3744:4)
at HTMLAnchorElement. (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:7036:4)
at HTMLDivElement.dispatch (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:42571)
at HTMLDivElement.v.handle (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:40572)
at Object.trigger (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:70627)
at HTMLAnchorElement. (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:71222)
at Function.each (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:2777)And in Map tab
an error occurred while displaying the javascript tab. devid: 0-246 err:iphone_Map is not defined
stack:ReferenceError: iphone_Map is not defined
at eval (eval at _deviceDrawControlPanelJSTab (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:3022:17), :1:1)
at _deviceDrawControlPanelJSTab (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:3022:17)
at _deviceDrawControlPanelOneTabContent (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:3717:8)
at _displayActiveDeviceTab (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:3744:4)
at HTMLAnchorElement. (http://192.168.70.6/port_3480/J_ALTUI_uimgr.js:7036:4)
at HTMLDivElement.dispatch (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:42571)
at HTMLDivElement.v.handle (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:40572)
at Object.trigger (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:70627)
at HTMLAnchorElement. (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:71222)
at Function.each (http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:2777)That would be cool, but late for me now. I'll get a backup tomorrow and perhaps we can try then?
As ever, appreciate your help!
C
-
Re-reading all the error, it all points to failure to read the js file and I don't know why. I have not changed this file in months until today.
In the ALTUI config you should see this:"urn:schemas-upnp-org:device:IPhoneLocator:1": { "StyleFunc": "ALTUI_IPhoneLocator.getStyle", "DeviceDrawFunc": "ALTUI_IPhoneLocator.drawIPhone", "ScriptFile": "J_ALTUI_iphone.js", "FavoriteFunc": "ALTUI_IPhoneLocator.drawIPhoneFavorite" },
which should not lead to your errors.
The JS file is called out by the D_IPhone.json file which also has not changed in years:
{ "Label": { "lang_tag": "map", "text": "Map" }, "Position": "1", "TabType": "javascript", "ScriptName": "J_IPhone.js", "Function": "iphone_Map" }, { "Label": { "lang_tag": "settings", "text": "Settings" }, "Position": "1", "TabType": "javascript", "ScriptName": "J_IPhone.js", "Function": "iphone_Settings" },
-
Looking much better, sir. Thanks!
<dashes off to untick 'Auto Update'>
C
-
You may have noticed a change of icons on the map. I made a conscious decision to eliminate calls to Google... Sorry for the goof up. I must have uploaded a test file by mistake.
33/34