Rate this article

Page not rendering and no errors are displayed after upgrading to php 5.2

Rating: 5.0/5 (2 votes cast)

One thing I noticed with PHP Versions >= 5.2 and Large Content (site BODY containing more than 100.000 Characters) is that MX-Includes can not process them any more because with PHP 5.2 the PCRE Backtrack Limit was implemented.

In this case MX Includes will fail silently without letting you know that anything went wrong - it just won't render the body any more.

This can simply be solved by calling this before the Interakt includes:

ini_set("pcre.backtrack_limit", 1000000);
ini_set("pcre.recursion_limit", 1000000);

Hope this will help someone! ;-)

Adobe

ionCube Online PHP Encoder
XMS Systems
Free PositiveSSL and WhoisGuard with Every Domain Purchase

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company