-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined constant RedisCluster::OPT_PREFIX #1207
Comments
The Redis bootstrapper expects phpredis to be installed.
Confirm that the php extension is installed. Additionally notice that it's saying the property doesn't exist on |
I was able to fix it by creating my own RedisTenancyBootstrapper extending package's and changing all occurrences of
To
Maybe It is not the best solution but works for me for now. Thanks! |
Interesting, in the case of clusters it's possible the actual client instance is a |
Yeah I am not sure if I did the right thing here, but at least the error
stopped happening. I'm not sure if it creates side
effects.
|
It looks like it is related to phpredis 6. RedisCluster constants were removed and only Redis constants should be used, if I understood correctly in some searches. Also Laravel itself has a merged PR that changes all RedisCluster constant references to Redis: |
Bug description
Hello,
We upgraded a project which uses tenancy (version 3.8.0) to Laravel 11, and also php to 8.3.
When deploying to Laravel Vapor, we received this error during deploy. We are using the php-8.3:al2-arm runtime.
Any ideas? We confirmed that the redis client being used is php redis and not predis.
Thanks!
Steps to reproduce
Deploy L11 project to Vapor with php-8.3:al2-arm runtime using redis as cache.
Expected behavior
Deploy should finish without errors
Laravel version
11.2
stancl/tenancy version
3.8.0
The text was updated successfully, but these errors were encountered: