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
After upgrading from October 3.2 to 3.3 and migrating our Plugin Settings from implementing the \System\Behaviors\SettingsModel::class to extend the SettingModel the page can't be opened anymore and throws the following error:
array_merge(): Argument #1 must be of type array, null given
in ~/vendor/october/rain/src/Database/ExpandoModel.php line 44
$this->attributes = array_merge($this->{$this->expandoColumn}, $this->attributes);
I guess this is happening because of our custom setting only has one relation field ($belongsToMany) and no other fields defined. I don't really know for what this ExpandoModel is for but I guess the following check in the expandoAfterFetch() function should fix the issue:
public function expandoAfterFetch()
{
if ($this->{$this->expandoColumn}) {
$this->attributes = array_merge($this->{$this->expandoColumn}, $this->attributes);
}
$this->syncOriginal();
}
The text was updated successfully, but these errors were encountered:
Hi,
After upgrading from October 3.2 to 3.3 and migrating our Plugin Settings from implementing the
\System\Behaviors\SettingsModel::class
to extend theSettingModel
the page can't be opened anymore and throws the following error:I guess this is happening because of our custom setting only has one relation field (
$belongsToMany
) and no other fields defined. I don't really know for what thisExpandoModel
is for but I guess the following check in theexpandoAfterFetch()
function should fix the issue:The text was updated successfully, but these errors were encountered: