lando / platformsh

The Official Platform.sh Lando Plugin
https://docs.lando.dev/platformsh
GNU General Public License v3.0
6 stars 4 forks source link

Redis extension unknown with platform.sh recipe and PHP 8.1 #165

Closed aimfeld closed 2 years ago

aimfeld commented 2 years ago

After changing the php version from 8.0 to 8.1 in .platform.app.yaml, I get the following error after lando destroy and lando rebuild: Exception: Extension '{'configuration': {}, 'name': u'redis'}' is unknown

We had this exact same problem when upgrading from PHP 7.4 to 8.0: https://github.com/lando/platformsh/issues/31 After some back and forth, @pirog and @trolologuy were able to replicate and fix the problem for PHP 8.0. Could you have a look and try to make redis work for 8.1 as well?

Platform.sh supports the redis and igbinary module for PHP 8.1, see https://docs.platform.sh/languages/php/extensions.html

aimfeld commented 2 years ago

I managed to fix the problem by overriding the image to use the latest stable one, as suggested here: https://github.com/lando/platformsh/issues/163#issuecomment-1122262912 Probably makes sense to use the latest stable image by default.

mikeshiyan commented 1 year ago

I also get this error. So it wasn't fixed. I'll try the mentioned workaround, thanks to @aimfeld

khaldoonmasud commented 1 year ago

I was getting the same error when I was trying to upgrade from php 7.4 to 8.1. I used the suggested hack to fix the issue. Thanks

services:
  app-service:
    overrides:
      image: docker.registry.platform.sh/php-8.1:stable