luci-app-wireguard: status fail to load; JavaScript error TypeError: String.format is not a function
Loading the Wireguard status page in LuCI has worked at least once in the past, but now shows a screen stating "Collecting data...". In JavaScript, the page is making XHR requests but data processing is failing because of the following error:
TypeError: String.format is not a function wireguard:74:21
<anonymous> /cgi-bin/luci/admin/status/wireguard:74
onreadystatechange /luci-static/resources/xhr.js?v=git-18.328.59464-9636605:72
and this error occurs every few seconds as continued XHRs take place.
The issue appears to be that the JS function String.format
from /www/luci-static/resources/cbi.js
isn't being loaded on this page and is thus null, causing the error. Looking into the JS that is loaded and only xhr.js
(in the traceback above) and the inline JS on the HTML page are what's present.
I don't know the internals of LuCI or its pages, but manually defining that String.format
function sees the rest of the page work as a test.
I'm on Turris Omnia v3.11.2
with luci-app-wireguard version git-18.328.59464-9636605-1