I was attempting to set up letsencrypt + nginx today, and when trying to set the location, I am getting the following error (no error is displayed, it just doesn't save and close; I see this when I go to the dashboard):
PHP Fatal error: Declaration of OPNsense\Base\Constraints\NgxBusyBufferConstraint::validate(Phalcon\Validation $validator, $attribute) must be compatible with Phalcon\Validation\AbstractValidator::validate(Phalcon\Validation $validation, $field): bool in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Constraints/NgxBusyBufferConstraint.php on line 39
On an attempt to reinstall nginx, I got this error:
Fatal error: Declaration of OPNsense\Base\Constraints\NaxsiIdentifierConstraint::validate(Phalcon\Validation $validator, $attribute) must be compatible with Phalcon\Validation\AbstractValidator::validate(Phalcon\Validation $validation, $field): bool in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Constraints/NaxsiIdentifierConstraint.php on line 95
Not sure if I got this on the initial install and just missed it.
I see some mentions of errors similar to these here: https://github.com/opnsense/core/issues/4012. Is nginx not currently compatible with 21.1.5, or am I doing something wrong in setup?
For now use opnsense (community) package with os-nginx. opnsense-devel (development) is not compatible with os-nginx or os-nginx-devel until 21.1.6 is released.
Cheers,
Franco