Deprecated cPanel API 1 planned for removal AFTER cPanel & WHM version 86
We want to ensure that everyone is informed and prepared for the planned removal of the deprecated cPanel API 1 framework. We intend to have all cPanel API 1 functionality that is still relevant in the system ported to UAPI equivalents. This plan means that your integrations, extensions, scripts, hooks, etc., can quickly be updated and continue operating without interruption.
We want to provide you with access to cPanel functionality in our most feature-rich API. Long-Term Support) for up to approximately a year to resolve these dependencies.
We are currently maintaining a table of cPanel API 1 equivalents in the blog post with the release of cPanel & WHM version 82. Please post any questions that you have in this thread.
-
Hi TJ. Tonight we received emails from several cPanel servers with the subject "Deprecated cPanel API 1 usage detected on your server. Action required. " and it provides several example pages that it says are making API 1 calls. These all seem to be cPanel itself, but maybe I'm wrong? /usr/local/cpanel/base/frontend/paper_lantern/index.html /usr/local/cpanel/base/webmail/paper_lantern/mail/doaddars.html.tt
There is no other information given, as to what that "page" is calling... it's really difficult to know where to go next. Suggestions? - Scott0 -
Hi @sneader (Scott), Thank you for reaching out. The index.html page is often occurring because of a 3rd party plugin that is making an API 1 call as it loads. Installatron is an example of a plugin that has done this in the past (we've notified them about the API 1 removal). The mail/doaddars.html.tt, I believe, is a false positive, and it should be addressed in a minor update as soon as next week. For further investigation on your end, you can use 0 -
Hi @sneader (Scott), Thank you for reaching out. The index.html page is often occurring because of a 3rd party plugin that is making an API 1 call as it loads. Installatron is an example of a plugin that has done this in the past (we've notified them about the API 1 removal). The mail/doaddars.html.tt, I believe, is a false positive, and it should be addressed in a minor update as soon as next week. For further investigation on your end, you can use
0 -
Hi T, The WHM API 1 get_api_calls gives even less information about just what is making the calls than the emails we received. How can we determine what is making those calls / where those calls are being made from? Mike
Hey @mtindor , The file path that is included in the email should be enough information for you to determine what is making the API call as plugins normally install into their own directory within paper_lantern. If you have files from our webmail directory showing up, please know that this was a bug and should be resolved by the next time you receive a notification. If you'd like me to take a look at what you are seeing specifically, you can send me a direct message over the forums or on our Slack, and I'd be happy to help.0 -
Hey @mtindor , The file path that is included in the email should be enough information for you to determine what is making the API call as plugins normally install into their own directory within paper_lantern. If you have files from our webmail directory showing up, please know that this was a bug and should be resolved by the next time you receive a notification. If you'd like me to take a look at what you are seeing specifically, you can send me a direct message over the forums or on our Slack, and I'd be happy to help.
Thanks. Everything is fine here. The files I saw mentioned were all within /usr/local/cpanel/base/webmail/paper_lantern Mike0 -
Having the same issues ...we also use Installatron. Does this mean that if we updated to cpanel 88 installatron will stop working? Why arent they updating their software to not use api1 ?? 0 -
Hi @qwerty , Installatron has been notified of the concern and is working on an update that will remedy the problem. 0 -
The "create_user_session" is our key use case for cPanel 1 Is this something that will be moving over soon? 0 -
@FlippinSlipper - I don't have many developers here because of the US holidays, but I'll see if I can find more details and get you an update. It might be a bit later on, like Monday or Tuesday, but I'll let you know! 0 -
@cPRex That would be great. Hopefully, it's on their list. I Look forward to hearing back! Thank you! 0 -
Hey, Just had chase to visit this. It looks like that function doesn't output a url which can be used for a single sign on session to the cPanel account. As seen in API 1 create_user_session function to create a temporary user session. The API 1 version allows a User parameter and allows me to set this within our controller and redirect a customer to a url to sign on to cPanel that the API provides upon the request. 0 -
Hey @FlippinSlipper , The API you are referring to is from WHM API 1, which is still supported and will stay in support for some time. The API system we are referring to is cPanel API 1. This case is the exact reason we want to retire it. We understand that it can be confusing. Here's a complete list of our current API systems for reference: WHM API 1 (supported/recommended) WHM API 0 (deprecated) cPanel UAPI (supported/recommended) cPanel API 2 (supported) cPanel API 1 (deprecated and retiring) 0 -
Hey @FlippinSlipper , The API you are referring to is from WHM API 1, which is still supported and will stay in support for some time. The API system we are referring to is cPanel API 1. This case is the exact reason we want to retire it. We understand that it can be confusing. Here's a complete list of our current API systems for reference: WHM API 1 (supported/recommended) WHM API 0 (deprecated) cPanel UAPI (supported/recommended) cPanel API 2 (supported) cPanel API 1 (deprecated and retiring)
Hi, Thanks for that. I think I've got them mixed up. I'm glad that this is still supported. Hope you guys are keeping safe. Thank you :)0
Please sign in to leave a comment.
Comments
14 comments