Unable to apply data patch Magento\Theme\Setup\Patch\Data\RegisterThemes for module Magento_Theme

技术运维 127

Magento2在windows下特有的错误

In PatchApplier.php line 172:

  Unable to apply data patch Magento\Theme\Setup\Patch\Data\RegisterThemes for module Magento_Theme. Original excepti
  on message: Wrong file


In Gd2.php line 70:

  Wrong file

解决方法

打开/vendor/magento/framework/image/adapter/Gd2.php,找到

if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes)) 

替换为

if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !file_exists($filename)) 

有用的链接:https://mage2.pro/t/topic/6177

Post Comment