PHP regular expression limit reached




Have you uploaded many images and got an error: 0 PHP regular expression limit reached (pcre.backtrack_limit)? Do not worry! This tutorial will show you how to solve this problem within one minute.




The cause and solution of the error


This error indicates that you have loaded many images on the page and your hosting resources are insufficient. However, Balbooa Gallery has performance optimization tools, such as Page Refresh, Lazy Load and Pagination. By enabling these options, you will greatly reduce the load on your server and significantly increase page loading speed:


  1. Go to your Gallery Dashboard.
  2. In the toolbar, click Settings ➝ tab General ➝ enable the Lazy Load and Page Refresh options. 
  3. Settings ➝ Pagination ➝ Images Per Page ➝ set no more than 50.



Using these options, you can safely create huge galleries.

Related articles