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!

xmlapi notice on error_log

Discussion in 'General Discussion' started by leonep, Mar 14, 2016.

  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    88
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    Hi,
    I am using XMLAPI for my website. It works but i noticed infos on error_log when i call it.
    in the following logs it show passwords and root access key *.*
    in my global php i have error_reporting = E_ALL & ~E_NOTICE and i am not using php.ini
    I think this is not an error because it works. Can someone help me to avoid logs of this infos?
    thanks

    [14-Mar-2016 09:48:35 UTC] URL: https://127.0.0.1:2087/xml-api/cpanel
    [14-Mar-2016 09:48:35 UTC] DATA: password=XXXXXXXXXXXX&cpanel_xmlapi_user=itmediaquality&cpanel_xmlapi_module=
    PasswdStrength&cpanel_xmlapi_func=get_password_strength&cpanel_xmlapi_apiversion=2
    [14-Mar-2016 09:48:35 UTC] Authentication Header: Authorization:
    WHM root:19a129ceaasnidiuashdi a XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


    [14-Mar-2016 09:48:35 UTC] RESPONSE:
    <?xml version="1.0" ?>
    <cpanelresult>
    <apiversion>2</apiversion>
    <data>
    <strength>84</strength>
    </data>
    <event>
    <result>1</result>
    </event>
    <func>get_password_strength</func>
    <module>PasswdStrength</module>
    </cpanelresult>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    88
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    ops
    i solved my myself


    there is a directive
    $xmlapi->set_debug(0);

    0 normal
    1 verbole

    i hope this help someone
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    I am happy to see you were able to address the issue. Thank you for updating us with the outcome.
     
    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