What's new
  • 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!

scMerlin scMerlin 2.5.10 - Service and script control menu for Asuswrt-Merlin, March 2, 2025

Unfortunately, I don't own or have direct access to a BE-class router for developing purposes so that makes debugging this kind of "incompatibility issues" rather difficult (if not impossible).

Hopefully, someone else with a BE router can take a look at these types of problems.

@Martinski

Hey buddy, so because we are working on the WebUI for MerlinAU, you happened to direct me to this thread in our latest PR; and I noticed the problems being discussed with the sitemap.
I've gone ahead and fixed it in 3006 and will submit a PR to your repo shortly with the fix.

1739505593957.png


In short; On 3004 firmware, the router’s JavaScript populates a global array myMenu as soon as you call show_menu().
Therefore, the original code just checked if(myMenu.length == 0) ... retry and then called GenerateSiteMap(...) once myMenu was non‐empty.

However, on 3006 firmware, ASUS changed how they store menu data. They seem to now use:
Code:
Session.set("menuList.", menuTree.list);
in state.js rather than assigning to the global myMenu.

As a result, myMenu never gets populated automatically, so the old check (if(myMenu.length == 0) ... retry) would loop forever on 3006.

Code:
DEBUG: show_menu() is defined. Calling it now..
DEBUG: Now calling LoadSiteMap()...
DEBUG: Entering LoadSiteMap()...
DEBUG: menuList or menuExclude not ready; retry in 1s...
DEBUG: Added click event listener to #sitemap_showurls
DEBUG: Entering LoadSiteMap()...
DEBUG: menuList or menuExclude not ready; retry in 1s...
DEBUG: Entering LoadSiteMap()...
DEBUG: menuList or menuExclude not ready; retry in 1s..
DEBUG: Entering LoadSiteMap()..
DEBUG: menuList or menuExclude not ready; retry in 1s...

My PR works on both 3004 and 3006 by using a hybrid of both approaches:
  • First checks if myMenu is already populated (the 3004 way).
  • If not, it tries to pull menuList. from Session (the 3006 way).
  • Then it sets myMenu (and menuList, if needed) so GenerateSiteMap(...) will see the data regardless of firmware version.
Edit: Opened PR: https://github.com/Martinski4GitHub/scMerlin_TLC/pull/1
 
Last edited:
@Martinski minor cosmetic issue when I run scMerlin 2.5.9 from AMTM or command line ... not a biggy but thought I'd note it for completeness?

On my trusty RT-AX86U I get the following errors, probably because I run with both wifi channels disabled (I have separate access points, AX86U just does everything else).

Code:
**ERROR**: Could not find 'Chanspec' for WiFi Interface [eth6].

**ERROR**: Could not find 'Chanspec' for WiFi Interface [eth7].

See screen shot as well.

Screenshot 2025-02-14 at 15.02.40.png



They DO show correctly as disabled in the GUI however ...

Screenshot 2025-02-14 at 15.09.08.png


Cheers,

StephenH
 
...
My PR works on both 3004 and 3006 by using a hybrid of both approaches:
  • First checks if myMenu is already populated (the 3004 way).
  • If not, it tries to pull menuList. from Session (the 3006 way).
  • Then it sets myMenu (and menuList, if needed) so GenerateSiteMap(...) will see the data regardless of firmware version.
Edit: Opened PR: https://github.com/Martinski4GitHub/scMerlin_TLC/pull/1
Great job, bud!! I'll take a look tomorrow evening and then test & validate on my 2 network routers (with 3004.386.* & 3004.388.* F/W).
 
@Martinski minor cosmetic issue when I run scMerlin 2.5.9 from AMTM or command line ... not a biggy but thought I'd note it for completeness?

On my trusty RT-AX86U I get the following errors, probably because I run with both wifi channels disabled (I have separate access points, AX86U just does everything else).

Code:
**ERROR**: Could not find 'Chanspec' for WiFi Interface [eth6].

**ERROR**: Could not find 'Chanspec' for WiFi Interface [eth7].
Ah, good catch! I know where & what the problem is. I'll take a look tomorrow to fix it.
Thanks.
 
Release Notes for scMerlin 2.5.10 version (now available):

1) Improved code that checks for Wi-Fi radios being enabled or disabled when getting the temperature status.
Thanks to @Stephen Harrington for reporting the use case.

2) Improved code that creates (during installation) and removes (during uninstallation) the "Addons" menu entry for the WebGUI to make sure it checks for and takes into account other add-ons that may have been installed before or were later installed after the initial installation.

3) Fixed "Sitemap" webpage for 3006.102.x F/W versions.
Thanks to @ExtremeFiretop for providing the fix, and to @AlexHK & @Ripshod for reporting the problem.
 
Hi there,

I just loaded 3006.102.4_beta1 on my RT-AX88U_Pro

scMerlin generally works but the "sitemap" thing where various options appear when you hover over the buttons down the l/h side keeps disappearing.

I can always make them reappear by opening a new browser tab but I only need to look at a few different pages and they stop appearing again.

I'm running scMerlin v2.5.10 on the latest Chrome.
 
That's the behaviour I've got used to since moving to the 3006 firmware. I don't know if (but I hope) someone will step in and fix this. Otherwise it's working as expected. It's no biggy.
 
I have performed a dirty upgrade (from 388.8_4 to 3006.102.4) yesterday afternoon and noticed the expected issues were with 2 of my addons (was already aware about connmon and unbound with 3006), fixed connmon with version 3.0.3 from develop and unbound with the WebUI branch develop version. After having rebooted the router, the only odd behavior observed so far is the fact that as-soon-as select for the third times one of the main options, I can no longer see and select the available sub-options that are usually displayed (which is a scMerlin feature):
3006 menu 01.jpg

3006 menu 02.jpg

3006 menu 03.jpg


Everything else seen fine with scMerlin. For your information, I am using Edge.
 
I have performed a dirty upgrade (from 388.8_4 to 3006.102.4) yesterday afternoon and noticed the expected issues were with 2 of my addons (was already aware about connmon and unbound with 3006), fixed connmon with version 3.0.3 from develop and unbound with the WebUI branch develop version. After having rebooted the router, the only odd behavior observed so far is the fact that as-soon-as select for the third times one of the main options, I can no longer see and select the available sub-options that are usually displayed (which is a scMerlin feature):
3006 menu 01.jpg

3006 menu 02.jpg

3006 menu 03.jpg


Everything else seen fine with scMerlin.
Known issue. The fix was missed on the last update, so maybe now more are moving to the 3006 firmware we may get an update soon.
 
Known issue. The fix was missed on the last update, so maybe now more are moving to the 3006 firmware we may get an update soon.
This is not urgent and can wait until fixed. Was just making sure that it would eventually be addressed. Thanks.
 
@AlexHK @Ripshod @alan6854321 @ColDen

Unfortunately, I don't own or have direct access to a BE-class router for developing purposes so that makes debugging this kind of "incompatibility issues" rather difficult (if not impossible).

Hopefully, someone else with a BE router can take a look at these types of problems.

Due to the fact that Martinski didn't have a BE class router to troubleshoot the remaining issues with the drop down menu; I've tried my hand at poking at this issue more myself today.
I won't lie; when I first updated for the sitemap page here: https://www.snbforums.com/threads/s...asuswrt-merlin-march-2-2025.89224/post-945023

I was only updating the page, I didn't realize at the time that the drop downs were broken as well.

Known issue. The fix was missed on the last update, so maybe now more are moving to the 3006 firmware we may get an update soon.

I am hoping to not miss it this time! ;) Unfortunately it's not an 'easy' issue to track down when your not the original author.. Which is why I need testers..
My version in my repo works for me, but before I submit any PR to @Martinski or @thelonelycoder for review; I would like some testers to validate this change actually works to resolve the reported issues.

Below is the command to download my copy to your router:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ExtremeFiretop/scMerlin/refs/heads/master/scmerlin.sh" -o "/jffs/scripts/scmerlin" && chmod 755 "/jffs/scripts/scmerlin"

If you are doing a "FRESH" install; you will need to also run:
Code:
sh /jffs/scripts/scmerlin install

Otherwise if it's an upgrade from an existing install; you simply need to launch scMerlin from amtm (j3) after downloading it.
You should see: "old dropdown code found - patching with new IIFE" to know the fix was applied.

1747169666324.png


Please report back any issues or successes, and your F12 debug screen for any errors from scMerlin.
Thanks!
 
Last edited:
@AlexHK @Ripshod @alan6854321 @ColDen



Due to the fact that Martinski didn't have a BE class router to troubleshoot the remaining issues with the drop down menu; I've tried my hand at poking at this issue more myself today.
I won't lie; when I first updated for the sitemap page here: https://www.snbforums.com/threads/s...asuswrt-merlin-march-2-2025.89224/post-945023

I was only updating the page, I didn't realize at the time that the drop downs were broken as well.



I am hoping to not miss it this time! ;) Unfortunately it's not an 'easy' issue to track down when your not the original author.. Which is why I need testers..
My version in my repo works for me, but before I submit any PR to @Martinski or @thelonelycoder for review; I would like some testers to validate this change actually works to resolve the reported issues.

Below is the command to download my copy to your router:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ExtremeFiretop/scMerlin/refs/heads/master/scmerlin.sh" -o "/jffs/scripts/scmerlin" && chmod 755 "/jffs/scripts/scmerlin"

If you are doing a "FRESH" install; you will need to also run:
Code:
sh jffs/scripts/scmerlin install

Otherwise if it's an upgrade from an existing install; you simply need to launch scMerlin from amtm (j3) after downloading it.
You should see: "old dropdown code found - patching with new IIFE" to know the fix was applied.

View attachment 65661

Please report back any issues or successes, and your F12 debug screen for any errors from scMerlin.
Thanks!
I installed your fix, but I never saw the "patching with new IIFE" message. When I tested, dropdowns worked for a bit and then stopped. I uninstalled scMerlin completely, and I completed a fresh install as you illustrated above. Same thing — it worked for a bit and then stopped. It appears that selecting a dropdown from System Log consistently breaks it (i.e., no more dropdowns).
 
I installed your fix, but I never saw the "patching with new IIFE" message. When I tested, dropdowns worked for a bit and then stopped. I uninstalled scMerlin completely, and I completed a fresh install as you illustrated above. Same thing — it worked for a bit and then stopped. It appears that selecting a dropdown from System Log consistently breaks it (i.e., no more dropdowns).

Interesting, then it sounds like the targeting could use some work. I'll investigate and report back.
 
@AlexHK @Ripshod @alan6854321 @ColDen



Due to the fact that Martinski didn't have a BE class router to troubleshoot the remaining issues with the drop down menu; I've tried my hand at poking at this issue more myself today.
I won't lie; when I first updated for the sitemap page here: https://www.snbforums.com/threads/s...asuswrt-merlin-march-2-2025.89224/post-945023

I was only updating the page, I didn't realize at the time that the drop downs were broken as well.



I am hoping to not miss it this time! ;) Unfortunately it's not an 'easy' issue to track down when your not the original author.. Which is why I need testers..
My version in my repo works for me, but before I submit any PR to @Martinski or @thelonelycoder for review; I would like some testers to validate this change actually works to resolve the reported issues.

Below is the command to download my copy to your router:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ExtremeFiretop/scMerlin/refs/heads/master/scmerlin.sh" -o "/jffs/scripts/scmerlin" && chmod 755 "/jffs/scripts/scmerlin"

If you are doing a "FRESH" install; you will need to also run:
Code:
sh jffs/scripts/scmerlin install

Otherwise if it's an upgrade from an existing install; you simply need to launch scMerlin from amtm (j3) after downloading it.
You should see: "old dropdown code found - patching with new IIFE" to know the fix was applied.

View attachment 65661

Please report back any issues or successes, and your F12 debug screen for any errors from scMerlin.
Thanks!
I am reporting the same observations made by visrotgw (When I tested, dropdowns worked for a bit and then stopped.) but I saw the "patching with new IIFE" message:
1747179437059.png
 

Attachments

  • 1747175326756.png
    1747175326756.png
    34.4 KB · Views: 16
Last edited:
I am reporting the same observations made by visrotgw (When I tested, dropdowns worked for a bit and then stopped.) but I saw the "patching with new IIFE" message:
I installed your fix, but I never saw the "patching with new IIFE" message. When I tested, dropdowns worked for a bit and then stopped. I uninstalled scMerlin completely, and I completed a fresh install as you illustrated above. Same thing — it worked for a bit and then stopped. It appears that selecting a dropdown from System Log consistently breaks it (i.e., no more dropdowns).

Hi @visortgw and @ColDen

First of all; thanks for stepping up and testing this; it helps push the issue forwards. :)
I've made some changes; can I request you re-test and advise?

Below is the command to download my copy to your router:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ExtremeFiretop/scMerlin/refs/heads/master/scmerlin.sh" -o "/jffs/scripts/scmerlin" && chmod 755 "/jffs/scripts/scmerlin"

If you are doing a "FRESH" install; you will need to also run:
Code:
sh /jffs/scripts/scmerlin install

Otherwise if it's an upgrade from an existing install; you will need to launch scMerlin from amtm (option j3)
Then run a force update (option uf)

I've now tested this with multiple browsers, and multiple routers (on 3004 and 3006)

Thanks!
 
Hi @visortgw and @ColDen

First of all; thanks for stepping up and testing this; it helps push the issue forwards. :)
I've made some changes; can I request you re-test and advise?

Below is the command to download my copy to your router:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ExtremeFiretop/scMerlin/refs/heads/master/scmerlin.sh" -o "/jffs/scripts/scmerlin" && chmod 755 "/jffs/scripts/scmerlin"

If you are doing a "FRESH" install; you will need to also run:
Code:
sh /jffs/scripts/scmerlin install

Otherwise if it's an upgrade from an existing install; you will need to launch scMerlin from amtm (option j3)
Then run a force update (option uf)

I've now tested this with multiple browsers, and multiple routers (on 3004 and 3006)

Thanks!
@ExtremeFiretop: I followed your instructions above to perform a fresh install (first deleted baseline installation)
on my GT-BE98 Pro running 3006.102.4 firmware. It solves my issue where dropdowns disappear after a couple of dropdown clicks! As a regression test, I tried the same on an RT-AX88U running 3004.388.9_2. Everything works as it should on it. Sitemap function works on both routers and firmware versions.

Excellent work!!!

UPDATE:
I just tested the upgrade scenario on a GT-AX6000 running 3006.102.4 firmware. It is working as well.
 
Last edited:
@ExtremeFiretop: I followed your instructions above to perform a fresh install (first deleted baseline installation)
on my GT-BE98 Pro running 3006.102.4 firmware. It solves my issue where dropdowns disappear after a couple of dropdown clicks! As a regression test, I tried the same on an RT-AX88U running 3004.388.9_2. Everything works as it should on it. Sitemap function works on both routers and firmware versions.

Excellent work!!!

UPDATE:
I just tested the upgrade scenario on a GT-AX6000 running 3006.102.4 firmware. It is working as well.
For me the dropdowns stay on until I click on "Network Map" where it disappears until I click on any of the other options then stay on until clicking again on "Network Map" where it's always display "index.asp" with the mouse on it (it is the only one doing this). Can you double check this one on your GT-AX6000?
 
Last edited:
For me the dropdowns stay on until I click on "Network Map" where it disappears until I click on any of the other options then stay on until clicking again on "Network Map" where it's always display "index.asp" with the mouse on it (it is the only one doing this). Can you double check this one on your GT-AX6000?
@ColDen: Good find! I see that exact same behavior on the GT-AX6000 (oops, I missed it!), but not on the GT-BE98 Pro or RT-AX88U. One thing for @ExtremeFiretop to look into is that Network Map is the only menu item that has zero dropdowns (e.g., AiMesh has exactly one dropdownAiMesh) — not sure if it might be related.
 
I've installed your version v2.5.20 after uninstalling the last version.
The Dropdowns still disappear for me after a few clicks.
It seems to be after I've clicked on the 'AiMesh' tab
 
@ColDen: Good find! I see that exact same behavior on the GT-AX6000 (oops, I missed it!), but not on the GT-BE98 Pro or RT-AX88U. One thing for @ExtremeFiretop to look into is that Network Map is the only menu item that has zero dropdowns (e.g., AiMesh has exactly one dropdownAiMesh) — not sure if it might be related.
Thanks @visortgw: FYI, I also found out that if you click on the "General" and/or "Advanced Settings" title tabs it does also same thing as when clicking on "Network Map" with the dropdowns.
 

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!
Back
Top