Fixed Loading Setup.php if addon.json requirements are not met can result in no error message

Xon

Well-known member
Affected version
2.0.10
If an addon.json has unmet dependencies which should block installing, Setup.php is still loaded. This becomes a major issue if an add-on depends on a higher version of php than what is installed and a higher version php feature has managed to be used in the Setup.php file.

A similar thing is if an add-on has a hard dependency on another add-on and requires it for the install process to even make sense.

In this case, a fatal error can be unexpectedly raised and depending on end-user configuration an empty page is return. This results in the add-on failing to provide any usable error message.
 
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in the next XF release (2.0.11).

Change log:
Prevent loading of Setup.php if addon.json requirements aren't met
 
Back
Top Bottom