You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading Horizon package to the latest version (1.19.0) I started getting errors on /horizon/dashboard route. I checked the documentation to upgrade and used php artisan vendor:publish --tag=laravel-assets --ansi --force which didn't help me. I tried to create HORIZON_ENV from this discussion which also didn't help me. So I started debugging the error and found that in Laravel\Horizon\Http\Controllers\MasterSupervisorController::36implode method gets the second parameter as a string which is incorrect.
It works when : 'queue' => implode(',', $value ?? []),
instead of 'queue' => implode(',', $value['queue'] ?? []),
So my question is: is this a bug or have I missed something important that can be probably more realistic? Even if it is a bug then something should be done on it.
P.S. Sorry in advance if didn't (or forget to) put some information which can help to understand the bug.
Steps To Reproduce
Set the APP_ENV=local
Upgrade to the latest version (current bug on v5.19.0)
Open the main page of Horizon app by /horizon/dashboard
Then it calls the /masters endpoint on Horizon app.
Sorry about the inconvenience! 1. Does this error still exist if you shut down the previous running "horizon:work" commands and start new ones after upgrading? 2. Can you provide your config file for horizon? You can redact private information from it, as long as the structure is the same as the one you are running.
I am able to reproduce with a string in the "queue" option for supervisors:
Horizon Version
1.19.0
Laravel Version
10.16.1
PHP Version
8.1.11
Redis Driver
PhpRedis
Redis Version
6.2.12
Database Driver & Version
No response
Description
After upgrading Horizon package to the latest version (1.19.0) I started getting errors on /horizon/dashboard route. I checked the documentation to upgrade and used
php artisan vendor:publish --tag=laravel-assets --ansi --force
which didn't help me. I tried to create HORIZON_ENV from this discussion which also didn't help me. So I started debugging the error and found that in Laravel\Horizon\Http\Controllers\MasterSupervisorController::36 implode method gets the second parameter as a string which is incorrect.It works when :
'queue' => implode(',', $value ?? []),
instead of
'queue' => implode(',', $value['queue'] ?? []),
So my question is: is this a bug or have I missed something important that can be probably more realistic? Even if it is a bug then something should be done on it.
P.S. Sorry in advance if didn't (or forget to) put some information which can help to understand the bug.
Steps To Reproduce
Set the APP_ENV=local
The hall stack trace of the error:
The text was updated successfully, but these errors were encountered: