The HTML says it has been optimised, but expected CSS or JavaScript results are missing. LiteSpeed logs PCRE error 2 during the corresponding request. The reviewed incident involves LiteSpeed Cache 7.9.2 and a theme producing extensive inline CSS. A test of a development build was reported, but that is not a blanket recommendation to deploy it to production. Q1
Read the error precisely
PHP identifies PREG_BACKTRACK_LIMIT_ERROR as an exhausted backtracking limit while processing a regular expression. That differs from general PHP memory exhaustion. First establish, however, that this particular error belongs to the optimisation request being investigated. Q2
A footer comment or enabled setting is not a substitute for inspecting the resources actually delivered. Keeping those observations separate prevents an interrupted processing stage from being mistaken for a successful optimisation.
Isolate the interrupted stage
- Choose a page and timestamp: Generate one controlled request for the affected page and preserve its LiteSpeed log excerpt. Distinguish fresh processing from a response already held in cache.
- Inspect the output: Compare HTML size, inline-CSS volume and referenced stylesheet files. Record which intended optimisation is absent. Counting files alone is insufficient without knowing which feature was supposed to change them.
- Compare a smaller control page: Keep the settings the same while testing substantially smaller output. If it works, size dependence becomes plausible, but the specific failure still needs confirmation in the log.
- Inspect theme output on staging: Look for duplicated rules, unnecessarily global output and supported theme options for producing CSS. Change one factor at a time and continue checking the rendered page.
- Review version and limits deliberately: Check official release information for the installed combination. A bounded, technically supervised PHP-limit change can be an experiment; without measurements it is neither the only solution nor automatically the best permanent one.
Apply the correction through the right configuration route
Do not paste an arbitrary PHP directive into .htaccess. The permitted configuration route depends on the host and PHP integration, and an inappropriate directive can create an additional outage. LiteSpeed’s troubleshooting guidance supports targeted isolation of optimisation issues. Q3
After the change, the parser error should be absent, the intended assets should be generated and the page should retain its correct appearance. Check a second fresh request as well so an old cached response does not determine the apparent result. Keep the original limit and theme settings documented for later comparison.
Frequently asked questions
Is increasing PHP memory the direct solution?
That does not follow from this error code. The backtracking limit and general memory consumption are different quantities.
Can I install a mentioned beta without testing?
No. Check its origin and scope, and evaluate a suitable current release on a backed-up test copy.
Does an optimisation comment prove all processing succeeded?
No. Compare the log and actual output from the affected stage.
Information for assistance
Provide LiteSpeed and theme versions, the affected URL, approximate HTML and CSS sizes and the matching error excerpt. Entire private pages need not be published for this initial review.
KAN KAI WORKS can investigate the specific parser failure and page-output size. Get help with this case.
Prepare a findings note
Summarise your observations for your enquiry. The note is created in your browser and is not saved or sent here. You can then copy it into the contact form.
Unknown is fine. Do not enter passwords, customer data or complete confidential logs.
Support with this issue
KAN KAI WORKS can investigate the specific parser failure and page-output size.
Sources and scope
- Q1: Original report and visible replies
- Q2: PHP: regular-expression error codes
- Q3: LiteSpeed: investigating page optimisation
Sources checked: 5 November 2026. The original incident has not been independently reproduced.
