Skip to content

magento man

Magento 2 – Change theme for product to “Magento Blank” not working – invalid template file

I try to change the theme for a product to the default Magento Blank theme. But I get this error: Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: ‘Company_Base::header/mobile/icons/search.phtml’ in module: ” block’s name: ‘mobile-search’ The file Company_Base::header/mobile/icons/search.phtml is from my custom… Read More »Magento 2 – Change theme for product to “Magento Blank” not working – invalid template file

PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in

magento.cron log return error: PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Dom.php:449 Stack trace: #0 /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Dom.php(116): MagentoFrameworkConfigDom->_initDom(‘<?xml version=”…’) #1 /home/mall/domains/myweb.com/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): MagentoFrameworkConfigDom->__construct(‘<?xml version=”…’, Object(MagentoFrameworkAppArgumentsValidationState), Array, ‘xsi:type’, NULL) #2 /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(151): MagentoFrameworkObjectManagerConfigReaderDom->_createConfigMerger(‘Magento\Framewo…’, ‘<?xml version=”…’) #3 /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(132): MagentoFrameworkConfigReaderFilesystem->_readFiles(Object(MagentoFrameworkConfigFileIterator)) #4 /home/mall/domains/myweb.com/public_html/vendor in… Read More »PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in

What is role of ‘type’ => ‘static’ in Magento 2 data patch?

Recently I saw Setup/Patch/Data with ‘type’ => ‘static’ $eavSetup->addAttribute( MagentoCatalogModelProduct::ENTITY, ‘attribute_code’, [ ‘group’ => ‘General’, ‘label’ => ‘Product Type ID’, ‘type’ => ‘static’, ‘input’ => ‘select’, ‘source’ => VendorModuleModelSourceSource::class, ‘required’ => false, ‘sort_order’ => 1, ‘global’ => Attribute::SCOPE_GLOBAL, ‘used_in_product_listing’ =>… Read More »What is role of ‘type’ => ‘static’ in Magento 2 data patch?