HA-Proxy-devel errors after upgrading CE to 2.7.0
-
After upgrading to version 2.7.0 and restarting my pfSense, the following message
PHP errors
PHP ERROR: Type: 1, File: /usr/local/pkg/haproxy/haproxy.inc, Line: 1284, Message: Uncaught Error: Non-static method haproxy_utils::haproxy_hostname_get_prefix() cannot be called statically in /usr/local/pkg/haproxy/haproxy.inc:1284
Stack trace:
#0 /usr/local/pkg/haproxy/haproxy.inc(2195): write_backend('/var/etc/haprox...', Resource id #53, 'be_authelia_ipv...', Array, Array)
#1 /usr/local/pkg/haproxy/haproxy.inc(2516): haproxy_writeconf('/var/etc/haprox...')
#2 /usr/local/pkg/haproxy/haproxy.inc(1349): haproxy_check_run(1)
#3 Standard input code(5): haproxy_configure()
#4 {main}
thrown @ 2023-08-14 13:40:16HA-Proxy-devel 0.63_1.
I use HAProxy mainly as a reverse proxy for my self-hosted websites which can still be accessed without a problem, but it affects my Authelia bypass function, i.e. it no longer bypasses Authelia authentication as defined in Authelia config. Anyone has faced this issue and any solution? -
I haven't seen that error here but you might try uninstalling the package and reinstalling it to be sure it has proper content. The function it's talking about is static, so I'm not sure why it might be saying it's not unless your copy of that file is somehow wrong.
Also worth trying to move from haproxy-devel to haproxy though the PHP code is the same in both right now, so if there is a problem it may be the same in both places.