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!

Remote Modules: How to report errors to panel?

Discussion in 'cPanel Developers' started by ishc, Nov 20, 2013.

  1. ishc

    ishc Registered

    Nov 20, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner

    I am writing a remote module for cPanel,
    using this documentation:
    How to Write dnsadmin Plugin Remote Modules

    My module is going to control external name servers,
    create and replace zone files, etc.

    But i do not understand how to report errors to cPanel's engine.

    For example, I tried to `return ($Cpanel::NameServer::Constants::ERROR_GENERIC, $errmsg)`
    from removezone() but this had no effect on the panel behavior.

    Am I doing anything wrong?
    How do I report error that occured in a "remote module"?

    How can I change the status icon from green disk to red one?
    Why does substring 'Unable to remove' in my module's output has
    a magical effect to this icon (changes to a triangle with an exclamation mark)?
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    While this might not answer your question specifically, you can find useful examples in the following directory:

    However, if you feel there is a bug with the dnsadmin plugin's remote module, feel free to open a bug report via:

    Submit A Bug Report

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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