Jump to content


[Solved] how can i get class CPANEL in php (api)(uapi)

error php api uapi

  • Please log in to reply
1 reply to this topic

#1 oknot



  • Members
  • 1 posts

Posted 04 February 2020 - 10:16 AM

[03-Feb-2020 08:47:33 UTC] PHP Fatal error:  Uncaught Error: Class 'CPANEL' not found in /home/*********/public_html/index.php:2
Stack trace:
#0 {main}
  thrown in /home/****/public_html/index.php on line 2


#2 wolstech


    Rank X Member

  • Root Admin
  • 11,890 posts
  • Gender:Male
  • Location:Pennsylvania

Posted 04 February 2020 - 10:44 AM

You'd have to provide a class called cpanel in order for it to be defined. There's no such class defined by default. If your code doesn't provide such a class, you can't use what doesn't exist. If it exists and isn't being loaded, ensure you included it or that a class loader is detecting it.

It's worth noting that if this is intended to be an api for the hosting control panel, we don't offer api access to the hosting system (though curl has been used by some in the past to automate the UI).

Please do not PM me for support. Posting on our forums lets all of us learn.
Do you play Minecraft? | Server Monitors | And the Dumbass of the Decade award goes to...

Also tagged with one or more of these keywords: error, php, api, uapi

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users