Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-04-07 16:15:51

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

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Victor,
where does that 11 come from in the preview?
which PHP version is installed on the server?

I’ve tried to reproduce it with the exact same two lines you’re using… but it keeps working here.
Can anyone else reproduce this problem? Copy the following two lines in a fresh article and click ‘preview’:

A *никакиХ* example.
A *никаких* example.

Offline

#14 2008-04-07 16:34:13

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Ruud – 11 is article’s title :)
Tried again in new article – nothing :(

Here is part of diagnostic:

Textpattern version: 4.0.5 (r2466)
Last Update: 2007-11-04 19:39:33/2007-11-04 18:44:30
Document root: /home/u78707/uromax.ru/www
$path_to_site: /home/u78707/uromax.ru/www
Textpattern path: /home/u78707/uromax.ru/www/textpattern
Permanent link mode: section_title
open_basedir: /home/u78707/
upload_tmp_dir: /home/u78707/uromax.ru/tmp/
Temporary directory path: /home/u78707/uromax.ru/www/textpattern/tmp
web_domain: uromax.ru
PHP version: 5.2.5
Register globals: 1
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2008-04-07 20:33:13
MySQL: 5.0.45-log
Locale: en_US.UTF-8
Server: Apache
Apache version: Apache
PHP Server API: apache
RFC 2616 headers: 
Server OS: FreeBSD 6.2-RELEASE-p1

But! Tried just at txp from another server – and it works!

Here is diagnostic of another server’s txp install:

Версия Textpattern: 4.0.5 (r2466)
Последнее обновление: 2007-07-18 22:02:04/2007-07-29 09:51:11
Document root: /h/okoshkiby/htdocs
$path_to_site: /h/okoshkiby/htdocs
Путь к Textpattern: /h/okoshkiby/htdocs/textpattern
Режим постоянных ссылок: section_title
Папка для временных файлов: /h/okoshkiby/htdocs/textpattern/tmp
URL сайта: www.okoshki.by
Версия PHP: 4.4.4-9+lenny1
Register globals: 1
gd_library: gd_info: 2.0 or higher, GIF, JPG, PNG
Время на сервере: 2008-04-07 19:36:45
MySQL: 5.0.45-5-log
Локализация: ru_RU.UTF-8
Сервер: Apache/2.2.6 (Debian) mod_ssl/2.2.6 OpenSSL/0.9.8g mod_jk/1.2.18
PHP Server API: cgi-fcgi
Заголовки RFC 2616: 
ОС сервера: Linux 2.6.22.16-vs2.2.0.6ext
Активные плагины: rss_admin_show_adv_opts-0.1, ob1_title-2.1, rus_tag_library-0.5, asy_wondertag-0.5, cbs_category_list-0.9, chh_if_data-0.10, glx_if-0.6.4m, wow_menu-1.02, cbs_navigation_menu-0.4, prad_image_index-0.4.0, aam_zcr_clearcache-0.12, fpx_image_import-0.3, asy_jpcache-0.9.8, rss_admin_db_manager-4.3, rss_thumbpop-0.7, smd_lib-0.21c, smd_slimbox-0.25a, rss_live_search-0.7m, upm_insert_tab-0.3, bos_image_display-0.44, rss_auto_excerpt-0.5, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6m, smd_gallery-0.32, rvm_css-0.3

It’s in russian, sorry. But you can see PHP version

Last edited by the_ghost (2008-04-07 16:40:22)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#15 2008-04-07 18:39:10

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,273
Website GitHub

Re: [textile] Error in parsing *text* if line ends with cyrillic char

fwiw, both strings get bolded for me on a stock 4.0.6 with PHP 4.4.4. Maybe something in a later PHP then?

Last edited by Bloke (2008-04-07 18:40:31)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#16 2008-04-07 18:42:15

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Stef – I thinks so too, but what to do? I can’t change nor php version, nor hosting…


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#17 2008-04-07 18:58:36

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,273
Website GitHub

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Hmmm, dunno. Am I right in thinking that the part of classTextile that handles this are the span() / fSpan() functions? If it’s those then there’s not much in terms of PHP code that can go wrong unless preg_callback_replace, list or perhaps preg_match have changed in later versions of PHP.

It looks to my untrained eye that a few elements are parsed by these same functions so, out of curiosity, is it just *strong* elements that are affected or does it exhibit the same behaviour with, say, bold (**)? Or strike-through?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#18 2008-04-07 20:39:20

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

Re: [textile] Error in parsing *text* if line ends with cyrillic char

It’s not the PHP version either. I tested on a different server with PHP version 5.2.5 and couldn’t reproduce it there.

Offline

#19 2008-04-10 11:56:11

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Bloke wrote:

Hmmm, dunno. Am I right in thinking that the part of classTextile that handles this are the span() / fSpan() functions? If it’s those then there’s not much in terms of PHP code that can go wrong unless preg_callback_replace, list or perhaps preg_match have changed in later versions of PHP.

It looks to my untrained eye that a few elements are parsed by these same functions so, out of curiosity, is it just *strong* elements that are affected or does it exhibit the same behaviour with, say, bold (**)? Or strike-through?

bold and strike-through don’t work too when word ends at specific symbol..


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

Board footer

Powered by FluxBB