mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #1926] [Bug?]: #1038
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#1038
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @camagada on GitHub (May 18, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/1926
Originally assigned to: @phanan on GitHub.
Read the Troubleshooting guide.
Reproduction steps
Hello
I installed Koel on an LXC, with Ubuntu version 24.
It is working 100% with the admin user.
When I add another user who is not an admin and create a playlist, it does not open the songs. When I log out and try to log in with this user again, the following message appears:
"App\Repositories\SongRepository::getMany(): Argument #1 ($ids) must be of type array, null given, called in /var/www/koel/app/Services/QueueService.php on line 29"
When I log in as admin, it continues to work normally.
I changed this other user as admin, however, it also showed the same message.
installed: v7.4.0
Expected behavior
log in to the system normally
Actual behavior
error: "App\Repositories\SongRepository::getMany(): Argument #1 ($ids) must be of type array, null given, called in /var/www/koel/app/Services/QueueService.php on line 29"
Logs
#22 /var/www/koel/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(681): Illuminate\Log\Logger->error()
#23 /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(317): Illuminate\Log\LogManager->error()
[2025-05-18 02:09:01] production.ERROR: syntax error, unexpected token "public", expecting end of file {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token "public", expecting end of file at /var/www/koel/app/Providers/AppServiceProvider.php:60)
[2025-05-18 07:58:11] production.ERROR: Failed attempt {"error":"[object] (Intervention\Image\Exception\NotReadableException(code: 0): Unable to init from given binary data. at /var/www/koel/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:131)
Koel version
v7.4.0
How did you install Koel?
Compiled from source
Additional information
Ubuntu 24.10
PHP 8.3.11
mysql Ver 8.0.42-0
node v20.16.0
npm 9.2.0
@phanan commented on GitHub (May 18, 2025):
I can't reproduce the bug with the exact same details. Let's look at the code in QueueService.php:L28:
I don't see how
$state->song_idscan be null, as a cast is in place in App\Models\QueueState:L22:Can you help dig into the database and see what value
song_idsholds?@camagada commented on GitHub (May 19, 2025):
Solved.
I deleted the MySQL database and re-ran the KOEL INSTALLATION WIZARD.
Thanks for the feedback :)
@phanan commented on GitHub (May 19, 2025):
Great!