What's new

Asus AC87U Advanced Wireless WebUI bug

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Dmytro

Occasional Visitor
Hello. I have Asus RT-AC87U with installed 384.13_10 merlin firmware

when I try to go to Wireless section in the left menu I get errors in console which prevents page to work normally
The error:

Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at chanspec.js:25

The problem:

JavaScript:
if(based_modelid == "RT-AC87U"){
ch80m = JSON.parse(''); #<---- here should be JSON.parse('{}')
wl1.channel_80m.push("0");
for(i=0;i<ch80m.length;i++){
wl1.channel_80m.push(ch80m[i] + "/80");
}
ch40m = JSON.parse(''); #<---- here should be JSON.parse('{}')
wl1.channel_40m.push("0");
for(i=0;i<ch40m.length;i++){
wl1.channel_40m.push(wlextchannel_fourty(ch40m[i]));
}
}

please fix. Thank you in advance
 
What browser is that with? Have you tried any troubleshooting? What steps, if any?

Does clearing the cache work? Rebooting the computer, router, or both?
 
Hello. I have Asus RT-AC87U with installed 384.13_10 merlin firmware

when I try to go to Wireless section in the left menu I get errors in console which prevents page to work normally
The error:



The problem:

JavaScript:
if(based_modelid == "RT-AC87U"){
ch80m = JSON.parse(''); #<---- here should be JSON.parse('{}')
wl1.channel_80m.push("0");
for(i=0;i<ch80m.length;i++){
wl1.channel_80m.push(ch80m[i] + "/80");
}
ch40m = JSON.parse(''); #<---- here should be JSON.parse('{}')
wl1.channel_40m.push("0");
for(i=0;i<ch40m.length;i++){
wl1.channel_40m.push(wlextchannel_fourty(ch40m[i]));
}
}

please fix. Thank you in advance
It must be something with your browser? Mine works as it should, no errors in display.
 

Attachments

  • Screenshot 2020-09-09 155821.jpg
    Screenshot 2020-09-09 155821.jpg
    70.2 KB · Views: 189
What browser is that with? Have you tried any troubleshooting? What steps, if any?

Does clearing the cache work? Rebooting the computer, router, or both?
First browser was chrome latest
Tried to clear cache, tried with dev tools 'Disable cache'

Than I tried to change browser to fresh installed Firefox latest - the same.
Than I debugged the source code

As I've mentioned earlier the problem is in JS file. JSON.parse('') is a bug because json can't be empty. it must consists at least with '{}'
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top