WordPress » Crash on xlanguage imag1
 
 
Crash on xlanguage

This is copy from XPress.

A few months ago, when building a multilingual site with xlanguage, I found the site was crashed occasionally when xlanguage was enabled.
To fix the problem, I hacked the sections module to store different languages of contents with different column and let xlanguage watch slight contents only, like menu, titles, tables.

Yesterday pgroell reported the same problem. Very early this morning, I got his message:

i just found this on the net, maybe it ’s the problem.
http://www.phpbuilder.com/lists/php-documentation-list/2003101/0039.php
A bug in Php, I’m using php 4.3.10, and don’t know if this has been fixed.

And then, the original bug report at php.net:

From http://www.pcre.org/pcre.txt, LIMITATIONS:

“The maximum length of a subject string is the largest
positive number that an integer variable can hold. However,
PCRE uses recursion to handle subpatterns and indefinite
repetition. This means that the available stack space may
limit the size of a subject string that can be processed by
certain patterns.”

It should be noted that the maximum amount of data between pairs of tags
in this PCRE case is not a constant as it differs between platforms,
even with the same installed PHP versions. On a Debian box, I was able
to process about 11650 bytes between to matching div tags.

Seems I was so lucky, using a silly but right solution before knowing the causes.
There will be some related documentation for xlanguage.

Thanks pgroell.

XPress: slam_sfsu_soba0227280908XPress: slam_sfsu_soba0227280911XPress: Design Couture X-Press
multilingual: Amateur hour at Scotiabankmultilingual: Catedralmultilingual: IMG_3503
xlanguage: Sprachwahlxlanguage: XLanguage Setup

1条评论

  1. Trackback 由 XPress:

    Crash on xlanguage

    A few months ago, when building a multilingual site with xlanguage, I found the site was crashed occasionally when xlanguage was enabled. To fix the problem, I hacked the sections module to store different languages of contents with different column a…

发表评论

抱歉,您必须登录后才可以发表评论。