ELGG.ERROR: Plugin settings cannot store arrays

Hi Everyone,

I am developing a plugin for elgg 3.3.1. 

In the setting page of the plugin, I have the following input field.

echo elgg_view_field([

'#type' => 'fieldset',

'legend' => elgg_echo('settings:pessek:categories'),

'fields' => [

[

'#type' => 'tags',

'#help' => elgg_echo('settings:pessek:categories:help'),

'name' => 'params[pessek_categories]',

'value' => $entity->pessek_categories,

],

],

]);
 
When I save plugin settings, I have the following error:
 
ELGG.ERROR: Plugin settings cannot store arrays
 
Could someone help me with this issue ?
 
Regards,
 
 
 
 
 
Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking