Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Invisible cPAddons still visible?

Discussion in 'cPanel Developers' started by wshallum1, Oct 27, 2010.

  1. wshallum1

    wshallum1 Registered

    Joined:
    Oct 27, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    I created a cPAddon with the module name prefixed with an underscore e.g. MyVendor::Ecommerce::_Somescript as specified here: Invisible cPAddon Scripts

    However, the addon is still displayed in cPanel "Site Software" screen. Looking at the code in /usr/local/cpanel/Cpanel/cPAddons.pm I can't find the part that filters out invisible addons in the sub _listallmods.

    Any hints?
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi wshallum1,

    Hmm, it would appear that something is not right: either the documentation or the "hide" mechanism. A simple test I did also exposed _hidden.pm cPAddon. I'll play around with it some and talk with others that have a more intimate knowledge of the cPAddons code base and find the root of the issue.

    I post back with my findings.

    -DavidN
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Okay,

    We've confirmed that this is a bug. A developer has a fix in the works. I currently do not have an ETA for publication of the fix.

    In the meantime, you can use the attached patch for your 11.28 system, if anything for testing purposes. (it has a .txt extension simply for forum upload purposes. feel free to rename with .patch and use patch!)

    I don't have an 11.25 or 11.26 install handy to valid the patch, but I think the change in question is easily applied manually, particularly if you're comfortable reading the cPAddons module ;)

    Regards,
    -DavidN
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice