klaussilveira/gitlist

Uncaught Error: Cannot assign string to property Symfony\Component\HttpKernel\Debug\FileLinkFormatter::$fileLinkFormat of type array|false

GIOhnny opened this issue · 2 comments

Hello,

I've tried to install the version 2.0 (Release), followed all the steps but when calling the public/index.php I have an internal server error.
In the /var/log/prod.log I have

[2022-08-17T09:26:17.206351+03:00] request.INFO: Matched route "repository_list". {"route":"repository_list","route_parameters":{"_route":"repository_list","_controller":"GitList\\App\\Controller\\Repository::list"},"request_uri":"https://192.168.1.115:2127/index.php/","method":"GET"} []
[2022-08-17T09:26:17.225194+03:00] php.CRITICAL: Uncaught Error: Cannot assign string to property Symfony\Component\HttpKernel\Debug\FileLinkFormatter::$fileLinkFormat of type array|false {"exception":"[object] (TypeError(code: 0): Cannot assign string to property Symfony\\Component\\HttpKernel\\Debug\\FileLinkFormatter::$fileLinkFormat of type array|false at /volume1/web/gitlist/vendor/symfony/http-kernel/Debug/FileLinkFormatter.php:53)"} []
[2022-08-17T09:26:17.232428+03:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Cannot assign string to property Symfony\Component\HttpKernel\Debug\FileLinkFormatter::$fileLinkFormat of type array|false" at /volume1/web/gitlist/vendor/symfony/http-kernel/Debug/FileLinkFormatter.php line 53 {"exception":"[object] (TypeError(code: 0): Cannot assign string to property Symfony\\Component\\HttpKernel\\Debug\\FileLinkFormatter::$fileLinkFormat of type array|false at /volume1/web/gitlist/vendor/symfony/http-kernel/Debug/FileLinkFormatter.php:53)"} []
[2022-08-17T09:26:17.236419+03:00] php.CRITICAL: Uncaught Error: Cannot assign string to property Symfony\Component\HttpKernel\Debug\FileLinkFormatter::$fileLinkFormat of type array|false {"exception":"[object] (TypeError(code: 0): Cannot assign string to property Symfony\\Component\\HttpKernel\\Debug\\FileLinkFormatter::$fileLinkFormat of type array|false at /volume1/web/gitlist/vendor/symfony/http-kernel/Debug/FileLinkFormatter.php:53)"} []

Even if I've tried the solution proposed here : symfony/symfony#44550 and symfony/symfony@05ee088
I still have the same issue.

Linux 4.4.180+ #42661 SMP Mon Jun 27 15:05:48 CST 2022 x86_64 GNU/Linux synology_apollolake_218+
PHP 8.0
nginx

I'm having the same issue:

Linux DiskStation 4.4.180+ #42962 SMP Wed Sep 21 10:56:01 CST 2022 aarch64 GNU/Linux synology_rtd1296_ds418
PHP 8.0
nginx

I suspect it may be due to PHP 8.1 being required. :(

Did you ever get this working?

You'll need 8.1 to get 2.x working.