Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

wpForo 1.x.x [Solved] Topic icons are not updated after v1.60

6 Posts
2 Users
3 Reactions
2,513 Views
spider
Posts: 63
Topic starter
(@spider)
Estimable Member
Joined: 8 years ago

I'm seeing this bug only on Q/A forums. The topic icons don't change when solved. It's fine after I clear the topic cache. But I need to do it everytime. Now I'm using v1.6.1 and it's still the same. 


Topic Tags
5 Replies
3 Replies
Robert
Admin
(@robert)
Joined: 10 years ago

Support Team
Posts: 10600

Thank you for letting us know. We'll check this and fix in upcoming version.


spider
(@spider)
Joined: 8 years ago

Estimable Member
Posts: 63

I just want to remind you this issue. We're in v1.6.5 but It's still the same.


spider
(@spider)
Joined: 8 years ago

Estimable Member
Posts: 63

After v1.7.0 this problem still exist.


Robert
Posts: 10600
Admin
(@robert)
Support Team
Joined: 10 years ago

Hi @spider,

We just fixed this issue, it'll be available with next update. If you need it fix urgently you can edit this file:

/wp-content/plugins/wpforo/wpf-includes/wpf-hooks.php file.

Find this part of code:

if( FALSE !== WPF()->db->query( "UPDATE ".WPF()->tables->posts." SET is_answer = ".intval($_POST['answerstatus'])." WHERE postid = " . intval($postid) ) ){
wpforo_clean_cache('post', $postid, $post);
do_action('wpforo_answer', intval($_POST['answerstatus']), $post);
WPF()->notice->add('done', 'success');
$response['stat'] = 1;
$response['notice'] = WPF()->notice->get_notices();
}

Change it to this:

if( FALSE !== WPF()->db->query( "UPDATE ".WPF()->tables->posts." SET is_answer = ".intval($_POST['answerstatus'])." WHERE postid = " . intval($postid) ) ){
wpforo_clean_cache('post', $postid, $post);
do_action('wpforo_answer', intval($_POST['answerstatus']), $post);
WPF()->db->query( "UPDATE ".WPF()->tables->topics." SET `solved` = " . intval($_POST['answerstatus']) . " WHERE `topicid` = " . intval($post['topicid']) );
WPF()->notice->add('done', 'success');
$response['stat'] = 1;
$response['notice'] = WPF()->notice->get_notices();
}

 


1 Reply
spider
(@spider)
Joined: 8 years ago

Estimable Member
Posts: 63

@robert

Thank you very much. That line was what I need 🙂