Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael 34 posts 54 karma points
    Aug 24, 2012 @ 13:05
    Michael
    0

    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)

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Aug 24, 2012 @ 13:07
    Lee Kelleher
    0

    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.

  • Michael 34 posts 54 karma points
    Aug 24, 2012 @ 13:11
    Michael
    0

    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 "&#x00A0;"> ]>
    <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>&nbsp;</p>
      <a href="{link}" class="readMore">read more <img src="images/x.jpg" border="0" /></a>
     </xsl:for-each>


    </xsl:template>
    </xsl:stylesheet>

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Aug 24, 2012 @ 13:17
    Lee Kelleher
    0

    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:

    <?xml version="1.0" encoding="utf-8" ?>
    <XsltExtensions>
        <ext assembly="umbraco.editorControls" type="umbraco.editorControls.tags.library" alias="tagsLib" />
        <ext assembly="Runway.Blog" type="Runway.Blog.BlogLibrary" alias="BlogLibrary" />
    </XsltExtensions>

    Cheers, Lee.

  • Michael 34 posts 54 karma points
    Aug 24, 2012 @ 13:19
    Michael
    0

    Hi Lee,

    Thanks for your help, but just tried what you said and it didnt work, just gave me the same error.

    Regards

    Michael

  • Michael 34 posts 54 karma points
    Aug 24, 2012 @ 13:21
    Michael
    0

    just to add, it wont even let me save a blank xslt...if i delete out all the code between template.

    Regards

    Michael

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Aug 24, 2012 @ 13:22
    Lee Kelleher
    0

    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.

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Aug 24, 2012 @ 13:23
    Lee Kelleher
    0

    Re: blank XSLT.  Issue there is that an empty file is not a valid XSLT file - hence an error.

  • Michael 34 posts 54 karma points
    Aug 24, 2012 @ 13:33
    Michael
    0

    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

  • Michael 34 posts 54 karma points
    Aug 24, 2012 @ 13:38
    Michael
    0

    Could it be that be that i no longer have contour and the blog installed and its referring it??

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Aug 24, 2012 @ 13:42
    Lee Kelleher
    0

    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:

    <ext assembly="Runway.Blog" type="Runway.Blog.BlogLibrary" alias="BlogLibrary" />

    Good luck!

    Cheers, Lee.

  • Michael 34 posts 54 karma points
    Aug 24, 2012 @ 13:50
    Michael
    0

    Still no luck unfortunately.

    Regards

    Michael

  • Michael 34 posts 54 karma points
    Aug 24, 2012 @ 13:53
    Michael
    0

    Thanks but still not luck.

    Regards

    Michael

  • Michael 34 posts 54 karma points
    Aug 24, 2012 @ 15:33
    Michael
    0

    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

  • 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.

Please Sign in or register to post replies