# fastest主题运行在最新版2.2.5报错的解决方式

**URL:** https://forum.magentochina.org/t/fastest%E4%B8%BB%E9%A2%98%E8%BF%90%E8%A1%8C%E5%9C%A8%E6%9C%80%E6%96%B0%E7%89%88225%E6%8A%A5%E9%94%99%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E5%BC%8F/466
**Category:** Magento 2.X
**Tags:** 主题, 报错
**Created:** [2018 年8 月 24 日 13:38 UTC](https://forum.magentochina.org/t/fastest%E4%B8%BB%E9%A2%98%E8%BF%90%E8%A1%8C%E5%9C%A8%E6%9C%80%E6%96%B0%E7%89%88225%E6%8A%A5%E9%94%99%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E5%BC%8F/466 "2018-08-24T13:38:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### 作者： ![Shuai](https://forum.magentochina.org/user_avatar/forum.magentochina.org/shuai/32/3_2.png) [@Shuai](https://forum.magentochina.org/u/Shuai)
#### 发布日期： [2018 年8 月 24 日 13:38 UTC](https://forum.magentochina.org/t/fastest%E4%B8%BB%E9%A2%98%E8%BF%90%E8%A1%8C%E5%9C%A8%E6%9C%80%E6%96%B0%E7%89%88225%E6%8A%A5%E9%94%99%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E5%BC%8F/466/1 "2018-08-24T13:38:42Z")

</div>

![image](https://forum.magentochina.org/uploads/default/original/1X/4f114cbc42dcbcaa752e89470393f7e509b6f671.png)  
一直有使用这个主题，但是升级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

报错已经说得很清楚了，解决方法如下:

 ![image](https://forum.magentochina.org/uploads/default/original/1X/8592d4fb21b74b75baf7b6e019384bf9a2a293f1.png)

## 报错原因是因为该主题这个文件的写法不标准.
