WHM API 1 - set_tweaksetting for phploader

winbornejw

Registered
Jan 14, 2016
2
0
1
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.