I was looking for a custom page to manage GnuPG keys and I’ve found the way to do that on the Best Practical github:
The page works fine and is doing it’s job but I was unable to add the child “Admin/Tools/GnuPG” menu in
Admin/Tools Menu, so i always have to manually type the full address https://myrt.com/Admin/Tools/GnuPG.html.
I followed all the steps described on Github to add the child menu but whenever I clear the mason_data /obj/ to load it I get the following error after restarting the web server:
[28752] [Wed Nov 18 19:49:45 2020] [error]: Not an ARRAY reference at /opt/rt5/share/html/Elements/Tabs line 618.
Stack:
[/opt/rt5/share/html/Elements/Tabs:618]
[/opt/rt5/share/html/Admin/index.html:49]
[/opt/rt5/share/html/Admin/autohandler:49]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:710]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:389]
[/opt/rt5/share/html/autohandler:53] (/opt/rt5/sbin/…/lib/RT/Interface/Web/Handler.pm:209)
Just by including these lines on the file manually.
Again, the page works fine by directly looking for the URL, but the new menu child doesn’t appear and when I try to access RT after cleaning mason cache i get this error.
You put the menu code in share/html/Elements/tabs? The menu code was moved in RT5 to lib/RT/Interface/Web/MenuBuilder.pm you can try putting the menu code around line 1276 I think
And don’t forget to do this on a local copy of the code in the /opt/rt5/local directory hierarchy, not the stuff in /opt/rt5/lib or /opt/rt5/share directly. That way it won’t be blown away if you subsequently do an RT upgrade in place.
Hey Felipe, thank you so much for posting this! I encountered the same issue, and I was getting desperate to find a solution. Luckily I’ve just bumped into this post! I’m also a newcomer to the world of RT administrations, so these threads are indeed a real blessing. I really appreciate the fact that these issues can be fixed online without anyone intervening externally. I remember the good old days when I always had to ask a good friend of mine for assistance when an issue appeared. He works in data recovery services, so he’s quite skilled. However, I prefer fixing these issues without leaving my bedroom, so I’m very grateful! Cheers.