Magento2: Magento 2.2.1 Issue after upgrade - Indexing not working - Class Magento\Framework\App\Config\ScopePool does not exist

Created on 28 Nov 2017  路  8Comments  路  Source: magento/magento2


Preconditions


  1. Magento 2.2.1
  2. PHP 7.0.25

Steps to reproduce

  1. Upgrade Magento 2.1.9 to 2.2.1
  2. Run Upgrade Command
  3. Run Indexing Command

Expected result

  1. Indexing should be working fine

Actual result

  1. Getting error while indexing, check following for indexing error.
    Catalog Search indexer process unknown error:
    Class Magento\Framework\App\Config\ScopePool does not exist
    Rolled back transaction has not been completed correctly.
  2. Category pages are not working

Clear Description Format is valid needs update

Most helpful comment

@mombrea yes i found it. You have to search your extension folder for usage of this class. In our case it was aitoc exportimport orders. Then replace it with scopeInterface parameter into constuctor.
public function __construct( \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\App\Config\ScopePool $scope ) {
replace with
public function __construct( \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\App\Config\ScopeConfigInterface $scope ) {

All 8 comments

@aasim110 , thank you for your report.
We were not able to reproduce this issue by following the steps you provided. Please provide more detailed steps to reproduce or try to reproduce this issue on a clean installation

After upgrate version:
Assign the permissions
Remove Var/Generation folder
Run setup:upgrade && setup:di:compile
Run indexing and clean cache

We've similar issue after upgrade from EE 2.1.9 to EE 2.2.0, but when running setup:di:compile.
screen shot 2017-11-29 at 15 47 52

hi @chonny, we were not able to reproduce this issue by following the steps provided. Please check this issue on vanilla installation without any extension if you have

@aasim110, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

We have the same problem upgrading from CE 2.1.9 to 2.2.2 in a multi-store install.
image

@chonny did you find a solution for this by chance?

@mombrea yes i found it. You have to search your extension folder for usage of this class. In our case it was aitoc exportimport orders. Then replace it with scopeInterface parameter into constuctor.
public function __construct( \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\App\Config\ScopePool $scope ) {
replace with
public function __construct( \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\App\Config\ScopeConfigInterface $scope ) {

@chonny That did the trick, thank you very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andreaskoch picture andreaskoch  路  3Comments

denis-g picture denis-g  路  3Comments

salelsol picture salelsol  路  3Comments

jzalenski picture jzalenski  路  3Comments

ostmond picture ostmond  路  3Comments