Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Attempting to render undefined template 'widget.aui.pageHeader'

Daniel Szabo October 3, 2015

I am trying to update my stash plugin for Bitbucket server 4, but I get this exception while rendering the soy template:

com.google.template.soy.tofu.SoyTofuException: Attempting to render undefined template 'widget,aui.pageHeader'.

{call widget.aui.pageHeader}

    {param content}
<h2>{getText('stash2slack.global.settings.heading')}</h2>
{/param}
{/call}

 

this was working fine in previous release in stash. I don't see where are the template changes documented for Bitbucket server 4. Thanks in advance!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Michael Heemskerk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 3, 2015

Hi Daniel,

You can find documentation about what has changed and how you can upgrade your add-on here: https://confluence.atlassian.com/bitbucketserver/how-to-update-your-add-on-779302412.html

The widget.aui.pageHeader template name hasn't changed. What has changed, is the name of server provided templates that you need to include as a dependency. In your atlassian-plugin.xml, you'll have to replace all occurrences of 

&lt;dependency&gt;com.atlassian.stash.stash-web-plugin:server-soy-templates&lt;/dependency&gt;

with

&lt;dependency&gt;com.atlassian.bitbucket.server.bitbucket-web:server-soy-templates&lt;/dependency&gt;

Hope this helps!

Daniel Szabo October 3, 2015

Thank you, I've deleted this dependency by mistake during the class rename party!

Adam
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 5, 2015

Also worth noting that this template (and that dependency) aren't really part of the API anyway. You probably should use the AUI templates directly - aui.page.pageHeader, aui.page.pageHeaderMain, and possibly aui.page.pageHeaderActions. https://bitbucket.org/atlassian/aui/src/bff1c0c19ec38f93a8829cd1203e9fcae7d13fe9/src/soy/page.soy?at=master&fileviewer=file-view-default#page.soy-217

TAGS
AUG Leaders

Atlassian Community Events