Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22206

detect bad siteaccess group configuration in ezpublish.yml

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 2013.09
    • Install
    • None
    • based on latest version of ezpublish-community (master).

    Description

      i got this configuration in my ezpublish.yml

      ezpublish:
          siteaccess:
              default_siteaccess: trainer
              list:
                  - trainer
                  - training
                  - eng
                  - backoffice
              groups:
                  ezdemo_site_clean_group:
                      - trainer
                      - training
                      - eng
                      - backoffice
                  frontoffice:
                      - trainer
                      - training
              match:
                  URIElement: '1'
          system:
              ezdemo_site_group:
                  database:
                      type: mysql
                      user: root
                      password: root
                      server: localhost
                      database_name: e-learning_sauv
                  languages:
                      - eng-GB
                  var_dir: var/ezdemo_site
      

      I defined a group named ezdemo_site_clean_group but i defined my database information for a group named ezdemo_site_group

      With this config, i got this error when loading homepage :

      The value '' that you were trying to assign to parameter 'dbParams' is invalid. Allowed values are: string or array.

      This error is raised when trying to resolve the urlalias (in vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Routing/Generator/UrlAliasGenerator.php l161, function getPathPrefixByRootLocationId())

      Is it possible to catch the mispelling group when compiling yml files or at a high level and raise an error that will tell everybody something more verbose

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            Florent.Huck-obsolete@ez.no Florent Huck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: