mrtechnik Posted February 27, 2021 Share Posted February 27, 2021 (edited) I have just updated to 8.1.3 from 8.1.1 and I have enabled the new Twenty-One theme. However, I get the below error: Error: Call to undefined method stdClass::getRoutePath() in /home/weave/whmcs_data/templates_c/601f3809178a2f6321d022d6d616a4786a060d56_0.file.homepage.tpl.php:44 The Twenty-One theme is unedited and all I Have done it copy and pasted it from the download across to my server. If I revert the theme back to my old custom one the site works without a hitch. Here is the full error: Error: Call to undefined method stdClass::getRoutePath() in /home/weave/whmcs_data/templates_c/601f3809178a2f6321d022d6d616a4786a060d56_0.file.homepage.tpl.php:44Stack trace:#0 /home/weave/whmcs/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_603a85b1ac1c15_78072802()#1 /home/weave/whmcs/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()#2 /home/weave/whmcs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()#3 /home/weave/whmcs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render()#4 /home/weave/whmcs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()#5 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Smarty.php(0): Smarty_Internal_TemplateBase->fetch()#6 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\Smarty->fetch()#7 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea->outputWithoutExit()#8 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Http/Message/AbstractViewableResponse.php(0): WHMCS\ClientArea->getOutputContent()#9 /home/weave/whmcs/vendor/middlewares/utils/src/CallableHandler.php(39): WHMCS\Http\Message\AbstractViewableResponse->getBody()#10 /home/weave/whmcs/vendor/middlewares/fast-route/src/FastRoute.php(96): Middlewares\Utils\CallableHandler::execute()#11 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/HandleProcessor.php(0): Middlewares\FastRoute->process()#12 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\HandleProcessor->_process()#13 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\HandleProcessor->process()#14 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#15 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#16 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): Middlewares\Utils\Delegate->process()#17 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process()#18 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process()#19 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#20 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#21 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): Middlewares\Utils\Delegate->process()#22 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process()#23 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process()#24 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#25 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#26 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): Middlewares\Utils\Delegate->process()#27 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): WHMCS\Route\Middleware\BackendPsr7Response->_process()#28 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendPsr7Response->process()#29 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#30 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#31 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process()#32 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendDispatch.php(0): Middlewares\Utils\Dispatcher->dispatch()#33 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\BackendDispatch->_process()#34 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendDispatch->process()#35 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#36 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#37 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutePathMatch.php(0): Middlewares\Utils\Delegate->process()#38 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutePathMatch->_process()#39 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutePathMatch->process()#40 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#41 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#42 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/WhitelistFilter.php(0): Middlewares\Utils\Delegate->process()#43 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): WHMCS\Route\Middleware\WhitelistFilter->_process()#44 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\WhitelistFilter->process()#45 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#46 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#47 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableClientModuleRequest.php(0): Middlewares\Utils\Delegate->process()#48 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableClientModuleRequest->_process()#49 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableClientModuleRequest->process()#50 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#51 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#52 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableAdminRequestUri.php(0): Middlewares\Utils\Delegate->process()#53 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableAdminRequestUri->_process()#54 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableAdminRequestUri->process()#55 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#56 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#57 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestUri.php(0): Middlewares\Utils\Delegate->process()#58 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestUri->_process()#59 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestUri->process()#60 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#61 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#62 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestQueryUri.php(0): Middlewares\Utils\Delegate->process()#63 /home/weave/whmcs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestQueryUri->_process()#64 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestQueryUri->process()#65 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()#66 /home/weave/whmcs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()#67 /home/weave/whmcs/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process()#68 /home/weave/whmcs/index.php(0): Middlewares\Utils\Dispatcher->dispatch()#69 {main} Does anyone have a suggest of why this is happening? I have tried other pages like the client login page and the base store page and that seems to work. Just the homepage is having issues. Edited February 27, 2021 by WeaveStudios 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted February 27, 2021 Share Posted February 27, 2021 (edited) There are changes to the template between 8.1.1 and 8.1.3. Do you have the latest version of the theme uploaded? I wasn't sure by reading your post. https://github.com/WHMCS/templates-twenty-one/compare/v8.1.1-release.1...v8.1.3-release.1 Edited February 27, 2021 by evolve hosting 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 28, 2021 Share Posted February 28, 2021 17 hours ago, evolve hosting said: There are changes to the template between 8.1.1 and 8.1.3. if I was being a pedant, I would say the changes were between v8.1.1 and v8.1.2 - v8.1.3 wouldn't have included any template changes. 🙂 21 hours ago, WeaveStudios said: I have tried other pages like the client login page and the base store page and that seems to work. Just the homepage is having issues. all fixed now? homepage redirects to login, so difficult to know.. btw a routepath error can often be an issue related to the Friendly URL settings. 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.