Blog Sections Open
Why OnWebPageInit Can Break PHx and Built-In Modifiers
A parser troubleshooting note for projects where OnWebPageInit plugins interfere with PHx output or built-in Evolution CMS modifiers.
If even an empty OnWebPageInit plugin appears to break PHx tags or built-in modifiers, the problem is usually not the business logic of the plugin itself. It is the point in the request lifecycle where the parser state gets affected.
Why this is tricky
OnWebPageInit runs very early. That means even small changes to globals, parser state, output handling, or initialization order can have side effects later in template processing.
What to check
- whether the plugin really does nothing, or still changes execution context
- whether another plugin in the same event chain is involved
- whether the parser behavior differs on a clean installation
- whether old PHx patterns are colliding with newer output assumptions
When an early event breaks tags, always test the same behavior on a clean install first. If the issue reproduces there, it is probably a parser/event-order interaction, not project-specific business code.
Avoiding 500 Errors When Disabling Languages in bLang
How to avoid 500 errors in bLang-driven Evolution CMS projects when languages are disabled or switched incorrectly.
Preventing Relative Links in Chunks from Turning into Absolute URLs
Why relative links inside chunk output can become absolute in Evolution CMS and how to keep frontend markup predictable.