Xtypo and very long article issue

Hello
using XTypo on a J! 3.4.1 site, very long articles (around 25 pages of printed text) don't work. I get blank content with this error:
Warning: preg_replace(): Compilation failed: regular expression is too large at offset 90492 in /var/www/vhosts/vorrei.org/httpdocs/plugins/content/xtypo/xtypo.php on line 118

disabling XTypo it works fine
How can I fix it?
Thanks
10 years 4 weeks ago #1 by theant

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5318) Offline
HI theant, sorry for delay in responding due to weekend offline.
Regarding your problem it probably because the the long content you have make joomla reaches the PHP regular expression limit you have on your server. Can you try to modify the file /plugins/content/xtypo/xtypo.php and add this code on the top of page (after the opening <?php tag ) so it will become :
<?php
ini_set("pcre.backtrack_limit", "150000");
ini_set("pcre.recursion_limit", "150000");
 
/**
 * XTypo: Plugin for Content
 * @version		$Id: xtypo.php 2.1

Once it is modified, clear your cache and reopen your website.
10 years 4 weeks ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Warning: preg_replace(): Compilation failed: regular expression is too large at offset 89832 in /var/www/vhosts/vorrei.org/httpdocs/plugins/content/xtypo/xtypo.php on line 120
10 years 4 weeks ago #3 by theant

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5318) Offline
HI, Can you let me know the URL of your site so I can take a look?
10 years 4 weeks ago #4 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Yes, but that article is unpublished due the issue:
www.vorrei.org/
10 years 4 weeks ago #5 by theant

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5318) Offline
Ah I see, so the error affected to one article only?
10 years 4 weeks ago #6 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum