Problem/Motivation

Starting the name of a bundle with a number (eg. 2-Column Reversed) displays an error message and breaks your site. You won't be able to flush cache, view Entity Types, run updates, etc. Error message displayed is

DomainException: Variable name "2_column_reversed_type" cannot start with a digit in route pattern "/admin/structure/eck/2_column_reversed/bundles/{2_column_reversed_type}". Please use a different name. in Symfony\Component\Routing\RouteCompiler::compilePattern() (line 143 of vendor\symfony\routing\RouteCompiler.php).

The entity bundle is not displayed in the Bundle list. How can I fix this and get to clear all cache, run updates, etc?

Steps to reproduce

Install ECK module
Create an Entity Type
Create a Bundle starting with a number (eg. 2-Column Reversed)

Proposed resolution

Create an error message and stop a user from creating a bundle that starts with a number

Issue fork eck-3424891

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mrjavarava created an issue. See original summary.

mrjavarava’s picture

Issue summary: View changes

dieterholvoet made their first commit to this issue’s fork.

  • dieterholvoet committed ae37ca69 on 2.x
    Issue #3424891 by mrjavarava, dieterholvoet: Bundle name starting with a...
dieterholvoet’s picture

Status: Active » Fixed

Thanks for reporting!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

dieterholvoet’s picture

Status: Fixed » Closed (fixed)