itsgoingd / clockwork

Clockwork - php dev tools in your browser - server-side component
https://underground.works/clockwork
MIT License
5.69k stars 321 forks source link

Using Redis storage without user/password #711

Closed reeslo closed 1 month ago

reeslo commented 3 months ago

There is an issue when using Redis storage but without authentication

image

A PHP Error was encountered

Severity: Warning

Message: Redis::auth(): When passing an array as auth it must have one or two elements!

Filename: Storage/RedisStorage.php

Line Number: 55

Backtrace:

Also if the database is not set it must be 0 like

        $redis->select($connection['database'] ?? 0);
A PHP Error was encountered

Severity: Warning

Message: Undefined array key "database"

Filename: Storage/RedisStorage.php

Line Number: 58
itsgoingd commented 3 months ago

Thanks for the report, I'll try to fix these soon.

reeslo commented 3 months ago

You're welcome! I've fixed it by adding fake informations :)

reeslo commented 2 months ago

Hi, the ui interface seems not usable when Redis driver is set.

itsgoingd commented 1 month ago

Oops, forgot about this one, this is now fixed in master and will be released in Clockwork 5.3 (https://github.com/itsgoingd/clockwork/commit/a46f56a9d0e6e498dfd0f44214299149f235b103).