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.

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:
    46
    Likes Received:
    1
    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>
     
  2. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    46
    Likes Received:
    1
    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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page