Created on 14 November 2024, about 1 month ago

Hi, I tried to install this module - but it did not work.
I tried to add composer.json part to an existing (!!) Drupal installation
On the project homepage, you tell users to use "dccomposer" - but I think, this should be composer only, right?

Can you give some additional details on how to install with e.g. Drupal 10?
Do I need to first install Drupal?
Which release to be used with Drupal 10? (beta, dev-1 or dev-2)??

πŸ’¬ Support request
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany vistree

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • 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 in

      Could 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:

    1. Create new empty Mysql database
    2. Install Drupal 10:
      composer create-project drupal/recommended-project:10.3.8 simplegroup
    3. Add repository to composer.json
      {
                  "type": "vcs",
                  "url": "https://git.drupalcode.org/project/simple_grouped_content.git"
              }
    4. Allow dev/alpha modules:
      composer config minimum-stability dev
      composer config prefer-stable true
    5. Add simple_grouped_content:
      composer require drupal/simple_grouped_content
      
    6. Run installer in webbrowser:
      http://simplegroup.local/core/install.php
    7. 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

  • πŸ‡©πŸ‡ͺGermany vistree

    Hi @jnicola, were you able to reproduce the problems - or is this a local one on my side?

  • πŸ‡ΊπŸ‡ΈUnited States jnicola

    I'll try and find some time to look into this next week. It's a big Holiday here and I'm about to be out through next Monday!

Production build 0.71.5 2024