Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2.1 - Error after upgrading #7874

Closed
roerlemans opened this issue Mar 26, 2018 · 4 comments
Closed

2.2.1 - Error after upgrading #7874

roerlemans opened this issue Mar 26, 2018 · 4 comments
Assignees
Labels
Milestone

Comments

@roerlemans
Copy link

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.

@damien-carcel damien-carcel added this to the 2.2.x milestone Mar 26, 2018
@damien-carcel damien-carcel self-assigned this Mar 26, 2018
@damien-carcel
Copy link
Contributor

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.

@roerlemans
Copy link
Author

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

@damien-carcel
Copy link
Contributor

Nice that it works 🙂.

@kanduvisla
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants