0

After upgrading to the latest Magento Release 2.4.4 using PHP 8.1 the website stops loading returning be

1 exception(s):
Exception #0 (Exception): Warning: Undefined variable $builderContent in /home/example/public_html/app/design/frontend/Mgs/claue/Magento_Theme/templates/root.phtml on line 57

Exception #0 (Exception): Warning: Undefined variable $builderContent in /home/example/public_html/app/design/frontend/Mgs/claue/Magento_Theme/templates/root.phtml on line 57
<pre>#1 include() called at [vendor/magento/framework/View/Result/Page.php:329]
#2 Magento\Framework\View\Result\Page->renderPage() called at [vendor/magento/framework/View/Result/Page.php:262]
#3 Magento\Framework\View\Result\Page->render() called at [vendor/magento/framework/View/Result/Layout.php:171]
#4 Magento\Framework\View\Result\Layout->renderResult() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#5 MGS\Mpanel\Block\Framework\Page\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#6 MGS\Mpanel\Block\Framework\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [app/code/MGS/ThemeSettings/Plugin/ResultInterfaceAfter.php:59]
#7 MGS\ThemeSettings\Plugin\ResultInterfaceAfter->aroundRenderResult() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#8 MGS\Mpanel\Block\Framework\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#9 MGS\Mpanel\Block\Framework\Page\Interceptor->___callPlugins() called at [generated/code/MGS/Mpanel/Block/Framework/Page/Interceptor.php:113]
#10 MGS\Mpanel\Block\Framework\Page\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.php:120]
#11 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#12 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#13 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:30]
</pre>

I have removed cached and recompiled and reindexed and redeployed the Magento files and modules but the error still persists.

Remove the mentioned variable $builderContent that is loading the website but is not fully functional.

1
  • Looks like you are using a Third Party Theme, which is causing the error. Please show how the variable is placed there. Commented Jul 4, 2022 at 3:33

1 Answer 1

0

Look like your website using old template from old version Magento_Theme/templates/root.phtml which is trying to builderContent but it's not present in newly upgraded magento.

So, please copy new file from vendor/magento-theme/view/frontend/templates/root.phtml in your theme and also check old files code and if found necessary then try to merge both file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.