Jump to content

Error: Call to undefined method WHMCS\View\Template::getTemplateConfigValues() after upgrade


Recommended Posts

Upgraded to 8.11 this weekend now the client area is down. The admin area still works. The error is below. Maybe something wrong with composer? I've already logged a ticket and hoping for a swift reply but we can't process any orders and this is looking really bad for our existing and new customers.

 

Error: Call to undefined method WHMCS\View\Template::getTemplateConfigValues() 

 

Full output:

 

Oops!
Something went wrong and we couldn't process your request.
Please go back to the previous page and try again.

For additional assistance, please reference the WHMCS TroubleShooting Guide »

Error: Call to undefined method WHMCS\View\Template::getTemplateConfigValues() in /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/ClientArea.php:0
Stack trace:
#0 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea->registerDefaultTPLVars()
#1 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea->outputWithoutExit()
#2 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Http/Message/AbstractViewableResponse.php(0): WHMCS\ClientArea->getOutputContent()
#3 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/CallableHandler.php(39): WHMCS\Http\Message\AbstractViewableResponse->getBody()
#4 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/fast-route/src/FastRoute.php(96): Middlewares\Utils\CallableHandler::execute()
#5 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/HandleProcessor.php(0): Middlewares\FastRoute->process()
#6 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\HandleProcessor->_process()
#7 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\HandleProcessor->process()
#8 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#9 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#10 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): Middlewares\Utils\Delegate->process()
#11 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process()
#12 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process()
#13 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#14 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#15 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): Middlewares\Utils\Delegate->process()
#16 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process()
#17 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process()
#18 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#19 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#20 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): Middlewares\Utils\Delegate->process()
#21 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): WHMCS\Route\Middleware\BackendPsr7Response->_process()
#22 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendPsr7Response->process()
#23 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#24 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#25 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process()
#26 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendDispatch.php(0): Middlewares\Utils\Dispatcher->dispatch()
#27 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\BackendDispatch->_process()
#28 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendDispatch->process()
#29 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#30 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#31 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutePathMatch.php(0): Middlewares\Utils\Delegate->process()
#32 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutePathMatch->_process()
#33 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutePathMatch->process()
#34 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#35 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#36 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/WhitelistFilter.php(0): Middlewares\Utils\Delegate->process()
#37 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): WHMCS\Route\Middleware\WhitelistFilter->_process()
#38 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\WhitelistFilter->process()
#39 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#40 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#41 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableClientModuleRequest.php(0): Middlewares\Utils\Delegate->process()
#42 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableClientModuleRequest->_process()
#43 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableClientModuleRequest->process()
#44 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#45 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#46 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableAdminRequestUri.php(0): Middlewares\Utils\Delegate->process()
#47 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableAdminRequestUri->_process()
#48 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableAdminRequestUri->process()
#49 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#50 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#51 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestUri.php(0): Middlewares\Utils\Delegate->process()
#52 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestUri->_process()
#53 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestUri->process()
#54 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#55 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#56 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestQueryUri.php(0): Middlewares\Utils\Delegate->process()
#57 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestQueryUri->_process()
#58 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestQueryUri->process()
#59 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#60 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#61 /home/ourdomain/domains/my.ourdomain.com/public_html/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process()
#62 /home/ourdomain/domains/my.ourdomain.com/public_html/index.php(0): Middlewares\Utils\Dispatcher->dispatch()
#63 {main}

 

Link to comment
Share on other sites

3 hours ago, Vander Host said:

Upgraded to 8.11 this weekend now the client area is down.

from what version ? I see the client area is still down. 😞

3 hours ago, Vander Host said:

Maybe something wrong with composer?

these days, usually only WHMCS could give you a definitive answer for specific v8 errors like this... but depending on the version you came from, then the first thing I would have tried might have been a manual update (assuming you used the automatic updater) - ideally using the full zip, or perhaps incremental patch if only coming from v8.1.

did you take backups (database and files) before updating ??

also, depends if old addons/hooks are in play.... i'm assuming you don't use a custom client area theme as it looks as though you're using Six.

Link to comment
Share on other sites

from what version ?

8.1 if I recall correctly.

I see the client area is still down.

Yep, business, and reputation, is hurting.

you a definitive answer for specific v8 errors like this

On Saturday I did the automatic update which didn't work and failed with an error. I immediately downloaded the full version, overwrote all files, and when I noticed the admin area was working went on with my other administration tasks. Today I tried re-installing fresh 8.11 file over the installation, twice, but no luck.

perhaps incremental patch if only coming from v8.1.

I'll try that next as soon as WHMCS.com is up again. For now, WHMCS.com cannot connect to database.

> did you take backups (database and files) before updating ??

Yep got backup of database and files. Will have to go back two or three days and try and possibly restore the transactions over the last few days. I noticed downgrading not possible because database now on 8.11.

i'm assuming you don't use a custom client area theme as it looks as though you're using Six.

Good assumption. Our entire installation is stock as much as possible to avoid uncomfortable upgrading problems.

WHMCS replied to my ticket. They asked how I upgraded and told me to overwrite all files. I've done that three times already. Hopefully they'll come it with another solution soon.

Link to comment
Share on other sites

6 minutes ago, Vander Host said:

perhaps incremental patch if only coming from v8.1.

I'll try that next as soon as WHMCS.com is up again. For now, WHMCS.com cannot connect to database.

I think you can forget about the incremental patch in your situation - there should be nothing in there that isn't already in the full zip.

11 minutes ago, Vander Host said:

WHMCS replied to my ticket. They asked how I upgraded and told me to overwrite all files. I've done that three times already. Hopefully they'll come it with another solution soon.

i'm surprised support didn't ask for details of the update log (at least for the first automatic attempt) - that might have given them a clue as to what went wrong in the initial process.

it still might be worth taking a look yourself in the tblupdatelog database table and seeing if anything listed for the first auto update you did recently gives a specific error...

https://help.whmcs.com/m/updating/l/679709-automatic-update-failed-identifying-the-problem

... that might at least give you something to search here for, or pass the information on to Support. 🙂

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @Vander Host,

The error you have reported here has been observed to be caused by an outdated Geolocation Hook addon from the developer ModulesGarden. In certain WHMCS v8 versions this can cause the above error. You would either need to remove this hook from your installation, by deleting/moving aside the file at /includes/hooks or contact the vendor direct, who should be happy to supply you with an updated version of the file in order to fix this issue.

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @Vander Host,

I can see that in your ticket, the analyst suggested uploading a fresh set of the WHMCS files, overwriting the existing files. This is another potential cause of this error as you encountered a permissions releated error attempting the automatic update process: https://help.whmcs.com/m/updating/l/679709-automatic-update-failed-identifying-the-problem

WHMCS staff did not recommend removing or deleting files en-mass.

My apologies for any inconvenience caused.

 

 

Link to comment
Share on other sites

Hi John,

WHMCS staff did not recommend removing or deleting files en-mass.

To be clear, correct, yes, indeed, WHMCS did not say I must delete everything and start from scratch. As mentioned before I chose this path after receiving the standard reply from the help desk. It worked out well doing that because I I knew immediately where to find 95% of my customizations, except for the theme. Anyway I've ditched the theme and will go with 2021 because it's too complicated to keep the software current and have a custom theme.

uploading a fresh set of the WHMCS files, overwriting the existing files. This is another potential cause of this error

Ok great as long as they now have the same information with regards to the Geolocation, which, for the benefits of our other readers, is 

Geolocation Hook For WHMCS

https://www.docs.modulesgarden.com/Geolocation_Hook_For_WHMCS

This is what caused the problem in the first place.

 

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