whmcs Error: Call to a member function isEnabled() on null in

whmcs自定义模版调用login.tpl模版报错

Error: Error: Call to a member function getButtonClass() on null in

Error: Error: Call to a member function isEnabled() on null in

 

主要问题在$captcha上, {if $captcha->isEnabled()} 和{$captcha->getButtonClass($captchaForm)}

自定义php文件里面引入一下Captcha()类就解决了.

    $smartyvalues["captcha"] = new WHMCS\Utility\Captcha();

添加新评论 »