Module does not completely install when enabled

Created on 31 March 2023, over 1 year ago
Updated 12 December 2023, 10 months ago

Problem/Motivation

I tried to install 3.0.0 on a fresh site. The site now fails to load when attempting to access a node, /admin/content, or /admin/modules/uninstall.

Here's the error I'm seeing:

[31-Mar-2023 10:23:21 America/Vancouver] Uncaught PHP Exception Drupal\Core\Database\DatabaseExceptionWrapper: "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'wintersa_immersive.group_relationship_field_data' doesn't exist: SELECT DISTINCT "d"."plugin_id" AS "plugin_id"
FROM
"group_relationship_field_data" "d"
WHERE ("entity_id" = :db_condition_placeholder_0) AND ("plugin_id" IN (:db_condition_placeholder_1, :db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4)); Array
(
    [:db_condition_placeholder_0] => 1
    [:db_condition_placeholder_1] => group_node:article
    [:db_condition_placeholder_2] => group_node:environment
    [:db_condition_placeholder_3] => group_node:page
    [:db_condition_placeholder_4] => group_node:scenario
)
" at /home/wintersa/immersive.wintersandassociates.com/immersive-drupal/web/core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php line 46

Was the table just not created when installing the module? (Note: I can't see anything relevant in the issue queue and have not spent a huge amount of time attempting to debug the module myself.)

πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada CatherineOmega

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

Comments & Activities

  • Issue created by @CatherineOmega
  • πŸ‡¨πŸ‡¦Canada CatherineOmega

    It's been pointed out to me that perhaps I should mention this is Drupal 10!

  • πŸ‡ͺπŸ‡ΈSpain rteijeiro

    Same issue here:

    - Drupal 9.4.14
    - Group 3.0.0-rc2

    Just install group module and can't access /admin/group page. Getting this error:

    The website encountered an unexpected error. Please try again later.
    TypeError: Drupal\Core\Entity\Sql\DefaultTableMapping::requiresDedicatedTableStorage(): Argument #1 ($storage_definition) must be of type Drupal\Core\Field\FieldStorageDefinitionInterface, null given, called in /web/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php on line 331 in Drupal\Core\Entity\Sql\DefaultTableMapping->requiresDedicatedTableStorage() (line 521 of core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php).
    

    It seems the module installation was not completed correctly for some reason. Trying to import the config from config/install using drush and getting a similar error like the one in the summary:

    In ExceptionHandler.php line 53:
                                                                                                                                                                                            
      SQLSTATE[42S02]: Base table or view not found: 1146 Table 'group_config_wrapper' doesn't exist: SELECT "base_table"."id" AS "id", "base_table"."id" AS "base_table_id"  
      FROM                                                                                                                                                                                  
      "group_config_wrapper" "base_table"                                                                                                                                                   
      LIMIT 1 OFFSET 0; Array                                                                                                                                                               
      (                                                                                                                                                                                     
      )                                                                                                                                                                                     
                                                                                                                                                                                            
    
    In StatementWrapper.php line 145:
                                                                                                                    
      SQLSTATE[42S02]: Base table or view not found: 1146 Table 'group_config_wrapper' doesn't exist 
    
  • πŸ‡ͺπŸ‡ΈSpain rteijeiro

    Changed the title and priority to make it more relevant as I really expended a lot of time trying to debug this issue and can't understand why the module is not installed properly.

  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    Wouldn't this be a core issue then? As far as I know, Group doesn't do anything special when it comes to installation so the declared tables should all be created.

  • πŸ‡ͺπŸ‡ΈSpain rteijeiro

    Yes, definitely is something not related to Group module itself. I reproduced the same environment using the same Drupal core and group module and dependencies versions and everything works fine. I'm sure it's something related to our project configuration. Will continue investigating but maybe someone had the same issue in the past.

    Feel free to close the issue if you consider it necessary. Thansk!

  • πŸ‡ΊπŸ‡ΈUnited States aaronlsilber Charleston, WV

    I'm experiencing this right now on a Drupal 10.1.7 site. (Groups 3.2.2)

    After some fiddling, I discovered that if I try to have Drupal install all of the module's dependencies it fails, but if I install the Flexible Permissions module first (which installs the Variation Cache module) it works. Installing the Entity module beforehand doesn't seem to make a difference. The logs don't tell me anything useful.

    It's worth noting that trying to install Group on the same version of Drupal on Simplytest.me works just fine out of the box.

Production build 0.71.5 2024