- Comment Excerpt bug in Recent Comments Widget, in 6.9.3
- 6.9.3. Rest API not rendering inline tags
#1 Aug 16, 2017 11:03
The comment widget show "…" at the end of the shortened Comment. Obviously the link does not work. Instead of linking to the page where the comment is placed it links to (in my case) :
http://fokus.genba.org/skins/bricks_skin - this triggers a 403 Page (We discussed this phenomenon with a bug in anchor plugin (http://forums.b2evolution.net/anchors-how-to-handle-in-b2evolution) / not solved for 6.8.10 !)
In the headline of the comment the title of the page is linked correct.
Would be great to fix this.
#3 Aug 16, 2017 18:40
@saunders can you please send a screenshot showing more information from your page. I don't fully understand where are your getting this error exactly. Thank you.
#4 Aug 16, 2017 18:45
@saunders don't worry, I already found it.
#5 Aug 16, 2017 19:18
@saunders I confirm the issue. It's already in the devs pipeline and a fix should be delivered asap.
Thank you for reporting.
#6 Aug 23, 2017 02:58
@saunders a fix for this issue will be included in the next release.
If you would like to patch your site manually, before of the next release, you can apply the changes made here: https://github.com/b2evolution/b2evolution/commit/0929ded3d55ef5ef406fee4d8db8926bef86fa37
#7 Aug 23, 2017 15:41
@mgsolipa thank you for the changes, I updated the two files, but nevertheless the issue persists. (I cleared all caches [from Backup] cleared the browser cache, but get 403 error page by url
The "…" at
http://fokus.genba.org/datenschutz-fokus sidebar widget "new comments" continues linking to skin, not to the full comment.
After disabling the cache for the widget new comments the link works great! Thanks
#8 Aug 27, 2017 22:26
@mgsolipa the solution worked pretty fine in 6.8.10. But after upgrading to 6.9.3. there is a MySQL bug (I had to deactivate the plugin, because the error message is shown also to not logged in users) - see screenshot of message below:
[PS: You can rebuild the bug in your Demo installation. Just activate excerpts in Comments widget and you get the bug]
#9 Sep 11, 2017 07:49
For further readers, a fix for the error mentioned above has been shared here: http://forums.b2evolution.net/comment-excerpt-bug-in-recent-comments-widget-in#c109601
#10 Sep 11, 2017 08:35
@mgsolipa I fixed the code as suggested, but get this error message:
Parse error: syntax error, unexpected 'if' (T_IF) in /data/web/e65807/html/blogs/inc/comments/model/_comment.class.php on line 2625