WHM Plugin page shows a blank page only under reseller access

stephane02

Member
Dec 14, 2011
13
0
51
cPanel Access Level
Root Administrator
Hello,

I made a WHM plugin I placed into /usr/local/cpanel/whostmgr/docroot/cgi/mywhmplugin.php with the following code:

PHP:
<?PHP
#ACLS:edit-dns
#WHMADDON:mywhmplugin:My WHM Plugin
header("Location: ".$_ENV{'cp_security_token'}."/mywhmplugin/index.php");
?>
it works fine with root access but when logged in as a reseller:

  1. I can see "My WHM Plugin" link in plugins section
  2. When clicking the "My WHM Plugin" link it shows a blank page
  3. HTTP headers shows a 200 status code instead of redirecting to /mywhmplugin/index.php as it should do (header() function above)

Can you help understand what may cause this issue under reseller access?

Does the file /mywhmplugin/index.php also needs an ACL statement somewhere ?

Thx for helping,

Stephane
 

stephane02

Member
Dec 14, 2011
13
0
51
cPanel Access Level
Root Administrator
Any help ? Is it possible to run a PHP made WHM plugin as a reseller ? Please cpanel techs help me as I'm working on a very urgent project...Thx for reading...
 
Last edited:

stephane02

Member
Dec 14, 2011
13
0
51
cPanel Access Level
Root Administrator
ugh always hard to find reply on this forum and when we get some help we don't need it anymore...I spent several days coding some PHP scripts for WHM and it works fine until I notice it doesn't when you switch to resellers mode and this is was at the demo time with client excited to look at it (they are now angry). Now, I really don't know where to get some help...not sure if some cpanel techs use to look at our issues...
 
Last edited: