Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-30 17:39:00

gaup
Member
Registered: 2006-12-03
Posts: 37

error message yab

In my checkout (kassen) I got an error message. Can anybody help me.
linktext

Offline

#2 2008-11-30 18:34:06

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: error message yab

I don’t see an error. Please post the error message you get here on the forum (including steps to reproduce). If it’s related to a plugin, you may want to ask the question in the author support topic for that plugin.

Offline

#3 2008-11-30 20:09:07

gaup
Member
Registered: 2006-12-03
Posts: 37

Re: error message yab

This is the error message: <txp:if_category>
<txp:yab_shop_cart output=“cart” /> -> Textpattern Notice: unknown_attribute: output on line 653

You have to choose a product (shop) first, when you checkout this error message appears.

Offline

#4 2008-11-30 20:42:33

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: error message yab

I initially thought the problem with yab_shop was in the usage of the
yab_shop_cart, but on closer examination of the yab_shop plugin code and the
error message you provided, I noticed that the error message also shows the
<txp:if_category> tag.

I suspect you have something like this in your template (note the incorrectly closed if_category tag):

<txp:if_category
  <txp:yab_shop_cart output="cart" />

In TXP 4.0.6 that would be interpreted as an if_category tag with output as
attribute value. The “<txp:yab_shop_cart” part is completely ignored.
In TXP 4.0.7 it would parse the <txp:yab_shop_cart /> tag correctly and the
incorrect <txp:if_category tag would show up in the HTML source code.

Last edited by ruud (2008-11-30 21:02:49)

Offline

#5 2008-11-30 23:24:53

gaup
Member
Registered: 2006-12-03
Posts: 37

Re: error message yab

I have this code in the checkout page.

<txp:if_category>
<txp:yab_shop_cart output=“cart” />

<txp:yab_shop_checkout />
</txp: if_category>

Offline

#6 2008-12-01 07:58:59

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: error message yab

There’s a space in the last line between “</txp:” and “if_category” which doesn’t belong there.

Offline

#7 2008-12-01 16:52:25

gaup
Member
Registered: 2006-12-03
Posts: 37

Re: error message yab

If I correct that empty space to this:
<txp:if_category>
<txp:yab_shop_cart output=“cart” />

<txp:yab_shop_checkout />
</txp: if_category>

then my checkout table does not shows, the checkout page is empty in the content field. Strange!

Offline

#8 2008-12-01 17:05:57

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: error message yab

You have this:

<txp:if_category>
<txp:yab_shop_cart output="cart" />
<txp:yab_shop_checkout />
</txp: if_category>

But it really should be this (space removed):

<txp:if_category>
<txp:yab_shop_cart output="cart" />
<txp:yab_shop_checkout />
</txp:if_category>

However, I don’t think that explains the ‘unknown attribute’ error you got. it did explain the error

If that doesn’t work, then a tag trace might help to spot the problem.

If you’re willing to send me a login code+password by email, I can take a closer look.

Last edited by ruud (2008-12-01 17:16:47)

Offline

#9 2008-12-01 20:10:51

gaup
Member
Registered: 2006-12-03
Posts: 37

Re: error message yab

OK, then It was all the layout error. Now I see that the checkout table in yab-shop was in two parts – . I think it should work now.
Thanks to ruud for helping me with this.

Offline

Board footer

Powered by FluxBB