Forums OroPlatform OroPlatform – Installation/Technical Issues or Problems Issues with datagrid when upgrading 1.1.0 to 1.2.0

This topic contains 2 replies, has 2 voices, and was last updated by  Dima Soroka 3 years, 6 months ago.

  • Creator
  • #29343


    Hi there,

    I ran into issues when trying to update OroPlatform to 1.2.0. I followed the instructions from file (

    – updated my composer.json to use 1.2.0 instead of 1.1.0
    – did php composer-phar update –prefer-dist (instead of install…)
    – removed cache, js and css files

    When running “php app/console oro:platform:update –env=prod” I get the following php fatal error message addressing usage of a non existent service in one of our custom bundle’s services.yml (used inside a event listener service definition to extend datagrid logic on build.after event):

    Uncaught exception ‘Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException’ with message ‘The service “<SOME_SERVICE_NAME>” has a dependency on a non-existent service “oro_datagrid.datagrid.request_params”.’ in /vagrant/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:59
    Stack trace:
    #0 /vagrant/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(43): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processReferences(Array)
    #1 /vagrant/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(37): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processDefinition(Object(Symfony\Component\DependencyInjection\Definition))
    #2 /vagrant/vendor/ in /vagrant/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php on line 59

    As far as i can see, the oro_datagrid.datagrid.request_params service is not in use anymore in OroPlatform bundles, but I can not find a good example/documentation about the change in the docs of DataGridBundle.

    Could you shortly describe, *what* has changed here for defining those event listeners to extend datagrid logic in custom bundles and using the request parameters and how to use/define services/event listeners with version 1.2.*? Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #29344


    Ah, I think I got it: the parameters are now part of the BuildAfter-event-object ($event->getDatagrid()->getParameters()), usage of service not needed anymore.

    This is not the first time, that some core stuff changes wihtout any further notice ( is really short here). It would be great if you guys could try to document stuff like this as well somehow for those who are not only using the orocrm application but the platform components itself. No critics, just a wish for improvement! 😉 As you have to change the bundles using that core stuff yourself as well it should not be that difficult to just leave a note somewhere?


    Dima Soroka

    Thanks for feedback, we’ll do a better job on updating file.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.