Reproduction steps
Unexpected result
- Open the website as an anonymous (not logged in) user.
- Create a new album (e.g. “test25”).
- Log in as an administrator.
- Try to open the album via its public URL (e.g. /album/test25.ysfc).
Unexpected result
- The album page does not load when accessed by the administrator.
- An error page is displayed instead of the album content.
- However, when the same album is opened by any other user — either logged in as a regular user or completely anonymous — the album loads correctly.
[68ff364a0e0ad] TypeError in /app/src/Legacy/Classes/User.php:103
# Message
Chevereto\Legacy\Classes\User::getCacheKey(): Argument #1 ($id) must be of type int, null given, called in /app/src/Legacy/Classes/User.php on line 120
# URI
/album/test25.ysfc
# Method
GET
# Time
2025-10-27T09:07:22+00:00 [1761556042]
# Incident 68ff364a0e0ad
# Backtrace
------------------------------------------------------------
0 /app/src/Legacy/Classes/User.php:103
{main}()
------------------------------------------------------------
1 /app/src/Legacy/Classes/User.php:120
Chevereto\Legacy\Classes\User::getCacheKey()
------------------------------------------------------------
2 /app/legacy/routes/album.php:371
Chevereto\Legacy\Classes\User::getAlbums()
------------------------------------------------------------
3 /app/src/Legacy/G/Handler.php:456
Chevereto\Legacy\G\Handler->{closure}()
------------------------------------------------------------
4 /app/src/Legacy/G/Handler.php:180
Chevereto\Legacy\G\Handler->processRequest()
------------------------------------------------------------
5 /app/legacy/load/web.php:668
Chevereto\Legacy\G\Handler->__construct()
------------------------------------------------------------
6 /app/legacy/entrypoints/index.php:45
require_once(string(length=40))
------------------------------------------------------------
7 /index.php:12
require_once(string(length=49))
------------------------------------------------------------