[GH-ISSUE #1651] Can't create Smart playlist #903

Closed
opened 2026-02-26 02:34:34 +03:00 by kerem · 14 comments
Owner

Originally created by @h4kuna on GitHub (Jan 10, 2023).
Original GitHub issue: https://github.com/koel/koel/issues/1651

Hello,

Describe the bug
I can't create "Smart playlist". I got response "Something went wrong. Please try again.".

To reproduce
Steps to reproduce the behavior:

  1. On left side menu
  2. Click on '+' next to Playlist
  3. Choose 'New Smart Playlist'
  4. Fill name and one Group
  5. Click on save and get error.

Expected behavior
Save smart list

Environment

  • Koel version v6.11.0
  • OS: Ubuntu
  • Browser Chrome 108
  • PHP version 8.1
  • Node version 14.20

Additional context
Info from log

[2023-01-10 17:19:06] production.ERROR: Failed attempt {"error":"[object] (TypeError(code: 0): Cannot assign float to property App\\Values\\SmartPlaylistRule::$id of type ?int at /var/www/html/app/Values/SmartPlaylistRule.php:72)
[stacktrace]
#0 /var/www/html/app/Values/SmartPlaylistRule.php(91): App\\Values\\SmartPlaylistRule->__construct()
#1 [internal function]: App\\Values\\SmartPlaylistRule::create()
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(560): array_map()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(719): Illuminate\\Support\\Arr::map()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(1517): Illuminate\\Support\\Collection->map()
#5 /var/www/html/app/Values/SmartPlaylistRuleGroup.php(19): Illuminate\\Support\\Collection->transform()
#6 [internal function]: App\\Values\\SmartPlaylistRuleGroup::create()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(560): array_map()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(719): Illuminate\\Support\\Arr::map()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(1517): Illuminate\\Support\\Collection->map()
#10 /var/www/html/app/Values/SmartPlaylistRuleGroupCollection.php(11): Illuminate\\Support\\Collection->transform()
#11 /var/www/html/app/Rules/ValidSmartPlaylistRulePayload.php(13): App\\Values\\SmartPlaylistRuleGroupCollection::create()
#12 /var/www/html/app/Helpers.php(47): App\\Rules\\ValidSmartPlaylistRulePayload::App\\Rules\\{closure}()
#13 /var/www/html/app/Rules/ValidSmartPlaylistRulePayload.php(13): attempt()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(812): App\\Rules\\ValidSmartPlaylistRulePayload->passes()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(603): Illuminate\\Validation\\Validator->validateUsingCustomRule()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(415): Illuminate\\Validation\\Validator->validateAttribute()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(446): Illuminate\\Validation\\Validator->passes()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php(25): Illuminate\\Validation\\Validator->fails()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Providers/FormRequestServiceProvider.php(30): Illuminate\\Foundation\\Http\\FormRequest->validateResolved()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1263): Illuminate\\Foundation\\Providers\\FormRequestServiceProvider->Illuminate\\Foundation\\Providers\\{closure}()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1228): Illuminate\\Container\\Container->fireCallbackArray()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1213): Illuminate\\Container\\Container->fireAfterResolvingCallbacks()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): Illuminate\\Container\\Container->fireResolvingCallbacks()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(855): Illuminate\\Container\\Container->resolve()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(692): Illuminate\\Foundation\\Application->resolve()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(840): Illuminate\\Container\\Container->make()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(80): Illuminate\\Foundation\\Application->make()
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(49): Illuminate\\Routing\\ControllerDispatcher->transformDependency()
#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(29): Illuminate\\Routing\\ControllerDispatcher->resolveMethodDependencies()
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(41): Illuminate\\Routing\\ControllerDispatcher->resolveClassMethodDependencies()
#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(261): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(204): Illuminate\\Routing\\Route->runController()
#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(725): Illuminate\\Routing\\Route->run()
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#35 /var/www/html/app/Http/Middleware/Authenticate.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\Authenticate->handle()
#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#39 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(62): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest()
#41 /var/www/html/app/Http/Middleware/ThrottleRequests.php(14): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle()
#42 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\ThrottleRequests->handle()
#43 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#44 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(726): Illuminate\\Pipeline\\Pipeline->then()
#45 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(703): Illuminate\\Routing\\Router->runRouteWithinStack()
#46 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(667): Illuminate\\Routing\\Router->runRoute()
#47 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(656): Illuminate\\Routing\\Router->dispatchToRoute()
#48 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(167): Illuminate\\Routing\\Router->dispatch()
#49 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#50 /var/www/html/app/Http/Middleware/ForceHttps.php(28): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#51 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\ForceHttps->handle()
#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#53 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#54 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#55 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#56 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#57 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#58 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#59 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#60 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\\Pipeline\\Pipeline->then()
#61 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#62 /var/www/html/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle()
#63 {main}
"} 
Originally created by @h4kuna on GitHub (Jan 10, 2023). Original GitHub issue: https://github.com/koel/koel/issues/1651 Hello, **Describe the bug** I can't create "Smart playlist". I got response "Something went wrong. Please try again.". **To reproduce** Steps to reproduce the behavior: 1. On left side menu 2. Click on '+' next to Playlist 3. Choose 'New Smart Playlist' 4. Fill name and one Group 5. Click on save and get error. **Expected behavior** Save smart list **Environment** - Koel version v6.11.0 - OS: Ubuntu - Browser Chrome 108 - PHP version 8.1 - Node version 14.20 **Additional context** Info from log ``` [2023-01-10 17:19:06] production.ERROR: Failed attempt {"error":"[object] (TypeError(code: 0): Cannot assign float to property App\\Values\\SmartPlaylistRule::$id of type ?int at /var/www/html/app/Values/SmartPlaylistRule.php:72) [stacktrace] #0 /var/www/html/app/Values/SmartPlaylistRule.php(91): App\\Values\\SmartPlaylistRule->__construct() #1 [internal function]: App\\Values\\SmartPlaylistRule::create() #2 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(560): array_map() #3 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(719): Illuminate\\Support\\Arr::map() #4 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(1517): Illuminate\\Support\\Collection->map() #5 /var/www/html/app/Values/SmartPlaylistRuleGroup.php(19): Illuminate\\Support\\Collection->transform() #6 [internal function]: App\\Values\\SmartPlaylistRuleGroup::create() #7 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(560): array_map() #8 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(719): Illuminate\\Support\\Arr::map() #9 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(1517): Illuminate\\Support\\Collection->map() #10 /var/www/html/app/Values/SmartPlaylistRuleGroupCollection.php(11): Illuminate\\Support\\Collection->transform() #11 /var/www/html/app/Rules/ValidSmartPlaylistRulePayload.php(13): App\\Values\\SmartPlaylistRuleGroupCollection::create() #12 /var/www/html/app/Helpers.php(47): App\\Rules\\ValidSmartPlaylistRulePayload::App\\Rules\\{closure}() #13 /var/www/html/app/Rules/ValidSmartPlaylistRulePayload.php(13): attempt() #14 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(812): App\\Rules\\ValidSmartPlaylistRulePayload->passes() #15 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(603): Illuminate\\Validation\\Validator->validateUsingCustomRule() #16 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(415): Illuminate\\Validation\\Validator->validateAttribute() #17 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(446): Illuminate\\Validation\\Validator->passes() #18 /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php(25): Illuminate\\Validation\\Validator->fails() #19 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Providers/FormRequestServiceProvider.php(30): Illuminate\\Foundation\\Http\\FormRequest->validateResolved() #20 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1263): Illuminate\\Foundation\\Providers\\FormRequestServiceProvider->Illuminate\\Foundation\\Providers\\{closure}() #21 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1228): Illuminate\\Container\\Container->fireCallbackArray() #22 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1213): Illuminate\\Container\\Container->fireAfterResolvingCallbacks() #23 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): Illuminate\\Container\\Container->fireResolvingCallbacks() #24 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(855): Illuminate\\Container\\Container->resolve() #25 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(692): Illuminate\\Foundation\\Application->resolve() #26 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(840): Illuminate\\Container\\Container->make() #27 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(80): Illuminate\\Foundation\\Application->make() #28 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(49): Illuminate\\Routing\\ControllerDispatcher->transformDependency() #29 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(29): Illuminate\\Routing\\ControllerDispatcher->resolveMethodDependencies() #30 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(41): Illuminate\\Routing\\ControllerDispatcher->resolveClassMethodDependencies() #31 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(261): Illuminate\\Routing\\ControllerDispatcher->dispatch() #32 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(204): Illuminate\\Routing\\Route->runController() #33 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(725): Illuminate\\Routing\\Route->run() #34 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}() #35 /var/www/html/app/Http/Middleware/Authenticate.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #36 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\Authenticate->handle() #37 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #38 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle() #39 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #40 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(62): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest() #41 /var/www/html/app/Http/Middleware/ThrottleRequests.php(14): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle() #42 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\ThrottleRequests->handle() #43 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #44 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(726): Illuminate\\Pipeline\\Pipeline->then() #45 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(703): Illuminate\\Routing\\Router->runRouteWithinStack() #46 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(667): Illuminate\\Routing\\Router->runRoute() #47 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(656): Illuminate\\Routing\\Router->dispatchToRoute() #48 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(167): Illuminate\\Routing\\Router->dispatch() #49 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}() #50 /var/www/html/app/Http/Middleware/ForceHttps.php(28): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #51 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\ForceHttps->handle() #52 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #53 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle() #54 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle() #55 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #56 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle() #57 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #58 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle() #59 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #60 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\\Pipeline\\Pipeline->then() #61 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter() #62 /var/www/html/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle() #63 {main} "} ```
kerem closed this issue 2026-02-26 02:34:34 +03:00
Author
Owner

@phanan commented on GitHub (Feb 25, 2023):

I can't reproduce the error. Can you provide the exact input for step 4?

<!-- gh-comment-id:1445145193 --> @phanan commented on GitHub (Feb 25, 2023): I can't reproduce the error. Can you provide the exact input for step 4?
Author
Owner

@h4kuna commented on GitHub (Mar 6, 2023):

Yes, here are screens.

Snímek obrazovky z 2023-03-06 12-48-17

Snímek obrazovky z 2023-03-06 12-45-10

<!-- gh-comment-id:1455987766 --> @h4kuna commented on GitHub (Mar 6, 2023): Yes, here are screens. ![Snímek obrazovky z 2023-03-06 12-48-17](https://user-images.githubusercontent.com/335722/223101995-dacd2030-fd45-4cdf-a017-64fdead59129.png) ![Snímek obrazovky z 2023-03-06 12-45-10](https://user-images.githubusercontent.com/335722/223101604-978e5dfe-b14a-4a64-ba45-5bae625f0335.png)
Author
Owner

@h4kuna commented on GitHub (Mar 6, 2023):

Could be wrong any database migration between koel versions? I started with koel 6.8.

<!-- gh-comment-id:1455991489 --> @h4kuna commented on GitHub (Mar 6, 2023): Could be wrong any database migration between koel versions? I started with koel 6.8.
Author
Owner

@phanan commented on GitHub (Mar 6, 2023):

Hmm, I can't reproduce the bug with the provided input. What's your DB? Also, what happens if you run php artisan db:migrate?

<!-- gh-comment-id:1456053138 --> @phanan commented on GitHub (Mar 6, 2023): Hmm, I can't reproduce the bug with the provided input. What's your DB? Also, what happens if you run `php artisan db:migrate`?
Author
Owner

@h4kuna commented on GitHub (Mar 6, 2023):

I use docker container, with user www-data docker exec --user www-data -it koel-koel-1 bash.

I haven't command db:migrate is it ok? The artisan suggest migrate only.

Result is Nothing to migrate.

image

<!-- gh-comment-id:1456073178 --> @h4kuna commented on GitHub (Mar 6, 2023): I use docker container, with user www-data `docker exec --user www-data -it koel-koel-1 bash`. I haven't command `db:migrate` is it ok? The artisan suggest `migrate` only. Result is `Nothing to migrate.` ![image](https://user-images.githubusercontent.com/335722/223114468-d03e908a-62e1-4de7-a9b8-a373531623e0.png)
Author
Owner

@phanan commented on GitHub (Mar 6, 2023):

According to the log it's trying to assign a float ID into the smart playlist rule's ID which only accepts int?. What confuses me is, how can it be a float? If you look at the request from within the dev tool, what's the payload?

<!-- gh-comment-id:1456080367 --> @phanan commented on GitHub (Mar 6, 2023): According to the log it's trying to assign a `float` ID into the smart playlist rule's ID which only accepts `int?`. What confuses me is, how can it be a float? If you look at the request from within the dev tool, what's the payload?
Author
Owner

@h4kuna commented on GitHub (Mar 6, 2023):

The id in payload is 1678109062462. Maybe, the good point is, I am running koel on raspbery ... 32bit. On 32bit system if you want keep value, it must to use float. I had same trouble with read file size.
I will reinstall the system in half a year on 64bit.

OT: How you can see the manifest does not exist, how can I fix it? By artisan?

Snímek obrazovky z 2023-03-06 14-26-30

<!-- gh-comment-id:1456150236 --> @h4kuna commented on GitHub (Mar 6, 2023): The id in payload is `1678109062462`. Maybe, the good point is, I am running koel on raspbery ... 32bit. On 32bit system if you want keep value, it must to use float. I had same trouble with read file size. I will reinstall the system in half a year on 64bit. OT: How you can see the manifest does not exist, how can I fix it? By artisan? ![Snímek obrazovky z 2023-03-06 14-26-30](https://user-images.githubusercontent.com/335722/223124242-5a7f03fe-07aa-4d6c-9e6e-b3011317bdc0.png)
Author
Owner

@phanan commented on GitHub (Mar 6, 2023):

Ah, indeed, 32-bit OS would have this problem.
For manifest, you can run cp public/manifest.json.example public/manifest.json .

<!-- gh-comment-id:1456153606 --> @phanan commented on GitHub (Mar 6, 2023): Ah, indeed, 32-bit OS would have this problem. For manifest, you can run `cp public/manifest.json.example public/manifest.json` .
Author
Owner

@h4kuna commented on GitHub (Mar 6, 2023):

I update environment

Environment server:
Koel version v6.11.0
OS: Raspbery 32bit

Client environment:
OS: Ubuntu 64bit
Browser: Chrome 108

OS for client is not important! Now in retrospect I see my mistake.

<!-- gh-comment-id:1456161851 --> @h4kuna commented on GitHub (Mar 6, 2023): I update environment Environment server: Koel version v6.11.0 OS: Raspbery 32bit Client environment: OS: Ubuntu 64bit Browser: Chrome 108 OS for client is not important! Now in retrospect I see my mistake.
Author
Owner

@rxerium commented on GitHub (Apr 16, 2023):

Hey, did we confirm what the issue is here? I'm having the same issue and have tried the 64bit ubuntu 22.04 OS.

<!-- gh-comment-id:1510280524 --> @rxerium commented on GitHub (Apr 16, 2023): Hey, did we confirm what the issue is here? I'm having the same issue and have tried the 64bit ubuntu 22.04 OS.
Author
Owner

@phanan commented on GitHub (Apr 16, 2023):

The original issue seems to be in the browser sending a float value as the rule ID instead of the expected int type in a 32-bit env, so yours might be another issue. In retrospect, this value should be a UUID anyway. I will try to find some time to fix it in a next version.

<!-- gh-comment-id:1510291529 --> @phanan commented on GitHub (Apr 16, 2023): The original issue seems to be in the browser sending a float value as the rule ID instead of the expected int type in a 32-bit env, so yours might be another issue. In retrospect, this value should be a UUID anyway. I will try to find some time to fix it in a next version.
Author
Owner

@rxerium commented on GitHub (Apr 16, 2023):

thanks @phanan. Also more than happy to provide further details to help when resolving this bug :)

<!-- gh-comment-id:1510294269 --> @rxerium commented on GitHub (Apr 16, 2023): thanks @phanan. Also more than happy to provide further details to help when resolving this bug :)
Author
Owner

@phanan commented on GitHub (Apr 16, 2023):

Please follow what was suggested in this thread and see if it's the same problem and if not open another issue :)

<!-- gh-comment-id:1510297250 --> @phanan commented on GitHub (Apr 16, 2023): Please follow what was suggested in this thread and see if it's the same problem and if not open another issue :)
Author
Owner

@phanan commented on GitHub (Apr 17, 2023):

Closed in 81748676ee.

<!-- gh-comment-id:1512002482 --> @phanan commented on GitHub (Apr 17, 2023): Closed in 81748676ee1e74c770a4b39f96cb1bb4a519048d.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#903
No description provided.