Blog Sections Open
Diagnosing if Snippet Timeouts on Shared Hosting
This case came from a site that suddenly started throwing Maximum execution time of 30 seconds exceeded in the parser while using the if snippet. The immediate suspicion was that the hosting provider had broken something
This case came from a site that suddenly started throwing Maximum execution time of 30 seconds exceeded in the parser while using the if snippet. The immediate suspicion was that the hosting provider had broken something, but the stronger clue was that the error appeared inside the parser and only on specific pages.
Typical Causes
- recursive or circular snippet output
- deeply nested conditional parsing
- unexpected interaction between multilingual snippets and placeholder output
- a hosting move or PHP configuration change that exposed an existing bottleneck
Why the Host Is Not Always the Real Problem
Shared hosting can make parser-heavy pages fail sooner, but it usually only exposes an inefficient template structure. If a page relies on many chained if calls, nested uncached snippets, or repeated re-parsing, performance collapses quickly.
What to Do First
- Temporarily remove the
ifchains and confirm the page loads. - Check whether one conditional output expands into markup that triggers more parsing.
- Review multilingual or context-switching integrations.
- Move complex logic out of the template and into a small PHP snippet.
The practical lesson is simple: the if snippet is fine for light conditional output, but it should not become the main control layer for complex page logic. Once conditions start nesting deeply, move the logic into dedicated PHP code and return only the final markup or placeholders.
Keeping eForm Stable When SEO Strict URLs Are Enabled
A practical guide to eForm pages that stop sending mail or validating correctly when SEO Strict URLs and strict routing are involved.
Handling Pagination on the Home Page with SEO Strict URLs
Why the home page can produce URLs like index.html?pg_start=1 and what to do about pagination when SEO Strict URLs are enabled.