Skip to content
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

The application requires the version "^8.0" or greater. #45

Open
cfortin opened this issue May 24, 2022 · 5 comments
Open

The application requires the version "^8.0" or greater. #45

cfortin opened this issue May 24, 2022 · 5 comments

Comments

@cfortin
Copy link

cfortin commented May 24, 2022

Ubuntu 20.04.4 LTS
PHP (local) 7.4.29

I powered up a client's Drupal 8 Aquia BLT project today to be met with << The application requires the version "^8.0" or greater. >>

name: mggv2
recipe: acquia
config:
  acli_version: latest
  ah_application_uuid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  ah_site_group: mggv2
  php: 7.4
  xdebug: true
tooling:
  blt:
    service: appserver
    cmd: /app/vendor/bin/blt
services:
  appserver:
    type: php:7.4
    build_as_root:
      - apt update && apt install libgmp-dev -y && docker-php-ext-install gmp
      - docker-php-ext-enable gmp
    xdebug: "debug,develop"
    config:
      php: /app/config/php/php.ini/php74.ini
    overrides:
      environment:
        # Support debugging CLI with XDEBUG.
        PHP_IDE_CONFIG: "serverName=mggv2.lndo.site"
        XDEBUG_SESSION_START: lando

Updating both 7.4 refs to 8.1 and attempting to rebuild, produces :

PHP Parse error:  syntax error, unexpected token "match" in /app/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/HtmlDiff.php on line 699

Parse error: syntax error, unexpected token "match" in /app/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/HtmlDiff.php on line 699

ERROR ==>  message=, stack=Error
    at /snapshot/cli/lib/shell.js
From previous event:
    at Shell.sh (/snapshot/cli/lib/shell.js)
    at Object.dc (/snapshot/cli/lib/bootstrap.js)
    at compose (/snapshot/cli/lib/bootstrap.js)
From previous event:
    at /snapshot/cli/lib/router.js
    at processImmediate (internal/timers.js:464:21)
From previous event:
    at Object.run (/snapshot/cli/lib/router.js)
    at run (/snapshot/cli/lib/engine.js)
    at /snapshot/cli/lib/router.js
From previous event:
    at Object.eventWrapper (/snapshot/cli/lib/router.js)
    at Engine.engineCmd (/snapshot/cli/lib/engine.js)
    at Engine.run (/snapshot/cli/lib/engine.js)
    at Object.runBuild (/snapshot/cli/plugins/lando-services/lib/utils.js)
    at AsyncEvents.<anonymous> (/snapshot/cli/plugins/lando-services/app.js)
    at AsyncEvents.handle (/snapshot/cli/lib/events.js)
    at /snapshot/cli/lib/events.js
From previous event:
    at AsyncEvents.emit (/snapshot/cli/lib/events.js)
From previous event:
    at App.start (/snapshot/cli/lib/app.js)
    at /snapshot/cli/lib/app.js
From previous event:
    at App.rebuild (/snapshot/cli/lib/app.js)
    at Object.run (/snapshot/cli/plugins/lando-core/tasks/rebuild.js)
From previous event:
    at /snapshot/cli/lib/cli.js
From previous event:
    at Object.handler (/snapshot/cli/lib/cli.js)
    at Object.runCommand (/snapshot/cli/node_modules/yargs/lib/command.js:238:44)
    at Object.parseArgs [as _parseArgs] (/snapshot/cli/node_modules/yargs/yargs.js:1063:30)
    at Function.get [as argv] (/snapshot/cli/node_modules/yargs/yargs.js:1004:21)
    at Cli.init (/snapshot/cli/lib/cli.js)
    at Cli.run (/snapshot/cli/lib/cli.js)
    at Object.<anonymous> (/snapshot/cli/bin/lando.js)
    at Module._compile (pkg/prelude/bootstrap.js:1887:22)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.runMain (pkg/prelude/bootstrap.js:1940:12)
    at internal/main/run_main_module.js:17:47, __stackCleaned__=true

Have I entered vicious cycle territory? Any help would be very much appreciated! Thank you!

@cfortin cfortin added the acquia label May 24, 2022
@rtfm-47 rtfm-47 transferred this issue from lando/lando May 24, 2022
@cfortin
Copy link
Author

cfortin commented May 24, 2022

Acquia BLT versions 12 and 13 require Drupal 9.x so I can't upgrade from BLT 11.7.0.

I haven't changed anything, either locally or in my lando config, apart from upgrading to latest version and trying again.

@rubenvarela
Copy link
Collaborator

Check #44 for fix in the replies.

Check #43 for an idea to prevent this.

@cfortin
Copy link
Author

cfortin commented May 24, 2022

Thank you very much @rubenvarela

@rubenvarela
Copy link
Collaborator

@cfortin Of course!

Been dealing with it on a bunch of sites.

@cfortin
Copy link
Author

cfortin commented May 24, 2022

As per @rubenvarela and @labboy0276 's excellent contributions elsewhere, I fixed this by changing this entry:

config:
  acli_version: latest

to:

config:
  acli_version: 1.30.1

and a quick rebuild:

rm -rf vendor/ and lando rebuild

Thanks again guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants