iPhone Locator error
-
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
-
-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" },
-
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.