akaunting / docker

Docker Image for Akaunting
https://github.com/akaunting/akaunting
GNU General Public License v3.0
182 stars 86 forks source link

array_keys() expects parameter 1 to be array, int given in TrustProxies.php line 162 #44

Closed ki9us closed 2 years ago

ki9us commented 3 years ago

Just installed and I'm getting this error when I try to load /:

ErrorException
array_keys() expects parameter 1 to be array, int given
in TrustProxies.php line 162

TrustProxies.php:

...
159  protected function getTrustedHeaderSet()
160      {
161          $trustedHeaderNames = $this->getTrustedHeaderNames();
162          $headerKeys = array_keys($this->getTrustedHeaderNames());
163  
164  return array_reduce($headerKeys, function ($set, $key) use ($trustedHeaderNames) {
...

May be some incompatibility with the version of TrustedProxy: fideloper/TrustedProxy#102

MohammedAl-Mahdawi commented 2 years ago

https://github.com/akaunting/docker/commit/e357aa07ce19eaabedef19cf2bef2883af5d9544