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.

<?cp Email::listpopswithdisk(... DOES NOT WORK since 11.25 STABLE

Discussion in 'cPanel Developers' started by Gino Viroli, Feb 19, 2010.

  1. Gino Viroli

    Gino Viroli Active Member

    Joined:
    Oct 2, 2007
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    I have a reseller WHM account.
    I use to place in cPanel stdmheader.html (branding) this sinple line:

    Code:
    <?cp Email::listpopswithdisk(% % % email,diskused,diskquota) ?>
    to retrieve the mail quota of the currently shown webmail.

    Suddenly, after the cP upgrade to 11.25, this command does not seem to work anymore, nothing is printed in the HTML code of the stdmheader.html page. :(

    Any help would be really appreciated.
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    It looks like you are missing a comma.

    It should be.

    Code:
    <?cp Email::listpopswithdisk(% % %,email,diskused,diskquota) ?>
     
  3. Gino Viroli

    Gino Viroli Active Member

    Joined:
    Oct 2, 2007
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    No way, it's not that simple!
    It always worked and I did not touch the code.
    This morning, since 11.25 STABLE came on, it's not working anymore, I was wondering if they disabled the function?

    Anyway just to give a try I tried also you suggestion adding a comma, but nothing changed, same issue.

    Any other suggestions? :(
     
  4. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    I just tried this in STABLE with success by running:

    Code:
    echo '<?cp Email::listpopswithdisk(% % %,email,diskused,diskquota) ?>' > /usr/local/cpanel/base/frontend/x3/test.html
    Then I went to

    https://MYDOMAIN.COM:2083/frontend/x3/test.html

    in cPanel and I got the email account list.

    At this point I think it would be best to open a support request to we can diagnose why it is failing on your system.
     
  5. Gino Viroli

    Gino Viroli Active Member

    Joined:
    Oct 2, 2007
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Thanks you are right in the cP pages it works, for instance in:

    http://mydomain.xxx:2082/frontend/x3/index.html

    I get all the emails displaied listed just under the cPanel header, I get exactly this displaied:

    echo 'mail1@mydomain.xxx 0.99 250mail2@mydomain.xxx 0.99 250 ...'


    But the same your code (since I placed it in the stdmheader.html that is teh same for both pages) prints nothing when getting to here:

    http://mydomain.xxx:2095/webmail/x3/index.html

    Actually it prints out on the screen:

    echo ''

    It used to print the current mail information only of the currently shown email.

    I really don't understand. I'm clueless!
     
    #5 Gino Viroli, Feb 20, 2010
    Last edited: Feb 20, 2010
Loading...

Share This Page