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
I was able to fix these two lines in at line 55 in vendor\cyberz\yii2-multipath-migrations\src\controllers\MigrationsController.php:`
foreach ($this->migrationLookup as $migrationPath) {
if(is_array($migrationPath) and count($migrationPath)==1) // NEW
$migrationPath = $migrationPath[0]; // NEW
$basePath = Yii::getAlias($migrationPath);
Regards
Joachim
The text was updated successfully, but these errors were encountered:
When running "yii migrate", I get this error:
Yii Migration Tool (based on Yii v2.0.14.2)
PHP Warning 'yii\base\ErrorException' with message 'strncmp() expects parameter 1 to be string, array given'
in C:\xampp\htdocs\test\yii2mod-app\vendor\yiisoft\yii2\BaseYii.php:133
Stack trace:
#0 C:\xampp\htdocs\test\yii2mod-app\vendor\cyberz\yii2-multipath-migrations\src\controllers\MigrationsController.php(57): yii\BaseYii::getAlias()
#1 C:\xampp\htdocs\test\yii2mod-app\vendor\cyberz\yii2-multipath-migrations\src\controllers\MigrationsController.php(28): cyberz\migrations\controllers\MigrationsController->lookupMigrations()
#2 C:\xampp\htdocs\test\yii2mod-app\vendor\yiisoft\yii2\console\controllers\BaseMigrateController.php(166): cyberz\migrations\controllers\MigrationsController->getNewMigrations()
...
I was able to fix these two lines in at line 55 in vendor\cyberz\yii2-multipath-migrations\src\controllers\MigrationsController.php:`
foreach ($this->migrationLookup as $migrationPath) {
if(is_array($migrationPath) and count($migrationPath)==1) // NEW
$migrationPath = $migrationPath[0]; // NEW
$basePath = Yii::getAlias($migrationPath);
Regards
Joachim
The text was updated successfully, but these errors were encountered: