Notifications
Clear all

wpForo 1.x.x [Solved] Spurious question marks in widget and in other texts

7 Posts
4 Users
2 Likes
870 Views
Posts: 124
Topic starter
(@cmw14)
Estimable Member
Joined: 7 years ago

Since performing the update the "recent posts" widget is now showing spurious question marks after emoji's (see attachment). This fault was not present before.

 

 

6 Replies
2 Replies
(@percysgrowroom)
Joined: 5 years ago

Noble Member
Posts: 1133
Posted by: @cmw14

Since performing the update the "recent posts" widget is now showing spurious question marks after emoji's (see attachment). This fault was not present before.

 

 

Im having the same problem 

 

VereK
(@verek)
Joined: 6 years ago

Honorable Member
Posts: 495
Posted by: @cmw14

Since performing the update the "recent posts" widget is now showing spurious question marks after emoji's (see attachment). This fault was not present before.

 

 

Looks like spaces are not being escaped?

Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @cmw14, @percysgrowroom and @verek

Could you please try to remove one line of code from /wp-content/plugins/wpforo/wpf-includes/functions.php file and see if the issue is fixed?

Please find this line and remove it:

$text = trim( str_replace("\xA0", ' ', $text ) );

Then delete all caches and test it again.

1 Reply
VereK
(@verek)
Joined: 6 years ago

Honorable Member
Posts: 495

@robert

That fixed it Robert

Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

This issue should be fixed with 1.6.4

Posts: 124
Topic starter
(@cmw14)
Estimable Member
Joined: 7 years ago
Posted by: @robert

Hi

Could you please try to remove one line of code from /wp-content/plugins/wpforo/wpf-includes/functions.php file and see if the issue is fixed?

Worked perfect for me too, thanks 👍