Pim-community-dev: 2.2.1 - Error after upgrading

Created on 26 Mar 2018  ·  4Comments  ·  Source: akeneo/pim-community-dev

I've got an error after updating to 2.2.1.

Type error: Argument 2 passed to Akeneo\Bundle\ElasticsearchBundle\Cursor\CursorFactory::__construct() must implement interface Akeneo\Component\StorageUtils\Repository\CursorableRepositoryInterface, instance of Doctrine\ORM\EntityRepository given, called in

Can someone please help me with this. Not sure where to fix this.

question

Most helpful comment

Hello @ronn0.

This is a problem of Symfony dependency injection. A service definition changed between 2.1 and 2.2, but your Symfony cache is not up to date and still use the old service definition.

Did you clear the Symfony cache and restart your FPM service? If you have one or many queue daemon running for the imports/exports, you need to stop them first, then restart FPM and finally clear the Symfony cache. Then restart the daemon(s). Otherwise, you'll have issue with PHP opcache, which can lead to your issue.

Kind regards,
Damien.

All 4 comments

Hello @ronn0.

This is a problem of Symfony dependency injection. A service definition changed between 2.1 and 2.2, but your Symfony cache is not up to date and still use the old service definition.

Did you clear the Symfony cache and restart your FPM service? If you have one or many queue daemon running for the imports/exports, you need to stop them first, then restart FPM and finally clear the Symfony cache. Then restart the daemon(s). Otherwise, you'll have issue with PHP opcache, which can lead to your issue.

Kind regards,
Damien.

Hello @damien-carcel, restart Apache did the trick for me. Thanks. Didn't expect that.

Nice that it works :slightly_smiling_face:.

Good thing I found this thread. I ran into the same issue and had to restart php-fpm to solve it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grabelle picture grabelle  ·  3Comments

lpxavi picture lpxavi  ·  4Comments

ewallteam picture ewallteam  ·  6Comments

Piotr-Borek picture Piotr-Borek  ·  5Comments

jjanvier picture jjanvier  ·  4Comments