Hi @juurec,
You can find and disable the wpDiscuz cache option in the Dashboard > wpDiscuz > Settings > General Settings tab. You’ll just need to uncheck the “Enable Cache” option.
Thread Starter
juurec
(@juurec)
Fatal error: Uncaught Error: unserialize(): Argument #1 ($data) must be of type string, array given
in /home/users/wp1/site/wp-content/plugins/wpdiscuz/themes/default/class.WpdiscuzWalker.php on line 302
Стек вызовов:
unserialize()
wp-content/plugins/wpdiscuz/themes/default/class.WpdiscuzWalker.php:302
WpdiscuzWalker::start_el()
wp-includes/class-wp-walker.php:144
Walker::display_element()
wp-includes/class-walker-comment.php:139
Walker_Comment::display_element()
wp-includes/class-wp-walker.php:387
Walker::paged_walk()
wp-includes/comment-template.php:2250
wp_list_comments()
wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php:784
WpdiscuzCore::getWPComments()
wp-content/plugins/wpdiscuz/themes/default/comment-form.php:437
require()
wp-includes/comment-template.php:1554
comments_template()
wp-content/themes/czd/single.php:167
include()
wp-includes/template-loader.php:106
require_once()
wp-blog-header.php:19
require()
index.php:17
Thank you for letting us know. The issue will be fixed in the next version.
As a temporary solution, please open the wpdiscuz/themes/default/class.WpdiscuzWalker.php file, find the line 302 and replace the following code:
$voteCount = isset($commentMetas[self::META_KEY_VOTES_SEPARATE]) ? unserialize($commentMetas[self::META_KEY_VOTES_SEPARATE][0]) : ["like" => 0, "dislike" => 0];
with this one:
$voteCount = isset($commentMetas[self::META_KEY_VOTES_SEPARATE]) ? maybe_unserialize($commentMetas[self::META_KEY_VOTES_SEPARATE][0]) : ["like" => 0, "dislike" => 0];
Please see the screenshot below.

Thread Starter
juurec
(@juurec)
The error is solved! Thank you for the prompt decision!!!
Hi all,
@gvectorssupport Thanks for your prompt reply and quick action.
@juurec Docket Cache will unserialize any serialized data, and store it as an array string. Changing from unserialize to maybe_unserlize function is a correct fix for it.
I’m marking this thread as resolved. Feel free to open a new topic if you have further questions.
Thanks.