'Pub' is undefined error

Posted on 2014-08-20
Last Modified: 2014-10-13
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">

Open in new window

Question by:brendanlefavre
    LVL 15

    Assisted Solution

    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.

    Accepted Solution

    The masterpage needed to be updated, and the problem was resolved.

    Author Closing Comment

    issue resolved

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now