The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DomainInfo::list_domains UAPI Call Not working from index.html.tt

Discussion in 'cPanel Developers' started by morissette, Jun 23, 2015.

  1. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    <!-- Main Content -->
    <div class="container addtop-margin">
    <div class="panel panel-default">
    <div class="panel-body">
    Why does the UAPI just not work :P
    [% data = execute( 'DomainInfo', 'list_domains' ); %]
    [% FOREACH q = data.addon_domains %]
    [% q %]
    [% END %]

    </div>
    </div>


    I have just added 3 addon domains and yet there is nothing in cpanel error log and nothing displaying on the page. The code was just copied and pasted from the docs.

    Please point me in the right direction.
     
  2. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Alright I found out the issue by dumping the hash:

    need to loop through data.data.addon_domains
     

Share This Page