- Affected version
- 2.0.1
If you are editing Setup.php, it is possible to completely confuse the StepRunnerUpgradeTrait
The error you get is:
Setting $stepParams to an empty array causes the process to be completely confused.
The error you get is:
Code:
[ErrorException]
[E_NOTICE] Undefined index: version_id
PHP:
foreach ($versions AS $i => $versionId)
{
if ($versionId >= $stepParams['version_id']) <--- this line.
{
$versionSteps = $stepsGrouped[$versionId];
if (isset($versionSteps[$runStep]))
{
....
}
// if we hit here, then the step couldn't be found, so move onto the next upgrade
$runStep = 1;
$stepParams = [];
}
}
Setting $stepParams to an empty array causes the process to be completely confused.