1
21.1 Legacy Series / [SOLVED] 21.1.5 - Installing nginx fails (Phalcon4?)
« on: May 21, 2021, 03:27:35 am »
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):
On an attempt to reinstall nginx, I got this error:
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?
Code: [Select]
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:
Code: [Select]
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?