Trying to save an xslt file in Umbraco and getting a javascript error when "debugging"
Object #<Object> has no method 'getCode' in editXslt.aspx line 35
There doesn't seem to be such a JS method in that file, but I guess this could be stored in a JS file anywhere, or could actually be passed to a C# method. Obiously there isn't a code behind file, so if this is the case it is compiled up into a .dll
What is the exact error you're getting while saving the XSLT file?
What happens if you save the XSLT file outside of Umbraco and visit a page where it's in use? Do you get and XSLT error there as well? If so try adding ?umbdebugshowtrace=1 to the URL and see if the trace log returns something helpfull.
I think it's perhaps due to an issue in your xslt file if you use an extension, which does not get the proper value untill runtime or something like that.
You could also try to cut out all of the code inside your match="/" template and see if that can be saved. If it can it's an issue in your XSLT for sure :)
Sorry for the delay, I went home right after I posted this :)
There's no error, just clicking the save button isn't doing anything. When I "inspect element" using chrome dev tools I see the error posted above.
I don't have any reason to believe there's an issue with this xslt file as it was working before but we've had a lot of issues with this site and something may have changed somewhere else.
None of the other xslt files will save either - It's a strange one
I just made changes to the xslt in visual studio and saved; The xslt file is now displaying correctly on the front end, but still unable to save in Umbraco.
The issue is definitely related to the save button in Umbraco when trying to save xslt.
Have there been made any custom xslt extension or has 3rd party extension been installed? If so have they been defined in the xsltExtensions.config file in the /config folder?
If they have not been defined in here it usually makes Umbraco choke in the backoffice when saving XSLT files.
Object has no method 'getCode'
Trying to save an xslt file in Umbraco and getting a javascript error when "debugging"
Object #<Object> has no method 'getCode' in editXslt.aspx line 35
There doesn't seem to be such a JS method in that file, but I guess this could be stored in a JS file anywhere, or could actually be passed to a C# method. Obiously there isn't a code behind file, so if this is the case it is compiled up into a .dll
Anyone seen this before?
Hi Richard
What is the exact error you're getting while saving the XSLT file?
What happens if you save the XSLT file outside of Umbraco and visit a page where it's in use? Do you get and XSLT error there as well? If so try adding ?umbdebugshowtrace=1 to the URL and see if the trace log returns something helpfull.
I think it's perhaps due to an issue in your xslt file if you use an extension, which does not get the proper value untill runtime or something like that.
You could also try to cut out all of the code inside your match="/" template and see if that can be saved. If it can it's an issue in your XSLT for sure :)
Hope this helps.
/Jan
Hi Jan
Sorry for the delay, I went home right after I posted this :)
There's no error, just clicking the save button isn't doing anything. When I "inspect element" using chrome dev tools I see the error posted above.
I don't have any reason to believe there's an issue with this xslt file as it was working before but we've had a lot of issues with this site and something may have changed somewhere else.
None of the other xslt files will save either - It's a strange one
I just made changes to the xslt in visual studio and saved; The xslt file is now displaying correctly on the front end, but still unable to save in Umbraco.
The issue is definitely related to the save button in Umbraco when trying to save xslt.
Have there been made any custom xslt extension or has 3rd party extension been installed? If so have they been defined in the xsltExtensions.config file in the /config folder?
If they have not been defined in here it usually makes Umbraco choke in the backoffice when saving XSLT files.
Hope this helps.
/Jan
Morning Jan!
No I can't see any 3rd party extensions, but I DID inherit this project from predecessor so who knows
Certainly nothing defined in XsltExtensions.config anyway
Hi Richard
Forgot to ask about what version of Umbrao you're seeing this on? Seems like it should perhaps be reported as a bug.//
/Jan
Hey Jan
It's 4.9 so it may well be a bug - what do you think?
I haven't looked at it again yet because I got caught up in other things but I'll be back on it on Monday morning
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.