Damo Posted Monday at 07:50 AM Share Posted Monday at 07:50 AM 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 Monday at 11:09 AM Share Posted Monday at 11:09 AM 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 Wednesday at 09:32 AM Author Share Posted Wednesday at 09:32 AM 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 Friday at 09:42 AM Share Posted Friday at 09:42 AM (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 Friday at 09:46 AM by Saroha 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted 21 hours ago Author Share Posted 21 hours ago 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 21 hours ago Share Posted 21 hours ago (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 21 hours ago by Saroha 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted 18 hours ago Author Share Posted 18 hours ago 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...
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.