I yesterday I upgraded from 4.8.0 to 4.8.1 and everything seem to work fine and had no problems, but i have come in this morning to find xslt parsing errors all over my website and when I go to create a new xslt it gives me an error and when i go to edit and save a already saved xslt file it gives me the followig error.
I have do the Lucene work around but still not working...im new to umbraco as well
any help would be greatly appreciated
Error occured
System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.macro.GetXsltExtensionsImpl() at umbraco.macro.b__0() at umbraco.cms.businesslogic.cache.Cache.GetCacheItem[TT](String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) at umbraco.macro.GetXsltExtensions() at umbraco.macro.AddMacroXsltExtensions() at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
Double-check that you didn't overwrite your "/config/xsltExtensions.config" file. It could be missing an entry? or it could be referencing something that no longer exists? (Not sure what that might be)
All the xslt have been created from a clean template in Umbraco so struggling to think what other extensions one could be using. Using the umbDebugShowTrace=true doesnt display anything either.
Do you have any other suggestions?? Thanks for all your help
Check the /bin folder for a file called "Runway.Blog.dll", if that isn't there - then you'll need to remove the references from all your XSLT files and xsltExtensions.config.
In your XSLT files, find the line:
xmlns:BlogLibrary="urn:BlogLibrary"
Then from "exclude-result-prefixes", remove the "BlogLibrary" reference.
In your xsltExtensions.config file, remove this line:
xslt error after upgrade from 4.8.0 to 4.8.1
Hi,
I yesterday I upgraded from 4.8.0 to 4.8.1 and everything seem to work fine and had no problems, but i have come in this morning to find xslt parsing errors all over my website and when I go to create a new xslt it gives me an error and when i go to edit and save a already saved xslt file it gives me the followig error.
I have do the Lucene work around but still not working...im new to umbraco as well
any help would be greatly appreciated
Error occured
System.NullReferenceException: Object reference not set to an instance of an object.
at umbraco.macro.GetXsltExtensionsImpl()
at umbraco.macro.b__0()
at umbraco.cms.businesslogic.cache.Cache.GetCacheItem[TT](String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem)
at umbraco.macro.GetXsltExtensions()
at umbraco.macro.AddMacroXsltExtensions()
at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
Hi Michael,
Double-check that you didn't overwrite your "/config/xsltExtensions.config" file. It could be missing an entry? or it could be referencing something that no longer exists? (Not sure what that might be)
Which uComponents XSLT extensions are you using?
Thanks, Lee.
Hi Lee,
The file config/xsltExtensions.config is emtpy!!!
I dont have a backup......I'm not sure what extensions I was using, but nothing special as I have added anything in, if that makes sense.
Below is an example xslt
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:tagsLib="urn:tagsLib" xmlns:BlogLibrary="urn:BlogLibrary"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib BlogLibrary" xmlns:addthis="http://www.addthis.com/help/api-spec">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:variable name="MyFeed" select="umbraco.library:GetXmlDocumentByUrl('http://blog.libertycomms.co.uk/category/uncategorized/feed')" />
<xsl:for-each select="$MyFeed/rss/channel/item[1]">
<h1><xsl:value-of select="title" /></h1>
<span class="blogDate"><xsl:value-of select="umbraco.library:FormatDateTime(pubDate, 'MMMM d, yyyy')"/></span>
<p><xsl:value-of select="umbraco.library:TruncateString(content:encoded, number(420), '...')" disable-output-escaping="yes" /></p>
<p> </p>
<a href="{link}" class="readMore">read more <img src="images/x.jpg" border="0" /></a>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Hi Michael,
Looking at your XSLT, I can see references to "tagsLib" and "BlogLibrary" (nothing for uComponents?)
Try using this for your "xsltExtensions.config" file:
Cheers, Lee.
Hi Lee,
Thanks for your help, but just tried what you said and it didnt work, just gave me the same error.
Regards
Michael
just to add, it wont even let me save a blank xslt...if i delete out all the code between template.
Regards
Michael
There must be other XSLT macros using other extensions? It would be a case of going through each one checking what is missing.
On the front-end, try adding "?umbDebugShowTrace=true" to the URL - scroll down to see what the error messages are.
Cheers, Lee.
Re: blank XSLT. Issue there is that an empty file is not a valid XSLT file - hence an error.
Hi Lee,
All the xslt have been created from a clean template in Umbraco so struggling to think what other extensions one could be using. Using the umbDebugShowTrace=true doesnt display anything either.
Do you have any other suggestions?? Thanks for all your help
Regards
Michael
Could it be that be that i no longer have contour and the blog installed and its referring it??
Check the /bin folder for a file called "Runway.Blog.dll", if that isn't there - then you'll need to remove the references from all your XSLT files and xsltExtensions.config.
In your XSLT files, find the line:
Then from "exclude-result-prefixes", remove the "BlogLibrary" reference.
In your xsltExtensions.config file, remove this line:
Good luck!
Cheers, Lee.
Still no luck unfortunately.
Regards
Michael
Thanks but still not luck.
Regards
Michael
Hi Lee,
Just to you let you know I did a compete re-istall and upgrade again and now after copying files accross it works.
Thaks for all your help
is working on a reply...