Blank template outputting scripts on it own!?? Am i going mad? (v6.1.6)
I have got a blank template (called NoCode) that is top level (Master) and there is nothing on it but when i open it with the alias http://site.com/nocode there are scripts for jquery validation and unobtrustive validation getting output like so:
Seems pretty crazy, only thing I can think of is that there could be a route hijacking custom controller that could be injecting this markup, is that possible?
After searching the umbraco source code and found nothing i started looking at the views and pages in the deployment and found a _viewstart file in the Views folder that had the 2 jquery validation js files!
However that doesnt explain where the modernizer ones came from????
Anyway the main problem is solved - so check for viewstart files if you get any rogue html etc.
I have a feeling these are some left behind files from when i was looking at using MVC on this site when the first MVC packages were coming out after v5 died.
Ive used MVC quite a bit but you forget about things like this when using Umbraco.
Blank template outputting scripts on it own!?? Am i going mad? (v6.1.6)
I have got a blank template (called NoCode) that is top level (Master) and there is nothing on it but when i open it with the alias http://site.com/nocode there are scripts for jquery validation and unobtrustive validation getting output like so:
Where on earth is that coming from?
If it add the following i get the same
I also get the same if i add a child template and a RenderBody()
This is using the latest v6 release (6.1.6) but i have upgraded the site from v4
Any ideas anyone? Its baffling me.
Ive tried on a clean install of v6 and im not getting this so something must be lurking in the corners from the old version maybe?
The site WAS built using WebForms on v4.7.1 an di have upgraded to 6.1.6 and switched it to MVC.
It only seems to be doing this on my new MVC templates and not on the existing webforms templates.
Update...
I just trued removing the child template and the render body and added to some html and now this is what is getting squirted out:
From template:
To rendered html:
Its gone potty! What could cause this?
btw - i have added the body tag in etc to make it valid html and still the same (not that i thought it would help).
Hi Damian,
Seems pretty crazy, only thing I can think of is that there could be a route hijacking custom controller that could be injecting this markup, is that possible?
Jeavon
Got the little sucker!
After searching the umbraco source code and found nothing i started looking at the views and pages in the deployment and found a _viewstart file in the Views folder that had the 2 jquery validation js files!
However that doesnt explain where the modernizer ones came from????
Anyway the main problem is solved - so check for viewstart files if you get any rogue html etc.
Damian
Did the other includes come from the \Views\shared\_layout.cshtml ???
Yes! :)
I have a feeling these are some left behind files from when i was looking at using MVC on this site when the first MVC packages were coming out after v5 died.
Ive used MVC quite a bit but you forget about things like this when using Umbraco.
Cheers Mike.
Damian
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.