tomsmith88 Posted December 12, 2019 Share Posted December 12, 2019 I am experiencing an issue when going to checkout. I have turned on error reporting and this creates the following error message: Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. Error: Call to a member function validateGateways() on null in /home/sites/9b/7/7f14adab66/whmcs/templates_c/822eea1de08ba5c5b9727426ead4e3b3e4330a28_0.file.checkout.tpl.php:683 Stack trace: #0 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_5df16301bc7a33_86290747(Object(Smarty_Internal_Template)) #1 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #2 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #3 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(385): Smarty_Internal_Template->render() #4 /home/sites/9b/7/7f14adab66/whmcs/templates_c/edecdfafd8cc9dcdc1b8a374f94aa631ee4cde75_0.file.viewcart.tpl.php(30): Smarty_Internal_Template->_subTemplateRender('file:orderforms...', NULL, NULL, 0, 3600, Array, 0, true) #5 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_5df14a93838a38_21235758(Object(Smarty_Internal_Template)) #6 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #7 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #8 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 0) #9 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #10 /home/sites/9b/7/7f14adab66/public_html/hosting/vendor/whmcs/whmcs-foundation/lib/Smarty.php(0): Smarty_Internal_TemplateBase->fetch('/home/sites/9b/...', NULL, NULL, NULL, false, true, false) #11 /home/sites/9b/7/7f14adab66/public_html/hosting/includes/clientareafunctions.php(0): WHMCS\Smarty->fetch('/home/sites/9b/...') #12 /home/sites/9b/7/7f14adab66/public_html/hosting/cart.php(0): outputClientArea('viewcart', false, Array) #13 {main} Can anyone help? A little stuck! Many thanks in advance, Tom 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 13, 2019 Share Posted December 13, 2019 Hi Tom, which WHMCS release version? which template?? which orderform template??? and have you made any changes to these templates ???? 0 Quote Link to comment Share on other sites More sharing options...
tomsmith88 Posted December 14, 2019 Author Share Posted December 14, 2019 21 hours ago, brian! said: Hi Tom, which WHMCS release version? which template?? which orderform template??? and have you made any changes to these templates ???? Hi Brian thanks for your reply. Using WHMCS release 7.7.0 (licence bought through a reseller so this is the latest version available to me). My update screen tells me I can "update" to version 7.5.1 which sounds like a backwards step? Template is Simplicity from impressive themes link Order form template is simplicity compare from the same vendor. I should note that I can change both the site template and order form template to the standard ones (six and any of the order forms) which makes no difference whatsoever to the error message I am getting. The only changes I have made to the template(s) are css changes, nothing whatsoever with the actual code of the template. Once again many thanks for your help, Tom 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 15, 2019 Share Posted December 15, 2019 On 14/12/2019 at 11:37, tomsmith88 said: Using WHMCS release 7.7.0 (licence bought through a reseller so this is the latest version available to me). My update screen tells me I can "update" to version 7.5.1 which sounds like a backwards step? if you get your license from a reseller, you always have the option of opening a ticket with Reseller Support - there's no need to log in to open a ticket with them - and if it's affecting Six & SC too, then they should help... if it was an issue purely with the custom template, they may not. if you get your license directly from WHMCS - https://www.whmcs.com/support/ if you get your license from a reseller / host - https://www.whmcs.com/reseller-support/ On 14/12/2019 at 11:37, tomsmith88 said: The only changes I have made to the template(s) are css changes, nothing whatsoever with the actual code of the template. that error suggests there's an incompatibility in the templates or possibly you don't have any valid payment gateways enabled... difficult to know without seeing the site. 0 Quote Link to comment Share on other sites More sharing options...
tomsmith88 Posted December 19, 2019 Author Share Posted December 19, 2019 Just an update in case anybody else comes across this thread having the same problem. The problem was caused by an incompatibility between the version of WHMCS and the version of the template I was using. Downloaded an older version of the template from the template provider and all is working well again. Many thanks again to user brian! for asking the right questions 😁 Tom 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.