Link to home
Start Free TrialLog in
Avatar of wsaharem
wsaharemFlag for United States of America

asked on

Sharepoint Cannot find ContentPlaceHolder

We had a programmer create a customer master publishing page.    We want to change the page back to a default master page, but when we change it in site settings, we get the following error.

Cannot find ContentPlaceHolder 'PlaceHolderRightActions' in the master page '/_catalogs/masterpage/v4_custom.master', verify content control's ContentPlaceHolderID attribute in the content page.

I've tried a few different master pages and they all return the same error.    The only one that does not is the customized master page.
ASKER CERTIFIED SOLUTION
Avatar of GeorgeGergues
GeorgeGergues

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You need to check if your deployed farm or sanboxed solutions, and see if those projects are using the "PlaceHolderRightActions" content place holder.  You can simply comment it out and that should remove the error.  Should look like <asp:ContentPlaceHolder Id="content123" runat="server" contentplaceholderid="PlaceHolderRightActions">...</asp:contentplaceholder>

You could always just add that placeholder into your default.master and then just hide it using client side code css.  If you hide it using visible="false" or server side code, I find it gives the same error

Avatar of wsaharem

ASKER

Just removing the tag was not sufficient.  I had to put the tag in the new master page, but commented it out.   That allowed the new master page to load.  Odd, but it worked.