Jump to content

WHMCS after updating (PHP error)


Recommended Posts

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}

Link to comment
Share on other sites

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.

 

Screenshot 2025-06-12 at 12.07.46 PM.png

Link to comment
Share on other sites

  • WHMCS Support Manager

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/

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated