Error when compiling after upgrade to 2.2.6

I have installed the latest version of megamall and the associated modules, and just upgraded to 2.2.6 without an issue, but when i run “php bin/magento setup:di:compile” I get the following error.
14% < 1 sec 64.0 MiBPHP Fatal error:  Declaration of Ubertheme\UbThemeHelper\Model\ResourceModel\Config::saveConfig($path, $value, $scope, $scopeId) must be compatible with Magento\Framework\App\Config\ConfigResource\ConfigInterface::saveConfig($path, $value, $scope = Magento\Framework\App\Config\ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0) in /chroot/home/zappauto/dev.zappautomation.co.uk/html/app/code/Ubertheme/UbThemeHelper/Model/ResourceModel/Config.php on line 13

3 answers

Profile photo of Ziven Staff 84830.00 $tone October 24, 2018
Public

Hi There,

when i run “php bin/magento setup:di:compile” I get the following error.
14% < 1 sec 64.0 MiBPHP Fatal error:

This error indicates that the themehelper from the theme package has not been updated accordingly. I add a quick fix to resolve this issue by changing the file: /html/app/code/Ubertheme/UbThemeHelper/Model/ResourceModel/Config.php
I noticed that you’re using the old UB Megamall theme ver1.0.8 which is not fully compatible with Magento 2.2.6. 
Please consider updating to the latest UB MegaMall ver 1.1.0 plus the latest built-in extensions (UB Mega Menu…) for Magento 2.2.6. 

Best Regards,
Ziven.
 

#1
Profile photo of zappautomation 1390.00 $tone October 24, 2018
Public

Thanks, I have updated to version 1.1.0 and all of the associated extensions that come with the package. 
Also prior to updating to 1.1.0, the site was on version 1.0.9.
There were two files that i copied across due to changes that were made.
app/design/frontend/Ubertheme/megamall/web/css/source/_sections.less
app/design/frontend/Ubertheme/megamall/Magento_Catalog/web/css/source/module/_listings.less
I did look for the differences, and the only differences i saw were due to the changes that you made

#2
Profile photo of Ziven Staff 84830.00 $tone October 24, 2018
Public

Hi There,

I did look for the differences, and the only differences i saw were due to the changes that you made

I am not quite sure about the specific changes you made, so please continue with the update. 
In case you run across any new issue, please let me know. 

Best Regards.
Ziven.

#3

Please login or Register to Submit Answer

Written By

Comments