Support Forum

Topic Status plugin

EM ERIC MALALEL
ERIC MALALEL
Member

I have installed and activated the Topic Statuts plugin. I create a Status “support” with values “ouvert”, “en cours” et “fermé”.

The plugin does not appear on the forum.

When I go back to the plugin admin panel, there is an error message:

Warning: unserialize() expects parameter 1 to be string, array given inC:KPWordPressWP01wp-contentsp-resourcesforum-pluginstopic-statusadminspa-components-topicstatus-form.php on line 42

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

My apologies but that is a known bug that is fixed in the next update.

If you want to correct the code then you could go to the file and line number identified in the error message. It will currently look like:

$set = unserialize($sfcomps['topic-status'][$x]['meta_value']);

and it needs to simply be:

$set = $sfcomps['topic-status'][$x]['meta_value'];

Once again – apologies for the bug.

EM ERIC MALALEL
ERIC MALALEL
Member

I updated the code and it works fine. thanks. no problem for the bug, we also work in the software industry, so…

YS Yellow Swordfish
Yellow Swordfish
Member

Thanks! Sadly many people think it should be flawless. And we know there is no such thing!