Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Master Page Error

  Asked By: Carter    Date: Nov 28    Category: Sharepoint    Views: 2114

I've got a sporadic error. I've been modifying a custom master page
_catalogs/masterpage/customdir/Custom.master and set it as the Site
Master and System master. Now when I click on the Master Page library
link I get an error "an unexpected error occurred." The error log entry
appears below. Apparantly default.master doesn't have a Calendar
Navigator. I've never modified default.master. Does my Custom.master
replace default master? If I open _catalogs/masterpage/default.master
from within SharePoint Designer, the master page does indeed have a
Calendar Navigator placeholder. So does my Custom.master. I checked in
and published Custom.master in case that was the problem. I changed the
site and system master pages to BlueBand.master and I still get the
error. This all happens logged in as my personal domain account.
Restarting IIS doesn't change anything.

The funny thing is when I log in as the system user, I no longer get
this error. All pages use BlueBand as I configured before. I can access
the master page library and I force discard checkout to all files. Then
I log back in as me, and the error comes right back.

Any ideas?



4 Answers Found

Answer #1    Answered By: Fabian Gross     Answered On: Nov 28

Nevermind, there was something else quirky and it didn't discard

I'm still interested in why even when I change  everything to use
BlueBand.master, it works logged  in as one account, but logged in as the
Master Page author, it still tries to use customdir/Custom.master.

Answer #2    Answered By: Drew Armstrong     Answered On: Nov 28

Might be that the MasterPage author can see custom.master when it is
checked out.

Answer #3    Answered By: Marshall Castro     Answered On: Nov 28

~masterurl doesn't have a path. The full tokens
~masterurl/default.master and ~masterurl/custom.master when used in the
masterpage declaration of an aspx page  are replaced at runtime by the
masterurl and custommasterurl properties of the web object. When you
set the Site master  and System Master properties in a publishing site
you are setting the ~masterurl/default.master properties of publishing
and non-publishing websites in a site collection that supports
publishing. For example, if you set  Site Master to point at your
Custom.master in a 'customdir' folder in the masterpage gallery then a
publishing site would resolve ~masterurl/default.master to
demo/UniversityRelations/_catalogs/masterpage/custom.master. If it
can't reach that file it would use the default.master in the Global
directory of the 12 hive.

Answer #4    Answered By: Terrell Bates     Answered On: Nov 28

Yes that was it.

Also, I confused myself in testing because the published
customdir/custom.master was a copy of BlueBand.master, the draft copy
was skinned like I intended. I need to pay closer attention to who I'm
logged in as.

Also, the error  was confusing. I should have been paying attention to
customdir/custom.master and not master  Pages/default.master.

Didn't find what you were looking for? Find more on Master Page Error Or get search suggestion and latest updates.