玛特弗里 - 多用途电子商务Magento 2市场places

玛特弗里 - 多用途电子商务Magento 2市场places 4.1.4 - Mar 11, 2026 Nulled

没有下载权限
I get this error when update new version 4.1.0
Exception #0 (Exception): Warning: Undefined variable $headCritical in app/design/frontend/MageBig/martfury/layout01/Magento_Theme/templates/root.phtml on line 12
the new variables in the root.phtml file all give me the same error.
PHP:
[QUOTE]
<?= /* @noEscape */ $headCritical ?>
<?= /* @noEscape */ $headAssets ?>
[/QUOTE]
If I delete them, it works.

Does anyone know why and how I can fix them?

i use Magento ver. 2.4.7-p5

Checking in the vendor/magento/module-theme/view/base/templates/root.phtml file

there are no these two variables, so I think it is only for version of magento 2.4.8.

Magento 2.4.8
https://github.com/magento/magento2/blob/2.4.8/app/code/Magento/Theme/view/base/templates/root.phtml
Magento 2.4.7-p5
https://github.com/magento/magento2.../Magento/Theme/view/base/templates/root.phtml
you can solve the problem with an if
PHP:
<?php if(isset($headCritical)): ?>
    <?= /* @noEscape */ $headCritical ?>
<?php endif; ?>
<?php if(isset($headAssets)): ?>
    <?= /* @noEscape */ $headAssets ?>
<?php endif; ?>
 
版主上次编辑:

A new update for Martfury - Marketplace Multipurporse eCommerce Magento 2 4.1.1 - Aug 06, 2025 is now available. Big thanks to the contribution from our member @mavi888 !

Martfury v4.1.1 - Aug 06, 2025
Martfury v4.1.1 - Aug 06, 2025
----------------------------------------------------------
- Upgrade complete package to Magento 2.4.8-p1
- Fixed quickview issue (no longer redirect to quick view page after add to cart if product has custom options file / date)
- Remove nano-sroller to reduce js file.
Read the rest of this update entry...
 

A new update for Martfury - Marketplace Multipurporse eCommerce Magento 2 Martfury v4.1.4 - Mar 11, 2026 is now available for free download. Big thanks to the contribution from our member @mavi888 !

Martfury v4.1.4 - Mar 11, 2026
Martfury v4.1.4 - Mar 11, 2026
----------------------------------------------------------
- Upgrade complete package to Magento 2.4.8-p4
- Fix some minor PHP 8.4 issues of Magefan blog

Martfury v4.1.3 - Oct 17, 2025
----------------------------------------------------------
- Upgrade complete package to Magento 2.4.8-p3
- Fix some minor PHP 8.4 issues
Read the rest of this update entry...
 
thanks for the amazing share...
 
顶部