Skip to content

create-project fails with an exception #398

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

Closed
stmh opened this issue Jun 6, 2018 · 4 comments
Closed

create-project fails with an exception #398

stmh opened this issue Jun 6, 2018 · 4 comments

Comments

@stmh
Copy link

stmh commented Jun 6, 2018

Hi

running the project via

composer create-project drupal-composer/drupal-project:8.x-dev project-dir --stability dev --no-interaction

fails with an exception:

...
Writing lock file
Generating autoload files
  - Downloading 1/16: https://cgit.drupalcode.org/drupal/plain/update.php
  - Downloading 3/16: https://cgit.drupalcode.org/drupal/plain/sites/example.sites.php
  - Downloading 3/16: https://cgit.drupalcode.org/drupal/plain/sites/example.settings.local.php
  - Downloading 7/16: https://cgit.drupalcode.org/drupal/plain/sites/development.services.yml
  - Downloading 7/16: https://cgit.drupalcode.org/drupal/plain/sites/default/default.services.yml
  - Downloading 7/16: https://cgit.drupalcode.org/drupal/plain/robots.txt
  - Downloading 7/16: https://cgit.drupalcode.org/drupal/plain/index.php
  - Downloading 8/16: https://cgit.drupalcode.org/drupal/plain/sites/default/default.settings.php
  - Downloading 9/16: https://cgit.drupalcode.org/drupal/plain/.htaccess
  - Downloading 10/16: https://cgit.drupalcode.org/drupal/plain/web.config
  - Downloading 11/16: https://cgit.drupalcode.org/drupal/plain/.gitattributes
  - Downloading 12/16: https://cgit.drupalcode.org/drupal/plain/.ht.router.php
  - Downloading 15/16: https://cgit.drupalcode.org/drupal/plain/.eslintignore
  - Downloading 15/16: https://cgit.drupalcode.org/drupal/plain/.editorconfig
  - Downloading 15/16: https://cgit.drupalcode.org/drupal/plain/.csslintrc
  - Downloading 16/16: https://cgit.drupalcode.org/drupal/plain/.eslintrc.json


  [ErrorException]
  count(): Parameter must be an array or an object that implements Countable


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

any ideas what might be wrong?, Thanks

@stmh
Copy link
Author

stmh commented Jun 6, 2018

Here's my PHP-version:

PHP 7.2.5 (cli) (built: Apr 26 2018 12:07:32) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
    with Zend OPcache v7.2.5, Copyright (c) 1999-2018, by Zend Technologies

@FatherShawn
Copy link

That looks like a breaking change introduced in php 7.2 which I learned about just this morning listening to the PHP Roundtable podcast :)

tl:dr is step back to php 7.1 until the failing code (Composer?) is updated for php 7.2

@stmh
Copy link
Author

stmh commented Jun 6, 2018

Thanks for confirming, will downgrade to 7.1

@stmh stmh closed this as completed Jun 6, 2018
@webflo
Copy link
Member

webflo commented Jun 6, 2018

This bug is related to drupal-composer/drupal-scaffold#80

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

No branches or pull requests

3 participants