Resource icon

NULLED WHMCS THEME Lagom-V2.2.5 2.2.5

No permission to download

Reviews 5.00 star(s) 2 reviews

If you’re getting this error after activating the Lagom (or Lagoon) theme on WHMCS:



Error: Call to undefined method WHMCS\Utility\Captcha\LocalImage::getSiteKey()



Here’s the fix 👇

This happens because newer WHMCS versions (8.9+) changed how the captcha system works — the LocalImage type no longer has the method getSiteKey(), which older themes still try to call.



Open your theme’s file:

/templates/yourtheme/includes/head.tpl



Find this line:

recaptchaSiteKey = "{if $captcha}{$captcha->recaptcha->getSiteKey()}{/if}";



Replace it with:

{capture assign=recaptchaKey}
{if isset($captcha)
&& isset($captcha->recaptcha)
&& is_object($captcha->recaptcha)
&& method_exists($captcha->recaptcha,'getSiteKey')}
{$captcha->recaptcha->getSiteKey()}
{/if}
{/capture}
recaptchaSiteKey = "{$recaptchaKey}";


Then clear your template cache (in WHMCS admin: Utilities → System → Clear Template Cache) and reload the page. Or mannualy remove all files inside templates_c directory.



This makes the theme compatible with newer WHMCS versions — it will only use getSiteKey() if reCAPTCHA is active and won’t break when using LocalImage.
Works perfect with some knowledge
Back
Top