I'm trying to make some changes to a master page, the thing I actually want to do is test the ReplaceColor attribute within the CSS, however it seems as soon as I do so, the whole 'change the look' system breaks. Has anyone experienced this or can anyone make some suggestions on what I might do to fix it? These are the steps I've taken:
- Create a new Publishing Site
- Map a network drive to the http:\machineName_catalogs\masterpage
then either modify the built in master page:
- Change the Look to one that uses the oslo master page (I chose sea monster).
- Edit the oslo.html in the mapped network drive.
- Modify the example DIV to read - "This area will be filled in by content you create in your page layouts!". That is, change a '.' to a '!'.
- Attempt to change the look again (the preview never loads, clicking ok causes an error - detailed below).
I've also tried creating a minimal master page and going through the same steps (I copied oslo.preview to ensure it would appear in the change the look, I redirected the master page of sea monster in composed looks to my new master page, I published my master page). This gave me exactly the same error.
The preview never loads:
The error message as captured by the ULS log is:
The layout URL submitted to the Design Builder is invalid.
System.ArgumentException: Value does not fall within the expected range.
at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
at Microsoft.SharePoint.ApplicationPages.DesignEditor.EnsureMasterPageIsValid(String layoutUrl) StackTrace:
at onetnative.dll: (sig=6aba1f5f-ccc4-4590-af00-b8ffe7fe99a0|2|onetnative.pdb, offset=28BE6)
at onetnative.dll: (offset=152A9)
Even if I revert the change the HTML file for the master, this doesn't fix the 'Change the Look'. I need to replace the .master with an original to fix it. Very frustrating!