Skip to content

Fix 500 error caused by null return in getLatestVersionInfo() #1336

@Robbby-00

Description

@Robbby-00

Describe the bug
For the past few days, the website has become inaccessible and consistently returns a 500 Internal Server Error.

In some cases, accessing specific URLs directly may work, but as soon as I interact with the page (e.g., clicking a button), the application immediately returns a 500 error again.

After checking the logs, I found what appears to be the root cause:
request.CRITICAL: ... An exception has been thrown during the rendering of a template (\"App\\Services\\System\\UpdateAvailableFacade::getLatestVersionInfo(): Return value must be of type array, null returned\") ...

This suggests that the method getLatestVersionInfo() is returning null instead of an array, which causes the application to crash during template rendering.

I’ve attached the full Docker logs for further inspection. Let me know if you need any additional information or tests.
log-partb.txt

What I did
I attempted to resolve the issue by following the instructions shown on the 500 error page, but without success.

  • php bin/console cache:clear
  • php bin/console cache:pool:clear --all

Server Side

  • Part-DB Docker Version: latest (2.9.1)

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Brave
  • Version [e.g. 22]
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions