'Pub' is undefined error

I have created a custom masterpage, and page layout. When attempted to edit the custom layout page, i am getting the following error:

pub error
I have verified the pub delegate control is placed within the master page.

                <asp:ContentPlaceHolder ID="SPNavigation" runat="server">
                    <SharePoint:DelegateControl runat="server" ControlId="PublishingConsole" ID="PublishingConsoleDelegate">
                    </SharePoint:DelegateControl>
                </asp:ContentPlaceHolder>

Open in new window

HomePageLayout.aspx
brendanlefavreAsked:
Who is Participating?
 
brendanlefavreAuthor Commented:
The masterpage needed to be updated, and the problem was resolved.
0
 
colly92002Commented:
You need to include a reference to: "SP.UI.Pub.Ribbon.js" in your page somewhere (see if its loaded using developer tools in IE/Chrome  ).

However, as this should come automatically in your masterpage, I would guess its because a feature is not enabled, so check that the feature: "SharePoint Server Publishing" is enabled for the site.
0
 
brendanlefavreAuthor Commented:
issue resolved
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.