一直有使用这个主题,但是升级Magento2到2.2.5版本编译时,报错。。。明明之前也都是好好的。
报错的详细提示是:
Compilation was started.
Repositories code generation… 1/7 [====>-----------------------] 14% < 1 sec 58.0 MiBPHP Fatal error: DeclsaveConfig($path, $value, $scope, $scopeId) must be compatible with Magento\Framework\App\Config\ConfigResourco\Framework\App\Config\ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0) in /data/wwwroot/new.magentochifig.php on line 13
Fatal error: Declaration of Codazon\ThemeOptions\Model\ResourceModel\Config::saveConfig($path, $value, $scope,fig\ConfigResource\ConfigInterface::saveConfig($path, $value, $scope = Magento\Framework\App\Config\ScopeConfiot/new.magentochina.org/app/code/Codazon/ThemeOptions/Model/ResourceModel/Config.php on line 13
报错已经说得很清楚了,解决方法如下: