Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2006-08-23 20:13:50

hamba
Member
Registered: 2006-08-04
Posts: 22

Re: [plugin] [ORPHAN] chh_article_custom

yes it is active

Offline

#134 2006-09-10 12:26:30

Finnish
Member
From: Russia, Vladivostok
Registered: 2005-11-02
Posts: 13

Re: [plugin] [ORPHAN] chh_article_custom

me too.
chh_article_custom 1.15
chh_article_lib 1.04
txp 4.0-20060831 release

the plugin works, it shows article list or what i want though i trows out a bunch of errors
any ideas? or 4.0.4 compatibility problem?


have a nice day :)

Offline

#135 2006-09-10 18:11:29

nighthwk1
New Member
Registered: 2006-01-17
Posts: 2

Re: [plugin] [ORPHAN] chh_article_custom

Same here. I just upgraded to the 4.0.4 branch, and I get:

<code>
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: listform on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: searchform on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: pageby on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: category on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: section on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: excerpted on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: author on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: sortby on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: sortdir on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: month on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: keywords on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: frontpage on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: id on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: time on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: status on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: pgonly on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: searchall on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: searchsticky on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: offset on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: day on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: children on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: searchmode on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: strict_keywords on line 582
tag_error <txp:chh_article_custom sortby=“Posted” section=”?” sortdir=“desc” listform=“subnav” /> -> Textpattern Notice: unknown_attribute: titlearticles on line 582
</code>

and so on…

chh_article_custom v1.15
chh_article_lib v1.04
Textpattern version: 4.0.3 (r1805)

Offline

#136 2006-09-12 02:19:07

Finnish
Member
From: Russia, Vladivostok
Registered: 2005-11-02
Posts: 13

Re: [plugin] [ORPHAN] chh_article_custom

helped for me switching from Testing to Live Enivornment in Setting


have a nice day :)

Offline

#137 2006-09-15 16:49:00

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] chh_article_custom

Upgraded one install to 4.04 too, and I get the same errors. Looks like all the tag attributes that are provided by the chh_article_lib.
The Site runs fine though.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#138 2006-10-26 15:56:53

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: [plugin] [ORPHAN] chh_article_custom

Two things. One, The attribute listform no longer exists for article_custom as of 4.0.4 (just discovered this last night myself), and I believe chh_article_custom not only adds capabilities, it replicates the existing ones for the tag (including this deprecation of listform, I’m guessing). You might need to use conditionals to use a different form for a list of articles.

Two, the line 582 error is a false error (I was getting it on some custom fields … “attribute unknown”) that has been fixed in SVN. The error should not show on the site if you are switched to live mode, and the tag should work as expected.

Last edited by reid (2006-10-26 15:59:38)


TextPattern user since 04/04/04

Offline

#139 2006-11-08 16:29:09

nabrown78
Member
From: Boston, MA, USA
Registered: 2006-10-04
Posts: 291
Website

Re: [plugin] [ORPHAN] chh_article_custom

Yes, I am using <txp:chh_related_articles> in 4.0.4 and it is throwing tons of errors as well, though it seems to work. Anyone have an idea about how to fix it?

Offline

#140 2006-11-08 16:46:00

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [plugin] [ORPHAN] chh_article_custom

Ruud is offline at the moment, but he fixed chh_related_articles for Textpattern Resources
I’m not sure if I’m reading it properly, but I think he changed a line at the very bottom to be this:

$atts = array_intersect_key($atts,array_flip(array('form','label','break','wraptag','class','breakclass','labeltag','limit','allowoverride')));

line before that remains:
' LIMIT ' . doSlash($offset.$limit);

line after it remains:
return chh_build_article_list($atts, $smart_title, $where);
}

see if that fixes it.. otherwise I’m sure Ruud can help when he gets here.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#141 2006-11-08 17:17:17

nabrown78
Member
From: Boston, MA, USA
Registered: 2006-10-04
Posts: 291
Website

Re: [plugin] [ORPHAN] chh_article_custom

Well, I tried inserting the listed $atts = ... line (as there was previousle no line between the two mentioned) and it gave a fatal error: array_intersect_key is an unknown function, I suppose because I’m still on PHP 4-something. Anyone know if there will be any difficulties with TXP 4.0.4 if I switch to PHP 5 on my server?

UPDATE:
I did swith to PHP5, site seems to function just fine. I inserted the $atts... line again, into chh_related_articles, and it works like a charm now with no apparent errors. Thanks!

Last edited by nabrown78 (2006-11-08 17:22:05)

Offline

#142 2006-11-08 18:18:17

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

Re: [plugin] [ORPHAN] chh_article_custom

This might work for PHP4 users (and php5 as well):

$newatts = array();
$atts = foreach(array('form','label','break','wraptag','class','breakclass','labeltag','limit','allowoverride') as $key)
  $newatts[$key] = $atts[$key];
$atts = $newatts;

Insert it at the same spot as mentioned by Alicson.

Perhaps some other values should be added to that array as well. I think I only added the ones that Alicson was using. You’d have to check which attributes are allowed when calling chh_build_article_list.

Last edited by ruud (2007-06-23 17:08:03)

Offline

#143 2006-11-29 17:32:47

satsilem
Member
Registered: 2006-09-20
Posts: 19

Re: [plugin] [ORPHAN] chh_article_custom

I tried both the solutions but I always get an error and the website doesn’t start.

Is there really a solution on this

If the site is running on live mode you cant see the errors but is this ok?

Offline

Board footer

Powered by FluxBB