The HTML code size is larger than pcre.backtrack_limit

If you get the issue message “The HTML code size is larger than pcre.backtrack_limit 1000000. You should use WriteHTML() with smaller string lengths.” you can try the following:

  1. activate “Split HTML into Chunks” in advanced settings
  2. increase the backtrack_limit within your php ini settings.

If this did not help you may be able to increase the value of pcre.backtrack_limit at runtime if your system allows. pcre.backtrack_limit is configurable from PHP >= 5.2.0

The default value was increased from 100,000 to 1,000,000 from PHP >= 5.3.7

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

2 thoughts on “The HTML code size is larger than pcre.backtrack_limit

Leave a Reply

Your email address will not be published. Required fields are marked *