[drush] Running Varbase install from drush results in error 'The "webform_submission" entity type does not exist.'

Created on 14 June 2023, over 1 year ago
Updated 15 November 2023, about 1 year ago

Problem/Motivation

I can't seem to install `varbase` profile with drush. Big error about webform missing, unable to enable webform.

Steps to reproduce

When I run "drush site:install varbase"
Then I should see drupal install logs (below)
And I run "drush uli"
Then I open the link
Then I should not see 'The "webform_submission" entity type does not exist.'
And when I run "drush en webform"
Then I should not see:

Configuration objects (system.action.webform_archive_action, system.action.webform_close_action, system.action.webform_delete_action, system.action.webform_open_action, system.action.webform_submission_delete_action, system.action.webform_submission_m
ake_lock_action, system.action.webform_submission_make_sticky_action, system.action.webform_submission_make_unlock_action, system.action.webform_submission_make_unsticky_action, system.action.webform_unarchive_action, webform.settings, webform.webform
.contact, webform.webform_options.country_codes, webform.webform_options.country_names, webform.webform_options.days, webform.webform_options.education, webform.webform_options.employment_status, webform.webform_options.ethnicity, webform.webform_opti
ons.gender, webform.webform_options.industry, webform.webform_options.languages, webform.webform_options.likert_agreement, webform.webform_options.likert_comparison, webform.webform_options.likert_importance, webform.webform_options.likert_quality, we
bform.webform_options.likert_satisfaction, webform.webform_options.likert_ten_scale, webform.webform_options.likert_would_you, webform.webform_options.marital_status, webform.webform_options.months, webform.webform_options.phone_types, webform.webform
_options.province_codes, webform.webform_options.province_names, webform.webform_options.relationship, webform.webform_options.sex, webform.webform_options.sex_icao, webform.webform_options.size, webform.webform_options.state_codes, webform.webform_op
tions.state_names, webform.webform_options.state_province_codes, webform.webform_options.state_province_names, webform.webform_options.time_zones, webform.webform_options.titles, webform.webform_options.translations, webform.webform_options.yes_no) pr
ovided by webform already exist in active configuration

Proposed resolution

Make varbase use defaults so users can just use drush site:install varbase

Notes

Install profile part ran smoothly:

 [notice] Starting Drupal installation. This takes a while.
 [notice] Performed install task: install_select_language
 [notice] Performed install task: install_select_profile
 [notice] Performed install task: install_load_profile
 [notice] Performed install task: install_verify_requirements
 [notice] Performed install task: install_verify_database_ready
 [notice] Performed install task: install_base_system
 [notice] Performed install task: install_bootstrap_full
 [notice] Performed install task: install_profile_modules
 [notice] Performed install task: install_profile_themes
 [notice] Performed install task: install_install_profile
 [notice] Performed install task: install_configure_form
 [notice] Performed install task: varbase_multilingual_configuration_form
 [notice] Performed install task: varbase_configure_multilingual
 [notice] Performed install task: varbase_extra_components
 [notice] <em class="placeholder">Publish state</em> hidden for: Media types (Audio, File, Gallery, Image, Remote video, Video)
 [notice] <em class="placeholder">Unpublish state</em> hidden for: Media types (Audio, File, Gallery, Image, Remote video, Video)
 [notice] Performed install task: varbase_assemble_extra_components
 [notice] Performed install task: varbase_development_tools
 [notice] Performed install task: varbase_assemble_development_tools
 [notice] Performed install task: install_finished
 [success] Installation complete.  User name: admin  User password: pcnnR6mXfs
πŸ› Bug report
Status

Fixed

Version

9.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Jon Pugh Newburgh, NY

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

Comments & Activities

  • Issue created by @Jon Pugh
  • πŸ‡ΊπŸ‡ΈUnited States Jon Pugh Newburgh, NY
  • πŸ‡ΊπŸ‡ΈUnited States Jon Pugh Newburgh, NY

    I just dug up the command used in Circle CI.

                ../bin/drush site-install varbase --yes --account-name="webmaster" --account-pass="dD.123123ddd" --account-mail="webmaster@vardot.com" --db-url="mysql://root:rootpw@127.0.0.1/test_varbase" --locale="en" varbase_multilingual_configuration.enable_multilingual=true varbase_extra_components.vmi=true varbase_extra_components.varbase_heroslider_media=true varbase_extra_components.varbase_carousels=true varbase_extra_components.varbase_search=true varbase_extra_components.varbase_blog=true varbase_extra_components.varbase_auth=true install_configure_form.enable_update_status_emails=NULL -vvv
    
  • πŸ‡ΊπŸ‡ΈUnited States Jon Pugh Newburgh, NY

    Using that full command in drush worked.

    FWIW I added it as a composer script to varbase_project to make demonstrations easier:

    https://github.com/Vardot/varbase-project/pull/177/files#diff-d2ab9925ca...

    This creates a composer command for one shot varbase install.

    composer varbase:install

    ❯ lando composer v:i
    Xdebug: [Log Files] File '/tmp/xdebug.log' could not be opened.
    > drush site:install varbase varbase_multilingual_configuration.enable_multilingual=true varbase_extra_components.vmi=true varbase_extra_components.varbase_heroslider_media=true varbase_extra_components.varbase_carousels=true varbase_extra_components.varbase_search=true varbase_extra_components.varbase_blog=true varbase_extra_components.varbase_auth=true install_configure_form.enable_update_status_emails=NULL
    Xdebug: [Log Files] File '/tmp/xdebug.log' could not be opened.
    
     You are about to:
     * DROP all tables in your 'drupal9' database.
    
     Do you want to continue? (yes/no) [yes]:
     > yes
    
     [notice] Starting Drupal installation. This takes a while.
     [notice] Performed install task: install_select_language
     [notice] Performed install task: install_select_profile
     [notice] Performed install task: install_load_profile
     [notice] Performed install task: install_verify_requirements
     [notice] Performed install task: install_verify_database_ready
     [notice] Performed install task: install_base_system
     [notice] Performed install task: install_bootstrap_full
     [notice] Performed install task: install_profile_modules
     [notice] Performed install task: install_profile_themes
     [notice] Performed install task: install_install_profile
     [notice] Performed install task: install_configure_form
     [notice] Performed install task: varbase_multilingual_configuration_form
     [notice] Performed install task: varbase_configure_multilingual
     [notice] Performed install task: varbase_extra_components
     [notice] <em class="placeholder">Publish state</em> hidden for: Media types (Audio, File, Gallery, Image, Remote video, Video)
     [notice] <em class="placeholder">Unpublish state</em> hidden for: Media types (Audio, File, Gallery, Image, Remote video, Video)
     [warning] The "views_block:varbase_heroslider_media-varbase_heroslider_media" was not found
     [warning] The "field_block:node:varbase_blog:field_media" was not found
     [warning] The "field_block:node:varbase_blog:body" was not found
     [warning] The "field_block:node:varbase_blog:field_tags" was not found
     [warning] The "views_block:varbase_blog-related_blog_posts_block" was not found
     [warning] The "field_block:node:varbase_blog:field_media" was not found
     [warning] The "views_block:varbase_blog-most_recent_blog_posts_block" was not found
     [warning] The "field_block:node:varbase_blog:body" was not found
     [warning] The "views_block:varbase_blog-most_popular_blog_posts_block" was not found
     [warning] The "field_block:node:varbase_blog:field_tags" was not found
     [warning] The "views_block:varbase_blog-related_blog_posts_block" was not found
     [warning] The "field_block:node:varbase_blog:field_media" was not found
     [warning] The "field_block:node:varbase_blog:body" was not found
     [warning] The "field_block:node:varbase_blog:field_tags" was not found
     [warning] The "views_block:varbase_blog-related_blog_posts_block" was not found
     [warning] The "field_block:node:varbase_blog:field_media" was not found
     [warning] The "field_block:node:varbase_blog:body" was not found
     [warning] The "views_block:varbase_blog-most_recent_blog_posts_block" was not found
     [warning] The "views_block:varbase_blog-most_popular_blog_posts_block" was not found
     [warning] The "field_block:node:varbase_blog:field_tags" was not found
     [warning] The "views_block:varbase_blog-related_blog_posts_block" was not found
     [notice] Performed install task: varbase_assemble_extra_components
     [notice] Performed install task: varbase_development_tools
     [notice] Performed install task: varbase_assemble_development_tools
     [notice] Performed install task: install_finished
     [success] Installation complete.  User name: admin  User password: c5hNh8WPqN
    > drush uli
    Xdebug: [Log Files] File '/tmp/xdebug.log' could not be opened.
    https://varbase.lndo.site/user/reset/1/1686762886/lThjNr0YpN_fEkCRDm3sI2nnK9fBhPWTp_PKtMW3hJw/login
    
  • πŸ‡ΊπŸ‡ΈUnited States Jon Pugh Newburgh, NY
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

    Webform 6.1.5 was released on: 12 Jun 2023 by: jrockowitz β†’
    https://www.drupal.org/project/webform/releases/6.1.5 β†’

    Thanks, Jacob

    Many submissions fixes

    Thanks, Jon, for reporting.
    let us report that to the Webform module too

    By the way Varbase has the Varbase Webform module
    Which Varbase enable it by default in the default.components.varbase.bit.yml

  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

    Which PHP version you are building and testing with?

    Webform has issues with PHP 8.2 on the 6.1.x branch
    They had them fixed in the 6.2.x branch

  • Status changed to Fixed about 1 year ago
Production build 0.71.5 2024