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.

WHM API 1 - set_tweaksetting for phploader

Discussion in 'cPanel Developers' started by winbornejw, Jan 14, 2016.

  1. winbornejw

    winbornejw Registered

    Joined:
    Jan 14, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Birmingham, AL
    cPanel Access Level:
    Root Administrator
    Hey all,

    I'm sure I'm the one causing the issue here but I can't figure out how yet. I'm using the following API call to try and enable just Ioncube for 'cPanel PHP loader' in tweak settings. The API call I'm using is the following.
    Code:
    /json-api/set_tweaksetting?api.version=1&key=phploader&value=ioncube
    This is returning as if it succeeded but what it actually sets in /var/cpanel/cpanel.config is the following.
    Code:
    phploader=HASH(0x647f170)


    To add to the weirdness, lets say that I wanted to set Ioncube and Zend. I've tested and confirmed that this is 'ioncube,zend' in /var/cpanel/cpanel.config, but using the value of 'ioncube%2Czend' fails with the reason 'Value is not a valid key.'

    I've been able to reproduce this in the API Shell as well.

    Any guidance or just a confirmation that this happens to others will be greatly appreciated.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,830
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Internal case CPANEL-4085 is open to address this issue. There's currently no specific time frame on a resolution, but you can monitor our change log for the case number:

    Change Logs - Documentation - cPanel Documentation

    The workaround at this time is to update the value via the user interface.

    Thank you.
     
  3. winbornejw

    winbornejw Registered

    Joined:
    Jan 14, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Birmingham, AL
    cPanel Access Level:
    Root Administrator
    Awesome, glad to know this and will keep a watch out.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,830
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    To update, the issue has been resolved and the resolution is scheduled for cPanel version 56. You can follow our news page to see when version 56 is released to your build tier:

    cPanel Newsroom | cPanel, Inc.

    Thank you.
     
Loading...

Share This Page