- Issue created by @vistree
- πΊπΈUnited States jnicola
Hey there and thanks for trying this out!
You'll need to download / require Drupal with composer, and then require this as well. This will download all the other requirements. Then, as part of the Drupal Install you'll be prompted to pick an install profile, and this will be listed. Select this install profile, and it should work!
Let me know how that goes for you. I'll update the documentation this morning.
- πΊπΈUnited States jnicola
So I've updated the landing page information and the versions, as we've had a few updates come out since. It's good to go, try it out and let me know if it works for you!
- π©πͺGermany vistree
Hi, trying to use command from project page
composer require drupal/simple_grouped_content
results inCould not find a matching version of package drupal/simple_grouped_content. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable)
- π©πͺGermany vistree
+ group 3.3 is the recommended version on new installs - should simple_groupd_content work also with th 3.x branch of group?
- πΊπΈUnited States jnicola
It's not built for group 3.x yet, just 2.x and 1.x if you want to go that far back.
While group 3.x is recommended, a lot of downstream modules aren't fully sorted yet that this depends on, and the place I work at that gives me a very modest amount of time to work on this just barely got on 2.x, it'll be a while before i can retool this for 3.x.
That said, this has been working with us for 1.x and now 2.x for 4 years. It's a pretty stable foundation to build upon :)
- πΊπΈUnited States jnicola
Oh and sorry composer errors. Annoying that this isn't seen as a drupal package for some reason. Perhaps it's because it started as a sandbox. I added back in the repositories code. Try it out again with the respositires code added in your composer.json.
- π©πͺGermany vistree
I needed to use
composer config minimum-stability dev composer config prefer-stable true
to install the 2.0-alpha1
- π©πͺGermany vistree
@jnicola, can you tell me which Drupal version you last used to install the environment? Drupal 9, 10.0, 10.1, ...?
And, which group version was used in your initial local install? - πΊπΈUnited States jnicola
Drupal 10.3
Are you using composer? Should be in the requirements there. - πΊπΈUnited States jnicola
Huh well would you look at that, we don't have it in there!
https://git.drupalcode.org/project/simple_grouped_content/-/blob/1.2.x/c...
I'll have to look up how to suggest it. I think this should all be compatible with 9 and 10.
We've not tested this with 11.
- π©πͺGermany vistree
Hi, I tried the above installation with Drupal 10.3 and simple_grouped_content 2.0-alpha1
Should I try the 1.2.x version instead? - πΊπΈUnited States jnicola
No, 2.x should be good to go on this project. Could you elaborate on steps and what failed for you?
I'll try and find some time today or tomorrow to spin up a site from scratch and update the directions if necessary.
- π©πͺGermany vistree
Hi @jnicola,
this is what I did:- Create new empty Mysql database
- Install Drupal 10:
composer create-project drupal/recommended-project:10.3.8 simplegroup
- Add repository to composer.json
{ "type": "vcs", "url": "https://git.drupalcode.org/project/simple_grouped_content.git" }
- Allow dev/alpha modules:
composer config minimum-stability dev composer config prefer-stable true
- Add simple_grouped_content:
composer require drupal/simple_grouped_content
- Run installer in webbrowser:
http://simplegroup.local/core/install.php
- Add database settings to installer
Install fails with
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /core/install.php?rewrite=ok&profile=simple_grouped_content&langcode=en&id=1&op=do_nojs&op=do StatusText: OK ResponseText: Drupal\Core\Entity\EntityMalformedException: All group roles require a scope. in Drupal\group\Entity\GroupRole->preSave() (line 341 of /var/www/html/simplegroup/web/modules/contrib/group/src/Entity/GroupRole.php).
I tried with Drupal 10.0, 10.2 and 10.3