XF 2.1 Attempted to convert NULL to serialized array [example]

Robert9

Well-known member
May anyone has an idea how to fix that?

The field example in xf_thread is defined as text (IS NULL or nothing); both doesnt help.


The listener is like

$structure->columns['example'] = ['type' => Entity::SERIALIZED_ARRAY, ***];

*** i tried
'default' => 'b:0;'
'default' => NULL
'default' => ''
'default' => []

nothing helps
 
Solution

xf_thread.example without NULL, just nothing
$structure->columns['example'] = ['type' => Entity::SERIALIZED_ARRAY, 'default' => '' ];
 
BTW: Jeremy, when your events addon will come for xf2?
I have a big bag full with suggestions for it. :)
But i guess you are not this Jeremy.
 
Top Bottom