problem fetching the env variable containing the path to the socket
Good morning,
I'm building a cPanel plugin. On my /usr/local/cpanel/base/frontend/paper_lantern/myplugin/index.php, I've put following code:
[CODE=php]header("Mail Abuse");
?>
footer();
$cpanel->end();
?>
Now I'm facing a strange problem. When clicking on my plugin's icon on cPanel, this code show following error:
Does I did something wrong? Note that on my another plugin, the same code works without any problem.
Now I'm facing a strange problem. When clicking on my plugin's icon on cPanel, this code show following error:
Fatal error: Uncaught RuntimeException: There was a problem fetching the env variablecontaining the path to the socket in /usr/local/cpanel/php/cpanel.php:146 Stack trace: #0 /home/account/.cpanel/.cpanel_phpengine.1614268526.137078w9d0V_qrbz(8): CPANEL->__construct() #1 {main} thrown in /usr/local/cpanel/php/cpanel.php on line 146Does I did something wrong? Note that on my another plugin, the same code works without any problem.
-
Hey there! I personally don't have any ideas on this as I'm not a developer, so if you don't get some other thoughts on this soon feel free to submit a ticket to our team so we can do some additional testing with this. 0 -
Good morning, Just submitted the ticket no. 94280930. Hope I'll get answer soon. 0 -
Good morning, Renaming my plugin's filename solved the issue. I've renamed if from "index.php" to "index.live.php". 0 -
Great - I'm glad that's all it took and you were able to get it resolved! 0
Please sign in to leave a comment.
Comments
4 comments