JS error and ribbon display problems with calendar

Jul 3, 2015 at 10:28 AM
With the starter publishing master page for SP 2010 I get a script error in IE 10 (using Compatibility View) when clicking between the ribbon tabs "Events" and "Calendar" and the "Browse" tab when using the regular calendar view for a calendar:

The error shows up in the IE console:

SCRIPT5007: Unable to get property 'get_rawElement' of undefined or null reference
sp.ui.applicationpages.calendar.js, line 2 character 112312


The visible effect is that when you click on the "Events" and "Calendar" tabs in the ribbon, the relevant ribbon controls do not show up. You can make them appear by clicking on the "Browser" tab in the ribbon, and then clicking on one of the times of day in main window. So basically it's a ribbon display problem.

I don't get this error if I switch the master page for the site to v4.master. The site has Publishing Infrastructure (Site collection) and Publishing (site) features activated.

Has anyone else seen this or got any advice? Thanks