OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Error when viewing a User in ORO BAP

This topic contains 5 replies, has 2 voices, and was last updated by  Ashley Dawson 8 years, 9 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #33884

    Ashley Dawson
    Participant

    Hi,

    I’m trying to extend the ORO BAP for my own application and I’m running into the following exception when trying to view a user:


    An exception has been thrown during the rendering of a template ("Unable to find template "OroUserBundle:User:info.html.twig".") in /var/www/iris-ba/vendor/oro/platform/src/Oro/Bundle/UIBundle/Resources/views/widget_loader.html.twig at line 16.

    It looks like the system is trying to find a template for the UserBundle:info.html.twig widget and failing to find it.

    This is on a fresh installation of the ORO BAP without any modification.

    Please help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #33885

    Ashley Dawson
    Participant

    I think i’ve found the problem. It looks like the view listener in the UIBundle does not have a high enough priority.

    See line 45 of Oro/Bundle/UIBundle/Resources/config/services.yml

    If I add “priority: 255” for this listener then the widgets work.

    Should I raise a pull request for this?

    #33886

    ignat
    Participant

    Hi Ashley,

    I’ll try to reproduce this issue. Please provide next information:

    1) What version of Oro is used.
    2) Output of command “php composer.phar show -i | grep oro”.

    Thanks,
    Ignat

    #33887

    Ashley Dawson
    Participant

    Hi,

    Thanks for your reply. Here is the dump of that command


    oro/doctrine-extensions 1.0.8 Doctrine Extensions for MySQL and PostgreSQL.
    oro/platform 1.7.4 Business Application Platform (BAP)

    Kind regards,

    Ashley

    #33888

    ignat
    Participant

    Hi Ashley,

    I wasn’t able to reproduce this issue out of the box. But after changing priority of oro_ui.view.listener to -1 this issue appeared. I guess in some environment order or oro_ui.view.listener and sensio_framework_extra.view.listener can be different and it causes this issue.

    I have created PR with fix. It will available in master after merge or in 1.7.5 when it will be released.

    Thanks,
    Ignat

    #33889

    Ashley Dawson
    Participant

    Thanks Ignat, much appreciated

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

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top