SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 24.04 |
Webmin version | 2.202 |
Recording changes to Extra entries in theme configuration are neither being saved or applied. No error message.
SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 24.04 |
Webmin version | 2.202 |
Recording changes to Extra entries in theme configuration are neither being saved or applied. No error message.
Hello,
I just tested it, and it seems to work fine for me when logged in as root or root-capable user. What was your login type?
Also, make sure the JSON format is set as shown in the popover example:
Still doesn’t work for me. Previously all my text was in one line, but even with the following:
{
‘extra’:[
{
‘title’: ‘File manager’,
‘link’: ‘/filemin’,
‘icon’: ‘server’
},
{
‘title’:‘UFW Status’,
‘link’: ‘/custom/run.cgi?id=1714981783&xnavigation=1’,
‘icon’: ‘server’
},
{
‘title’:‘Pinghosts’,
‘link’: ‘/custom/run.cgi?id=1714981918&xnavigation=1’,
‘icon’: ‘server’}
]
}
when I click save, the screen refreshes, but my changed menu doesn’t show.
After I leave that panel the field reverts to empty and nothing shows.
I am logged in as root.
Interestingly, where it previously worked, the upgrade didn’t remove the settings. I only see it on a new installation.
Thanks
is it because you are using apostrophes '
and not these "
?
The answer is yes. I have corrected your code, try this:
{
"extra": [
{
"title": "File manager",
"link": "/filemin",
"icon": "server"
},
{
"title": "UFW Status",
"link": "/custom/run.cgi?id=1714981783&xnavigation=1",
"icon": "server"
},
{
"title": "Pinghosts",
"link": "/custom/run.cgi?id=1714981918&xnavigation=1",
"icon": "server"
}
]
}
That’s not valid syntax. You cannot use ‘
as a quote in JavaScript (or any other language I know of).
Thanks,
I cut and pasted your suggested layout, but still the same problem for me. The code is accepted (no errors), the screen refreshes, no updates to the menu. Once I move to next, the code for the change is lost. I’ve been using this functionality for about 6 months now on previous versions of Webmin without problems. I have seen the same problem on 3 fresh Webmin installs, but my previous versions of Webmin update the new version fine with no menu loss. It’s as if the storage for the field existed in prior versions, but it is missing in a current version new install. So the field exits on screen, but no backend storage so only new installs of Webmin are affected?
What exactly does your JSON string look like? Can you copy and paste it here, and wrap it in a code block using the Ctrl+E
or ⌘+E
hotkey?
Unfortunately, as the code was not saved in the browser, I have used the code on this site as suggested. In my office, using a Chrome browser in Windows it works, whereas at home using a Firefox browser on Linux Mint, the problems outlined above occurred. Originally I used the following string
{‘extra’:[{‘title’: ‘File manager’, ‘link’: ‘/filemin’, ‘icon’: ‘server’}, {‘title’:‘UFW Status’, ‘link’: ‘/custom/run.cgi?id=1714981783&xnavigation=1’, ‘icon’: ‘server’}, {‘title’:‘Pinghosts’, ‘link’: ‘/custom/run.cgi?id=1714981918&xnavigation=1’, ‘icon’: ‘server’}]}
which worked fine. Go figure!
So thank you all for your help, hopefully my reported problems may assist others.