Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Mads Jørgensen 74 posts 226 karma points
    Jun 21, 2012 @ 11:23
    Mads Jørgensen
    0

    No basket exist for the current user.

    I Really have problems getting rid of following error...

    Situation is:

    I call my page [url]/shop?catalog=[catalogName]

    This page call only one xslt containing following code:

     

    <xsl:template match="/">
        <xsl:value-of select="CommerceLibrary:GetBasket(true)"></xsl:value-of>
    </xsl:template>

    As you can see, nothing fancy!

    Is it just me, or should this extension method create that basket instance?

  • Chriztian Steinmeier 2798 posts 8787 karma points MVP 7x admin c-trib
    Jun 21, 2012 @ 13:08
    Chriztian Steinmeier
    0

    Hi Mads,

    true should probably a "true" (pun intended :-) XSLT boolean, so the processor can convert it - right now the processor will send the <true/> element in (which doesn't exist)...

    So:

    <xsl:value-of select="CommerceLibrary:GetBasket(true())" />

    /Chriztian

  • Mads Jørgensen 74 posts 226 karma points
    Jun 21, 2012 @ 13:20
    Mads Jørgensen
    0

    yeah, but then the extension fails :-S

     

    Sad to say, but this sucks :-(

    Error msgs: 

    Sekvensen indeholder mere end ét element
    Sekvensen indeholder mere end ét element
      ved NHibernate.Linq.NhQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery)
      ved NHibernate.Linq.NhQueryProvider.Execute[TResult](Expression expression)
      ved System.Linq.Queryable.SingleOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
      ved UCommerce.EntitiesV2.ProductCatalog.SingleOrDefault(Expression`1 expression)
      ved UCommerce.Runtime.OrderContext.CreateBasket()
      ved UCommerce.Runtime.OrderContext.GetBasket(Boolean create)
      ved UCommerce.Xslt.ClientContext.GetBasket(Boolean create)
      ved UCommerce.Xslt.TransactionLibrary.GetBasket(Boolean create)
      ved UCommerce.Xslt.Library.HandledCall[T](Func`1 method)

     

    My .NET guy says it looks like a application flaud... Any thoughts???

     

    Chriztian, wish it was just an XSLT error :-( the true value added in desperation :-)

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jun 21, 2012 @ 13:34
    Kim Andersen
    0

    Hi Mads

    What I usually do when creating a basket in uCommerce, is to create a basket variable containing all of the basket XML like this:

    <xsl:variablename="basket"select="CommerceLibrary:GetBasket()"/>

    After this it's of course just plain XSLT to render whatever content from the basket that you need from the XML.

    /Kim A

     

  • Chriztian Steinmeier 2798 posts 8787 karma points MVP 7x admin c-trib
    Jun 21, 2012 @ 13:39
    Chriztian Steinmeier
    0

    Aaaah - Kim, that makes sense!

    A variable or param can get a "Result Tree Fragment" (a set of nodes, not necessarily with a wrapping element) - but value-of can not accept that - it requires a single element. Then the errormessage actually makes sense (it's danish, but means "The sequence contains more than one element").

    /Chriztian

  • Mads Jørgensen 74 posts 226 karma points
    Jun 21, 2012 @ 13:57
    Mads Jørgensen
    0

    Hey guys,

    true thing about the Result Tree Fragment...

    My issue sees the daylight whenever i put the boolean true argument into the GetBasket function.

    So, it's a .NET error og database error basically :-S

  • Mads Jørgensen 74 posts 226 karma points
    Jun 21, 2012 @ 19:11
    Mads Jørgensen
    0

    Same code on a different installation works a charm... Corrupt database i'm affraid :( How that happened i dunno!

     

     

  • Tom Madden 252 posts 454 karma points MVP 4x c-trib
    Jun 28, 2012 @ 16:56
    Tom Madden
    0

    Mads,

    how did you figure out the database was corrupt and how did you fix it? I'm having a similar issue.

    Thanks
    Tom

  • Mads Jørgensen 74 posts 226 karma points
    Jun 28, 2012 @ 18:33
    Mads Jørgensen
    0

    Hi there Tom,

    Actually the DB thing is an assumption. My fix, i'm affraid was a fresh install :-(

    What I really think you should do, is send the guys from uCommerce a dump of your DB, and a step-wise description of what you have done, lately.

    Sorry to say, no easy fix!

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 04, 2012 @ 14:21
    Søren Spelling Lund
    0

    This is fixed in uCommerce 2.6.1.0.

    Sorry for the inconvenience.

Please Sign in or register to post replies

Write your reply to:

Draft