yiisoft/yii2 · error · InvalidConfigException

Invalid fixture namespace: "{$this->namespace}". Please, che

Error message

Invalid fixture namespace: "{$this->namespace}". Please, check your FixtureController::namespace parameter

What it means

Error "Invalid fixture namespace: "{$this->namespace}". Please, check your FixtureController::namespace parameter" thrown in yiisoft/yii2.

Source

Thrown at framework/console/controllers/FixtureController.php:548

            } else {
                $filtered['apply'][] = $fixture;
            }
        }

        return $filtered;
    }

    /**
     * Returns fixture path that determined on fixtures namespace.
     * @throws InvalidConfigException if fixture namespace is invalid
     * @return string fixture path
     */
    private function getFixturePath()
    {
        try {
            return Yii::getAlias('@' . str_replace('\\', '/', $this->namespace));
        } catch (InvalidParamException $e) {
            throw new InvalidConfigException('Invalid fixture namespace: "' . $this->namespace . '". Please, check your FixtureController::namespace parameter');
        }
    }
}

View on GitHub (pinned to 66f00d18a2)

When it happens

Trigger: Thrown at framework/console/controllers/FixtureController.php:548 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of yiisoft/yii2@66f00d18a2 (2026-08-17). Data as JSON: /api/errors/22ae4bd5c1b6b2b6. Report an issue: GitHub.