Closed strtob closed 2 years ago
In the composer.json file, change "kartik-v / yii2-grid": "dev-master" to "kartik-v / yii2-grid": "^ 3.1.6" and update composer
It seems that error disappear downgrading to 3.3.6, but now I get this new error:
Function name must be a string
in C:\wamp\www\unirep\vendor\kartik-v\yii2-builder\src\BaseForm.php
* @param string $id the input identifier.
* @param array $settings the attribute settings.
*
* @return string the form input markup.
* @throws InvalidConfigException
* @throws Exception
*/
protected function renderRawInput($attribute, &$id, $settings = [])
{
$notBs3 = !$this->isBs(3)();
$type = ArrayHelper::getValue($settings, 'type', self::INPUT_TEXT);
$i = strpos($attribute, ']');
$attribName = $i > 0 ? substr($attribute, $i + 1) : $attribute;
if (!in_array($type, static::$_validInputs)) {
throw new InvalidConfigException(
"Invalid input type '{$type}' configured for the attribute '{$attribName}'.'"
);
}
$value = ArrayHelper::getValue($settings, 'value');
This is maybe not an issue with yii2-grid extension but how you are configuring the yii2-builder extension (TabularForm - as seen in the error stack). You may need to check the configuration of the widget and the attributes/columns (where somewhere you are not passing an array
as expected).
True Kartik, I have downgraded yii2-builder to 1.6.7 and now it's running fine.
Thanks!
"kartik-v / yii2-grid": "dev-master" to "kartik-v / yii2-grid": "^ 3.1.6"
don't fix the problem. It seems that the grid component can't manage the serialcolumn option of TabularForm - maybe now a parameter has to be an array in the current dev version of grid
Thanks for the report. This has been fixed.
much appreciate, thanks Kartik!
Hi,
I've updated to the latest 3.3.6.
Unfortunately, I have now a problem to open my forms in modal:
Any ideas?