Cannot find ContentPlaceHolder 'cp_head' in the master page
'/masterpages/umbMaster.master', verify content control's ContentPlaceHolderID
attribute in the content page.
template
Master template is the same as the current template. It would
course an endless loop!
0.00477062272166599
0.003667
Unhandled Execution Error
Cannot find ContentPlaceHolder 'cp_head' in the master page
'/masterpages/umbMaster.master', verify content control's ContentPlaceHolderID
attribute in the content page. at
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext
context, VirtualPath masterPageFile, IDictionary
contentTemplateCollection) at
System.Web.UI.MasterPage.ApplyMasterRecursive(MasterPage master, IList
appliedMasterFilePaths) at System.Web.UI.Page.PerformPreInit() at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- Design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License
Title : Sandstone Version : 1.0 Released : 20091109 Description: A two-column fixed-width template suitable for small websites.
Ok, it seems to be working now. I added the following code (bold indicates original code and the "cp"head" was inserted below orignal code...) in umbMaster.master :
As you can probably see the placeholder with an id of cp_head wasn't present in the master template. But I'm glad you solved it Sean. Alway nasty when you run into a problem that disturbe the flow of your work :)
Cannot find ContentPlaceHolder 'cp_head' in the master page ...
I am getting the following error when viewing a simple blogpost Any suggestions would be helpful and appreciated!
__________________________________________________________________________________
Cannot find ContentPlaceHolder 'cp_head' in the master page '/masterpages/umbMaster.master', verify content control's ContentPlaceHolderID attribute in the content page.
Cannot find ContentPlaceHolder 'cp_head' in the master page '/masterpages/umbMaster.master', verify content control's ContentPlaceHolderID attribute in the content page.
at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)
at System.Web.UI.MasterPage.ApplyMasterRecursive(MasterPage master, IList appliedMasterFilePaths)
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Hi Sean
What version of Umbraco are you using and have you installed the blog starter kit? And have you made any alterations to the templates yourself?
In the "Settings" section you can see the templates folder.
In here you need to make sure that the contentplaceholder in fact does exist on the template where the content is supposed to be shown.
I think that there unfortunately are some bugs with some of the starter kits.
/Jan
Hi Jan,
It is version 4.7 I'm using and the Blog Starter kit is installed.
The following is located in Starterkit Master --> Blog post TEMPLATE:
<asp:Content ContentPlaceHolderId="cp_head" runat="server">
<script type="text/javascript" src="/umbraco_client/ui/jquery.js">script>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js">script>
asp:Content>
Hi Sean
Could you try showing us the content of the Starterkit Master template?
/Kim A
Hi Kim,
Sure, here is the complete Starterkit Master template code:
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:content contentplaceholderid="ContentPlaceHolderDefault" runat="server">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
Title : Sandstone
Version : 1.0
Released : 20091109
Description: A two-column fixed-width template suitable for small websites.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head" runat="server">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<asp:ContentPlaceHolder Id="HeadContent" runat="server">
</asp:ContentPlaceHolder>
<!-- META Tag Macro -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="false" />
<!--Styles-->
<link rel="stylesheet" type="text/css" href="/css/custom.css" media="screen"/>
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<!--Scrips-->
<script type="text/javascript" src="/scripts/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.cycle.all.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
/* Dots Slider 1 */
$(function(){
$('#imageSlider')
.after('<div id="imageSliderNav">')
.cycle({
fx: 'fade',
speed: 1550,
timeout: 8000,
pager: '#imageSliderNav'
});
});
});
</script>
</head>
<body class="t">
<div id="logo" style="display:none">
<h1><a href="/"><umbraco:item runat="server" field="siteName" recursive="true"></umbraco:item></a></h1>
</div>
<div id="page">
<div id="header">
<a href="/"><img src="/images/logo.png" width="300" height="65" /></a>
<div id="sitedescription">
<h1>EMPWEB</h1>
<h1>The <em>new</em> Employee INTRANET</h1>
</div>
<div id="mainmenu">
<umbraco:Macro Alias="umbTopNavigation" runat="server"></umbraco:Macro>
</div>
<div class="mainmenucorner"> </div>
</div>
<asp:contentplaceholder id="cp_top" runat="server">
</asp:contentplaceholder>
<div id="content">
<div id="leftcontent">
<form id="RunwayMasterForm" runat="server">
<asp:contentplaceholder id="cp_content" runat="server"></asp:contentplaceholder>
</form>
</div>
<div id="rightcontent">
<div class="hotspot" align="center" >
<div style='width: 240px; height: 420px; background-image: url( http://vortex.accuweather.com/adcbin/netweather_v2/backgrounds/silver_240x420_bg.jpg ); background-repeat: no-repeat; background-color: #86888B;' ><div id='NetweatherContainer' style='height: 405px;' ><script src='http://netweather.accuweather.com/adcbin/netweather_v2/netweatherV2ex.asp?partner=netweather&tStyle=whteYell&logo=1&zipcode=NAM|CA|ON|TORONTO|&lang=uke&size=12&theme=silver&metric=1&target=_self'></script></div><div style='text-align: center; font-family: arial, helvetica, verdana, sans-serif; font-size: 10px; line-height: 15px; color: #FFFFFF;' ><a style='color: #FFFFFF' href='http://www.accuweather.com/world-index-forecast.asp?partner=netweather&locCode=NAM|CA|ON|TORONTO|&metric=1' >Weather Forecast</a> | <a style='color: #FFFFFF' href='http://www.accuweather.com/maps-satellite.asp' >Weather Maps</a> | <a style='color: #FFFFFF' href='http://www.accuweather.com/index-radar.asp?partner=accuweather&traveler=0&zipcode=NAM|CA|ON|TORONTO|' >Weather Radar</a></div></div>
</div>
<div class="hotspot">
<h4>Create your own Macros and unleash the power of XSLT </h4>
<img src="/images/icons/dezinerfolio/info.png" width="52" height="52"/>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas leo lectus, iaculis a laoreet in, lobortis in ligula. Proin in diam elit. Nulla facilisi. </p>
<a href="#">Using XSLT</a>
</div>
</div>
</div>
<div id="footer">
<div id="footermenu">
<h4>Navigation</h4>
<umbraco:Macro Alias="umbTopNavigation" runat="server"></umbraco:Macro>
</div>
<div id="footershare">
<h4>Employee Intranet.</h4>
<ul>
<li><a href="http://twitter.com/EMPLYEEEETEST"><img src="images/icons/social_twitter.png" width="28" height="22">Twitter</a></li>
<li><a href="http://www.facebook.com/group.php?gid=122564658525648"><img src="images/icons/social_facebook.png" width="28" height="22">Facebook</a></li>
<li><a href="http://TESTESTEST.smugmug.com"><img src="images/icons/social_smugmug.png" width="28" height="22">Smugmug Photos</a></li>
<li><a href="#"><img src="images/icons/future.png" width="28" height="22">COMING SOON</a></li>
</ul>
</div>
<div id="footercontact">
<h4>Address</h4>
Some Company<br>
123 Main Drive
Some-city, AA 112233<br>
<br>Main Phone: 555.555.1234
<br>General Email: <a href="mailto:[email protected]">[email protected]</a>
</div>
<div id="footerabout">
<h4>Intranet - <em>Gen Deux</em></h4>
<em>The new portal...always evolving!</em><br><br>
The new Intranet. Check back regularly for updates. Please send suggestions to: <a href="mailto:[email protected]">[email protected]</a>
</div>
<div id="footer-end">
Created by Us
</div>
</div>
<!-- end div#wrapper -->
</body>
</html>
</asp:content>
Ok, it seems to be working now. I added the following code (bold indicates original code and the "cp"head" was inserted below orignal code...) in umbMaster.master :
<asp:contentplaceholder id="cp_top" runat="server">
</asp:contentplaceholder>
<asp:contentplaceholder id="cp_head" runat="server">
</asp:contentplaceholder>
Like Jan was saying earlier...it does seem there are quite a few bugs with the Starterkits....(I believe I have the business starter kit)
Great that you got it solved.
As you can probably see the placeholder with an id of cp_head wasn't present in the master template. But I'm glad you solved it Sean. Alway nasty when you run into a problem that disturbe the flow of your work :)
/Kim A
This post was useful. Thanks for help.
(pt-br = Este post foi Ăștil. Obrigado pela ajuda)
is working on a reply...