Skip to content

[Feature] UI/Init: Remove "Cannot find this block" error handling#11118

Open
mjansenDatabay wants to merge 2 commits intoILIAS-eLearning:trunkfrom
mjansenDatabay:improvement/12/tpl-error-pear
Open

[Feature] UI/Init: Remove "Cannot find this block" error handling#11118
mjansenDatabay wants to merge 2 commits intoILIAS-eLearning:trunkfrom
mjansenDatabay:improvement/12/tpl-error-pear

Conversation

@mjansenDatabay
Copy link
Contributor

This PR removes legacy PEAR dependencies and outdated error handling from the template engine.

Commits

1. Remove last PEAR usage from template tests

  • Removes the final PEAR usage from components/ILIAS/UI/tests/Renderer/ilIndependentTemplate.php
  • This code could not have worked anyway, as we no longer depend on PEAR

2. Remove special "Cannot find this block" error handling

  • Removes legacy error handling in ilErrorHandling for template engine errors
  • This special handling dates back to when the template engine used the PEAR error handler
  • All template engine code (except one case, see 1.) already uses proper ilTemplateException instead
  • The remaining special error handling is no longer necessary

This commit suggests removing the
`(new PEAR())->raiseError(...)` call and
instead throwing an `ilTemplateException`.
…lock"

This commit removes the special error handling for the "Cannot
find this block" error formerly raised by the template engine.

This is legacy error handling from a time when the template
engine used the `PEAR` error handler. All usages (except one)
have already been replaced by a proper `ilTemplateException`
years ago. The last usage will be addressed by a dedicated
commit.
@mjansenDatabay mjansenDatabay self-assigned this Feb 13, 2026
@mjansenDatabay mjansenDatabay added improvement php Pull requests that update Php code labels Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant