e-israel
e-israel

Reputation: 646

reset() expects parameter 1 to be array, integer given in Gii after update Yii version

After updating Yii to 1.1.20 I get the error reset() expects parameter 1 to be array, integer given when clicking the diff option in Model generator.

I found the function in https://github.com/yiisoft/yii/blob/master/framework/gii/components/Pear/Text/Diff/Engine/native.php#L194 and https://github.com/yiisoft/yii/blob/master/framework/gii/components/Pear/Text/Diff/Engine/native.php#L206

So i cannot find the solution.

enter image description here

Upvotes: 3

Views: 1003

Answers (1)

Honsa Stunna
Honsa Stunna

Reputation: 595

You can work around this problem change the framework file (not recommended)

framework/gii/components/Pear/Text/Diff/Engine/native.php

On line 194 and 206 check if $match is an array and skip the code part which depends on that.

Upvotes: 1

Related Questions