ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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

  • Creator
    Topic
  • #11885

    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
  • #11886

    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?

    #11909
    ignat
    ignat
    Oro Core

    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

    #11921

    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

    #11923
    ignat
    ignat
    Oro Core

    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

    #11926

    Ashley Dawson
    Participant

    Thanks Ignat, much appreciated

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

You must be logged in to reply to this topic.