Error after install 10.0.0-rc2

Created on 5 May 2024, 11 months ago

Problem/Motivation

Drupal\sdc\Exception\InvalidComponentException: [container] Does not have a value in the enumeration ["","no-container","container","container-md","container-lg","container-xl","container-xxl","container-fluid"] in Drupal\sdc\Component\ComponentValidator->validateProps() (line 205 of core/modules/sdc/src/Component/ComponentValidator.php).

Steps to reproduce

Install full varbase extras.

Proposed resolution

varbase 10.0.0-rc2
php 8.2

🐛 Bug report
Status

Active

Version

10.0

Component

Code

Created by

🇷🇺Russia vvs Russia

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

Comments & Activities

  • Issue created by @vvs
  • 🇯🇴Jordan Rajab Natshah Jordan

    Thanks, Vitaliy, for reporting!

    Have you faced any error while installing? or only after the install?
    Please, have a look at 🐛 Fix mismatched Varbase Components types with Drupal 10.2.5 Active

  • 🇷🇺Russia vvs Russia

    Hm...

    During install:
    1. Missing PHP YAML extension. I continued.
    2. Route "entity.path_alias.collection" does not exist.

    But error Does not have a value in the enumeration... only on Vartheme BS5 3.0.0-beta9, but not on admin theme.

    #3444384 does'nt suitable for me.

  • 🇯🇴Jordan Rajab Natshah Jordan

    Please, when you see this when installing for a new project
    Do not continue anyway.

    Install the PHP yaml extension first

    PHP YAML extension
    The PHP YAML extension is not enabled. It is recommended that you enable the PHP YAML extension for your server.

    Or the build and install may face issues of So Slow install or slow config import + plus some other not expected issues - like the one we faced in the last days.

    symfony/yaml v6.4.7 was released
    https://github.com/symfony/yaml/releases/tag/v6.4.7
    Serialization\YamlSymfony::decode()

    In Drupal Core

    https://git.drupalcode.org/project/drupal/-/blob/10.2.x/core/lib/Drupal/...
    The php8.3-yaml extension will do it .. But YamlSymfony or - pecl install yaml in Lando and PSH will NOT do it

  • 🇷🇺Russia vvs Russia

    !شكرًا لك

    I'm use docksal. And i'll try to install php yaml extension.to

  • 🇷🇺Russia vvs Russia

    Rajab, I try reinstall site with php-yaml ext installed and enabled (https://i.imgur.com/ljmAegQ.jpeg). But I have this error again on front page:

    Drupal\sdc\Exception\InvalidComponentException: [container] Does not have a value in the enumeration ["","no-container","container","container-md","container-lg","container-xl","container-xxl","container-fluid"] in Drupal\sdc\Component\ComponentValidator->validateProps() (line 205 of core/modules/sdc/src/Component/ComponentValidator.php).

  • Status changed to Closed: duplicate 11 months ago
  • 🇷🇺Russia vvs Russia

    Wow! I do it!

    On #8 I add

    [php]
    extension=yaml.so
    

    And have warnings in drush:
    PHP Warning: Module "yaml" is already loaded in Unknown on line 0

    But, after delete this. I reinstall varbase site. And all is Ok!

  • Status changed to Active 11 months ago
  • 🇷🇺Russia vvs Russia

    No... After clear cache error is appear.

    And reinstalling the site does not help.

  • 🇷🇺Russia vvs Russia

    I try to install php yaml with this solution: https://github.com/docksal/docksal/issues/1826
    And after install varbase. Installation is ok - no errors.

    But have error:

    The website encountered an unexpected error. Try again later.
    
    Drupal\sdc\Exception\InvalidComponentException: [container] Does not have a value in the enumeration ["","no-container","container","container-md","container-lg","container-xl","container-xxl","container-fluid"] in Drupal\sdc\Component\ComponentValidator->validateProps() (line 205 of core/modules/sdc/src/Component/ComponentValidator.php).

    What are these SDC containers?

  • Status changed to Closed: won't fix 10 months ago
  • 🇯🇴Jordan Rajab Natshah Jordan

    Decided not to support docksal
    Fixed for Lando and DDEV
    Please, check Installing Varbase

    Closing as wan't fix, feel free to re-open

  • 🇯🇴Jordan Rajab Natshah Jordan

    📌 Fix Malformed inline YAML string in used yml files Fixed

    ✅ Released varbase_components-2.0.0-rc1

    ✅ Released vartheme_bs5-3.0.0-rc1

    You many need to apply the fixes to your custom theme.
    or if you had any error while installing, I recommend to re-install with DDEV or Lando

  • Status changed to Active 3 months ago
  • 🇷🇺Russia vvs Russia

    I continue to test varbase, but it does not work again for me.
    The same error is here.

    I'm started from begin.
    Installed Lando, Drupal recipe for it.

    lando start in project's dir.
    Everything is fine.

    Drupal Install.php

    I open the site and see:
    Drupal\Core\Render\Component\Exception\InvalidComponentException: [container] Does not have a value in the enumeration ["","no-container","container","container-md","container-lg","container-xl","container-xxl","container-fluid"] in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 203 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).

    lando drush cr
    grep -rnw '.' -E "container-md"

    Found:

    ./themes/contrib/vartheme_bs5/css/base/bootstrap.base.css:644:.container-md,
    ./themes/contrib/vartheme_bs5/css/base/bootstrap.base.css:662:  .container-md, .container-sm, .container {
    ./themes/contrib/vartheme_bs5/css/base/bootstrap.base.css:668:  .container-lg, .container-md, .container-sm, .container {
    ./themes/contrib/vartheme_bs5/css/base/bootstrap.base.css:674:  .container-xl, .container-lg, .container-md, .container-sm, .container {
    ./themes/contrib/vartheme_bs5/css/base/bootstrap.base.css:680:  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    ./themes/contrib/vartheme_bs5/css/base/bootstrap.base.css:5285:.navbar > .container-md,
    ./themes/contrib/vartheme_bs5/theme-settings.php:32:    'container-md' => t('Container Medium'),
    ./modules/contrib/varbase_components/components/organisms/navbar/navbar.component.yml:17:        - container-md
    ./modules/contrib/varbase_components/components/organisms/navbar/navbar.stories.json:14:        "'Container medium'": "container-md",
    ./modules/contrib/varbase_components/components/organisms/navbar/navbar.stories.json:80:        "container": "container-md",
    ./modules/contrib/varbase_components/components/organisms/navbar/navbar.stories.json:92:        "container": "container-md",
    

    I delete in ./modules/Contrib/varbase_components/components/organisms/navbar/navbar.component.yml this lines:

      container:
          type: string
          title: Container
          description: container type
          default: ''
          enum:
            - ''
            - no-container
            - container
            - container-md
            - container-lg
            - container-xl
            - container-xxl
            - container-fluid
    

    And I open the site without errors. I understand that this is not normal. And I reopen this issue.
    What am I doing wrong?

Production build 0.71.5 2024