Nermin Posted June 11 Share Posted June 11 I got the below error after updating my WHMCS sustem Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. please advice TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in templates_c/1436264671debe8836f6b568f4b5f7cca6cb17d1_0.file.clientareahome.tpl.php:168 Stack trace: #0templates_c/1436264671debe8836f6b568f4b5f7cca6cb17d1_0.file.clientareahome.tpl.php(168): in_array('tickets', NULL) #1vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_68490c51bcafe2_45524810(Object(Smarty_Internal_Template)) #2vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #3 vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #4vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 0) #5vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #6 vendor/whmcs/whmcs-foundation/lib/Smarty.php(0): Smarty_Internal_TemplateBase->fetch('/home/nilehost/...', NULL, NULL, NULL, false, true, false) #7 /hs/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\Smarty->fetch('/home/nilehost/...') #8vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea->outputWithoutExit() #9 vendor/whmcs/whmcs-foundation/lib/Http/Message/AbstractViewableResponse.php(0): WHMCS\ClientArea->getOutputContent() #10vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(41): WHMCS\Http\Message\AbstractViewableResponse->getBody() #11 vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(31): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emitBody(Object(WHMCS\ClientArea)) #12clientarea.php(0): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(WHMCS\ClientArea)) #13 {main} 0 Quote Link to comment Share on other sites More sharing options...
Nermin Posted June 12 Author Share Posted June 12 Hello, In the latest WHMCS update (version 8.13.1), I can no longer find the username and password details for my clients. How can I customize or update these credentials when a client requests a password change? I'm encountering issues after this update—any help would be appreciated. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted June 13 WHMCS Support Manager Share Posted June 13 Hi @Nermin, 1. This isn't an error we've had reported before. Are you perhaps using a custom Theme? If so, does the issue persist if you switch to the stock Twenty One theme? 2. In WHMCS v8.x, in line with best-practice security design, staff cannot view a User's current password. If you need to reset a client's password for them you may do so from the Users tab by following these steps: https://docs.whmcs.com/8-13/clients/client-management-tutorials/set-a-user-password-manually/ For more information, see: https://docs.whmcs.com/8-13/clients/client-management-tutorials/reset-a-user-password/ 0 Quote Link to comment Share on other sites More sharing options...
Nermin Posted June 14 Author Share Posted June 14 Hello, If so, does the issue persist if you switch to the stock Twenty One theme? >> When I switched to the Twenty One theme, the errors disappeared and the login area worked properly. However, I’d like to continue using my NH theme, which I’ve been using for years without issues. Could you clarify what changed in the latest update that caused the error below? Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/nilehost/public_html/clients/templates_c/1436264671debe8836f6b568f4b5f7cca6cb17d1_0.file.clientareahome.tpl.php:168 Stack trace: #0 /home/nilehost/public_html/clients/templates_c/1436264671debe8836f6b568f4b5f7cca6cb17d1_0.file.clientareahome.tpl.php(168): in_array('tickets', NULL) #1 /home/nilehost/public_html/clients/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_68490c51bcafe2_45524810(Object(Smarty_Internal_Template)) #2 /home/nilehost/public_html/clients/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #3 /home/nilehost/public_html/clients/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #4 /home/nilehost/public_html/clients/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 0) #5 /home/nilehost/public_html/clients/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #6 /home/nilehost/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Smarty.php(0): Smarty_Internal_TemplateBase->fetch('/home/nilehost/...', NULL, NULL, NULL, false, true, false) #7 /home/nilehost/public_html/clients/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\Smarty->fetch('/home/nilehost/...') #8 /home/nilehost/public_html/clients/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea->outputWithoutExit() #9 /home/nilehost/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Http/Message/AbstractViewableResponse.php(0): WHMCS\ClientArea->getOutputContent() #10 /home/nilehost/public_html/clients/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(41): WHMCS\Http\Message\AbstractViewableResponse->getBody() #11 /home/nilehost/public_html/clients/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(31): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emitBody(Object(WHMCS\ClientArea)) #12 /home/nilehost/public_html/clients/clientarea.php(0): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(WHMCS\ClientArea)) #13 {main} please help to solve the error in my custom theme. Thanks, 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted June 14 WHMCS Support Manager Share Posted June 14 Hi @Nermin, Thanks for confirming. Please make sure you've applied any updates from the theme vendor for compatibility with v8.13 and the latest PHP versions. 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.