Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-02-07 18:25:25

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: [textile] Textile and lists bug

xube wrote:

ruud wrote:

Please post your high diagnostics. And give a new example of the problem and what the resulting HTML code is.

Nevermind. Its cause by PHP. Administrator gave older version 5.2.5 today and It works fine. According to me is a problem with counting foreach in new PHP 5.2.6.

But Thanks

so wait..the bug is now back with php 5.2.6? oye…

Offline

#14 2008-02-07 18:56:03

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

Re: [textile] Textile and lists bug

That would be a completely different bug, really. Can anyone else who’s using PHP 5.2.6 confirm this?

Offline

#15 2008-02-07 23:07:32

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

Re: [textile] Textile and lists bug

According to php.net, the latest version is still 5.2.5.

Offline

#16 2008-09-25 02:47:56

ngeowwh
New Member
Registered: 2008-09-25
Posts: 1

Re: [textile] Textile and lists bug

Confirming this bug. Using textile v2.0 and PHP 5.2.6. Anyone got any hotfixes for this problem?

Offline

#17 2008-09-25 09:26:01

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

Re: [textile] Textile and lists bug

This bug (see opening post) was fixed in TXP 4.0.6 (which has an updated version of textile 2.0 even though the version number is the same)
If there are other problems, please open a new topic and give a detailed problem description.

Offline

#18 2009-01-30 17:19:28

greendavid
New Member
Registered: 2009-01-30
Posts: 4

Re: [textile] Textile and lists bug

Need the revised classTextile.php 2.0 with the list fix for PHP 5.2.6, separate from TXP.

Downloaded again from http://textile.thresholdstate.com/ but error persists.

Anybody know where I can get it? Thx.

Offline

#19 2009-01-30 17:22:50

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: [textile] Textile and lists bug

svn

Offline

#20 2009-01-30 17:37:20

greendavid
New Member
Registered: 2009-01-30
Posts: 4

Re: [textile] Textile and lists bug

Thanks for reference to the Google code page, but that class still gives the error.

* Item One
* Item Two
* Item Three

produces:

<ul>
    <li>Item One</li>
    <li>Item Two</li>
</ul>
<ul>
    <li>Item Three</li>
</ul>

Oh, well! All in time, I’m sure.

Offline

#21 2009-02-04 16:51:49

greendavid
New Member
Registered: 2009-01-30
Posts: 4

Re: [textile] Textile and lists bug

Bumping the patch, quoted from this post.

This works with a free-standing classTextile.php under PHP 5.2.6.

——————

You can work around the problem, by replacing these two lines (in the fList function in /textpattern/lib/classTextile.php):

foreach($text as $line) {
  $nextline = next($text);

with:

foreach($text as $nr => $line) {
  $nextline = isset($text[$nr+1]) ? $text[$nr+1] : false;

Last edited by greendavid (2009-02-04 16:52:10)

Offline

#22 2009-02-06 17:21:32

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

Re: [textile] Textile and lists bug

I don’t think Textile is developed separately from TXP (only as part of TXP), as far as I know, at least not by current TXP devs.

Offline

#23 2009-02-06 17:35:15

greendavid
New Member
Registered: 2009-01-30
Posts: 4

Re: [textile] Textile and lists bug

The version of classTextile.php on this page fixes two problems with a previous version:

  • Last item of UL parsed into separate list; and,
  • Class designation for links not parsed, e.g.: "(link_class)Go somewhere else":/go/somewhere/else.htm

I just copied and pasted from that page, because I don’t need all of TXP. Love it! Thanks!

Offline

#24 2009-05-05 19:22:20

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Re: [textile] Textile and lists bug

None of those suggestions fixed it for me, but I’m still using 4.0.5 (with PHP 5.2.6).
Anyone thinks upgrading to 4.0.8 would fix the problem?
Thanks…

Well… Just upgraded and besides having to fix a few plugin woes, the bug is still there :-P

ok!… Seems to be working now, after going back to the articles containing lists and re-saving them. Yay!

Last edited by ploinkr (2009-05-05 23:43:15)

Offline

Board footer

Powered by FluxBB