cpanel函数deldenyip()不起作用

时间:2015-01-29 05:53:58

标签: php cpanel

https://192.168.0.0:2087/json-api/cpanel?cpanel_jsonapi_apiversion=1&cpanel_jsonapi_module=Module&cpanel_jsonapi_func=deldenyip&user=username&ip=127.0.0.1

我收到了这样的错误

 Array ( [apiversion] => 1 [type] => event [module] => Module [func] => 
deldenyip [source] => module [data] => Array ( [result] => ) [event] => 
Array ( [reason] => Module::deldenyip() failed: Can't use string ("") as a 
subroutine ref while "strict refs" in use at cpanel.pl line 1725. [result] 
=> 0 ) [error] => Module::deldenyip() failed: Can't use string ("") as a 
subroutine ref while "strict refs" in use at cpanel.pl line 1725. ) 

1 个答案:

答案 0 :(得分:0)

使用xmlapi类文件调用cpanel方法后它可以正常工作