Master template is the same as the current template.
I'm using Umbraco 4.5.2 and I keep seeing the following error in my Trace.
"Master template is the same as the current template. It would course an endless loop!"
The page does display properly. Weird.
I checked all of my templates, and they look fine to me. As a test, I removed the Master tag and the content tag. The error went away. I added them back in and saved. The error did not return.
A few minutes later, my IIS crashes. It has been crashing a lot recently on this site. (hence why I'm going through the trace) I run iisreset, the site comes back and so does the masterpage error.
Check that the MasterPageFile directive at the top of the page isn't the same as the current template name as well, that's usually the cause of the error you're getting.
If that all looks ok, can you post the source of the masterpage that you're having problems with please?
That's the bizarre part of the error. If I reset IIS and load a page, I get the error. If I then click F5 and check again. The error is gone. So under that logic the page should be set-up correctly...right?
I got rid of most of the code to just show the master/child relationship. The MasterTemplate used to have a link to the /umbraco/masterpages/default.master, but I removed that to try and figure out where this error came from.
To be honest, I was tracking an error that was causing my IIS to crash and I thought this was it. Turns out, it had to do with xsl:includes. So if we can't figure it out, no biggee.
Master template is the same as the current template.
I'm using Umbraco 4.5.2 and I keep seeing the following error in my Trace.
"Master template is the same as the current template. It would course an endless loop!"
The page does display properly. Weird.
I checked all of my templates, and they look fine to me. As a test, I removed the Master tag and the content tag. The error went away. I added them back in and saved. The error did not return.
A few minutes later, my IIS crashes. It has been crashing a lot recently on this site. (hence why I'm going through the trace) I run iisreset, the site comes back and so does the masterpage error.
Any ideas? Places to start looking?
Thanks,
C
Check that the MasterPageFile directive at the top of the page isn't the same as the current template name as well, that's usually the cause of the error you're getting.
If that all looks ok, can you post the source of the masterpage that you're having problems with please?
Cheers,
Tim.
That's the bizarre part of the error. If I reset IIS and load a page, I get the error. If I then click F5 and check again. The error is gone. So under that logic the page should be set-up correctly...right?
Standard Page
Master Template
I got rid of most of the code to just show the master/child relationship. The MasterTemplate used to have a link to the /umbraco/masterpages/default.master, but I removed that to try and figure out where this error came from.
To be honest, I was tracking an error that was causing my IIS to crash and I thought this was it. Turns out, it had to do with xsl:includes. So if we can't figure it out, no biggee.
-C
is working on a reply...