You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example add following line at the end of your AppController::initialize()
debug($this->Crud->isActionMapped());
Bake any controller (confirm that you want to override controller if already exists)
Crash during bake:
[TypeError] Cake\Utility\Inflector::variable(): Argument #1 ($string) must be of type string, null given, called in /application/vendor/friendsofcake/crud/src/Controller/Component/CrudComponent.php on line 430 in /application/vendor/cakephp/cakephp/src/Utility/Inflector.php on line 511
The text was updated successfully, but these errors were encountered:
The default crud action is set in CrudComponent::initialize() which gets run after Controller::initialize(). While we could fix the exception calling isActionMapped() so early without an argument will never yield the correct result.
How to reproduce:
AppController::initialize()
The text was updated successfully, but these errors were encountered: