oknot Posted February 4, 2020 Posted February 4, 2020 [03-Feb-2020 08:47:33 UTC] PHP Fatal error: Uncaught Error: Class 'CPANEL' not found in /home/*********/public_html/index.php:2Stack trace:#0 {main} thrown in /home/****/public_html/index.php on line 2
wolstech Posted February 4, 2020 Posted February 4, 2020 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).
Recommended Posts