Damo Posted May 12 Share Posted May 12 I am present with the following error message. --> Smarty: Default handler: No template default content for 'file:templates/default/includes/captcha.tpl' <-- 0 Quote Link to comment Share on other sites More sharing options...
Kane William Posted May 12 Share Posted May 12 Hello, Here, I am sharing some steps that you need to follow to fix the issue - 1. Verify the File: Check if the captcha.tpl file is present in the templates/default/includes/ directory of your WHMCS installation using FTP or your hosting control panel. 2. Restore or Upload: If the file is missing, restore it from a backup or upload a fresh copy from another WHMCS installation that includes it. 3. Check Theme Compatibility: After upgrading WHMCS or changing your theme, the new theme may lack the file. Revert to a previous theme or choose one that includes the necessary functionality. If you're using a custom theme, you may need to create the missing captcha.tpl file or choose a theme that includes the required functionality. Thanks 1 Quote Link to comment Share on other sites More sharing options...
Damo Posted May 14 Author Share Posted May 14 I'm using a child theme so the file should be picked up in the parent theme. I've tried two child themes and the same result. I've reverted to using Six and will review the changelog to see if there's anything obvious missing or needed. 0 Quote Link to comment Share on other sites More sharing options...
Saroha Posted May 16 Share Posted May 16 (edited) Hi, you just need to copy templates/default/includes/captcha.tpl into your theme templates/yourthemedirectory/includes/captcha.tpl This error will disappear, but your login issue is still there because the "Cross-Origin-Opener-Policy policy would block the window.postMessage call" You need to allow the Google Auth script to run. Or WHMCS needs to update the code to avoid using window.postMessage function Edited May 16 by Saroha 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted May 17 Author Share Posted May 17 As you've noted I'm using a child theme so the file should be picked up in the parent theme. I've tried two child themes and the same result. Isn't the point of the child theme that you only include files that you want to overwrite? I've reverted to using Six and will review the changelog to see if there's anything obvious missing or needed. Thank you for your post. 0 Quote Link to comment Share on other sites More sharing options...
Saroha Posted May 17 Share Posted May 17 (edited) For this file, WHMCS does not get it from the parent theme. I don't know why but its happen. You can use a child theme, but your parent theme should be Six. For example, if your child theme directory name is "mytheme" then just copy templates/default/includes/captcha.tpl into your theme templates/mytheme/includes/captcha.tpl make sure the path is correct meaning captcha.tpl should be in includes directory Edited May 17 by Saroha 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted May 17 Author Share Posted May 17 Yes, the parent theme is Six. Can someone at WHMCS please provide input or a hotfix for this? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst II WHMCS Stephen Posted May 19 WHMCS Technical Analyst II Share Posted May 19 Hello @Damo We are aware of this issue and will resolve it in future software iterations. In the meantime, we have published an article on how to work with this to fix it at https://help.whmcs.com/m/v813/l/1943753-captcha-tpl-template-error-when-clicking-login-as-owner I hope this information helps, and apologies for any inconvenience. Kind regards, Stephen. 0 Quote Link to comment Share on other sites More sharing options...
Saroha Posted May 19 Share Posted May 19 Hi @Damo WHMCS team also post an articles for this and they also suggest the same what is ask . please try that 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.