SharePoint doesn't work as intended

Opening a web part page in maintenance mode

Can’t access a web part page because of a broken web part? Yeah, that’s a classic issue – and it’s nicely ported into Modern world, too! In these cases, web part page maintenance mode comes in handy!

There’s a query parameter available for accessing it. For whatever reasons, it’s different for Classic and Modern mode, though. Why make things easy if you can make them dificult, right? 🙂 

Instructions for Modern Mode

Modern SharePoint is a whole new user experience. It’s more than a fresh look, it’s designed from the ground up to work on mobile devices, and it addresses dozens of nagging usability issues. So far, modern SharePoint exists only in SharePoint Online. (See more)

Even though I’m going to claim that it’s less likely to encounter complete and total meltdowns as it’s more Classic cousin, you can still break a page completely by messing up with ADAL authentication, for example.

So, looking a the urls, this is the parameter you’ll need to add to the url: ?maintenancemode=true

Just like shown below:

https://contoso.sharepoint.com/teams/teamx/SitePages/Home.aspx?maintenancemode=true  

See the source here.

At the very least Microsoft has made the maintenance mode a lot better in Modern experience – compare the screenshots and see the difference!

Maintenance Mode for a web part page in Modern SharePoint
Maintenance Mode for a web part page in Modern SharePoint

Instructions for Classic Mode

Classic is a term for the publishing-based SharePoint user experience and infrastructure, that existed before the Modern experience. And well, while it continues to exist for the foreseeable future, it’s slowly turning into an old-school solution. Still required for a lot of different workloads and use cases, and relevant for a long time – but compared with Modern, it often acts, looks and feels old.

To access the web part maintenance page in Classic SharePoint, you’ll need to add “Contents=1” to the url. See below:

https://contoso.sharepoint.com/sites/intranet/Pages/default.aspx?Contents=1

See the source here.

The maintenance page for classic SharePoint publishing pages is useful, but not as polished as with Modern. See screenshot below.

Maintenance Mode for a web part page in Classic SharePoint
Maintenance Mode for a web part page in Classic SharePoint

 

And that’s it! Good luck fixing the issue that required you to google this solution in the first place! 😉

The following two tabs change content below.

Antti K. Koskela

Solutions Architect / Escalations Engineer at Koskila / Norppandalotti Software / Valo Solutions
Antti Koskela is a proud digital native nomadic millenial full stack developer (is that enough funny buzzwords? That's definitely enough funny buzzwords!), who works as a Solutions Architect for Valo Intranet, the product that will make you fall in love with your intranet. Working with the global partner network, he's responsible for the success of Valo deployments happening all around the world. He's been a developer from 2004 (starting with PHP and Java), and he's been bending and twisting SharePoint into different shapes since MOSS. Nowadays he's not only working on SharePoint, but also on .NET projects, Azure, Office 365 and a lot of other stuff. This is his personal professional (e.g. professional, but definitely personal) blog.

2 thoughts on “Opening a web part page in maintenance mode

Let me know your thoughts!