Unable to apply data patch Magento\Theme\Setup\Patch\Data\RegisterThemes for module Magento_Theme
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))