klaussilveira / gitlist

An elegant and modern git repository viewer
https://gitlist.org/
BSD 3-Clause "New" or "Revised" License
2.92k stars 517 forks source link

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

Closed GIOhnny closed 1 year ago

GIOhnny commented 2 years ago

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 : https://github.com/symfony/symfony/issues/44550 and https://github.com/symfony/symfony/pull/44402/commits/05ee088911aad0a4f3307b28046190b962027bcd 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

robert914 commented 1 year ago

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?

klaussilveira commented 1 year ago

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