[UW] Forum Comments System [Deleted]

xffutureuser updated [UW] Forum Comments System with a new update entry:

Version 1.8.1

🔹max load of comments per click - Added option to cap the number of comments loaded when you click on "View Previous comments...". With this option "View previous comments", you can set the number of comments loaded when "View Previous comments..."link is clicked. Setting it to 0 will load all comments.

🔸Comment Quote fix - Depending on the state of this button on the editor, the Comment Quote didn't work. So this should...

Read the rest of this update entry...
 
Found a bug.

When someone posts a new comment and then deletes it, the thread will still be displayed as "unread" by all other users. When they click into the thread, they'll get 404. This can be resolved only if someone undeletes the comment or someone posted a new reply/comment in the thread.

Admin is not affected as he still can see the deleted comment.
This was fixed as well in later version.
 
See these server errors in logs

Code:
[LIST]
[*]Error: Call to a member function getCookieIds() on null
[*] 
[*]src/addons/UW/FCS/Extend/Pub/Controller/InlineMod.php:123
[*]Generated by: Unknown account
[*] 
[*]Apr 20, 2020 at 22:40
[/LIST]
Stack trace
#0 src/XF/Mvc/Dispatcher.php(350): UW\FCS\Extend\Pub\Controller\InlineMod->actionShowActions(Object(XF\Mvc\ParameterBag))
#1 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'ShowActions', Object(XF\Mvc\RouteMatch), Object(UW\FCS\Extend\Pub\Controller\InlineMod), Object(XF\Mvc\Reply\Reroute))
#2 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(UW\FCS\Extend\Pub\Controller\InlineMod), Object(XF\Mvc\Reply\Reroute))
#3 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#5 src/XF.php(391): XF\App->run()
#6 index.php(20): XF::runApp('XF\\Pub\\App')
#7 {main}
Request state
array(4) {
["url"] => string(12) "/inline-mod/"
["referrer"] => string(28) "https://forums.macrumors.com"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
See these server errors in logs

Code:
[LIST]
[*]Error: Call to a member function getCookieIds() on null
[*]
[*]src/addons/UW/FCS/Extend/Pub/Controller/InlineMod.php:123
[*]Generated by: Unknown account
[*]
[*]Apr 20, 2020 at 22:40
[/LIST]
Stack trace
#0 src/XF/Mvc/Dispatcher.php(350): UW\FCS\Extend\Pub\Controller\InlineMod->actionShowActions(Object(XF\Mvc\ParameterBag))
#1 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'ShowActions', Object(XF\Mvc\RouteMatch), Object(UW\FCS\Extend\Pub\Controller\InlineMod), Object(XF\Mvc\Reply\Reroute))
#2 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(UW\FCS\Extend\Pub\Controller\InlineMod), Object(XF\Mvc\Reply\Reroute))
#3 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#5 src/XF.php(391): XF\App->run()
#6 index.php(20): XF::runApp('XF\\Pub\\App')
#7 {main}
Request state
array(4) {
["url"] => string(12) "/inline-mod/"
["referrer"] => string(28) "https://forums.macrumors.com"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
In the latest version necessary measures in the code were taken to prevent this problem. So just delete that error and install the latest version. That should fix it, let me know.
 
  • Like
Reactions: arn
xffutureuser updated [UW] Forum Comments System with a new update entry:

Version 1.8.2

🔹When you receive a reaction for a comment in the popup alert window, now the whole row (in the popup window), will become a clickable link to get you to the comment, just like it works for a reply.

🔹Some phrases added, such as "commented", "Post Comment" and alert text for the reactions in the alert popup window.

🔸When in a new thread, in the first reply, was posted a comment, then the comment was deleted (Remove from public view), the alert didn't work properly for the public and they...

Read the rest of this update entry...
 
When removing reactions from a user through the admin panel, are they removed from comments too (as they are removed from thread posts and profile posts)?

Suggestion reminder: Ability to change a regular reply to a comment through the moderation menu to simplify moderation. Deleting posts and asking members to repost them as comments isn't user friendly.
 
Code:
XF\Db\Exception: MySQL query error [1264]: Out of range value for column 'reaction_score' at row 1 src/XF/Db/AbstractStatement.php:228

Stack trace

UPDATE  `xf_uw_comment` SET `reaction_score` = ?, `reactions` = ?, `reaction_users` = ? WHERE `comment_id` = 69
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1264, '22003')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1264, '22003')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(326): XF\Db\AbstractAdapter->query('UPDATE  `xf_uw_...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1468): XF\Db\AbstractAdapter->update('xf_uw_comment', Array, '`comment_id` = ...')
#5 src/XF/Mvc/Entity/Entity.php(1195): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Reaction/AbstractHandler.php(107): XF\Mvc\Entity\Entity->save()
#7 src/XF/Repository/Reaction.php(274): XF\Reaction\AbstractHandler->updateContentReactions(Object(UW\FCS\Entity\Comment), Array, Array)
#8 src/XF/Entity/ReactionContent.php(198): XF\Repository\Reaction->rebuildContentReactionCache('post_comment', 69, false)
#9 src/XF/Entity/ReactionContent.php(140): XF\Entity\ReactionContent->rebuildContentReactionCache()
#10 src/XF/Mvc/Entity/Entity.php(1219): XF\Entity\ReactionContent->_postSave()
#11 src/XF/Repository/Reaction.php(189): XF\Mvc\Entity\Entity->save()
#12 src/XF/Repository/Reaction.php(142): XF\Repository\Reaction->insertReaction(7, 'post_comment', 69, Object(SV\WhoReplied\XF\Entity\User), true, false)
#13 src/XF/ControllerPlugin/Reaction.php(65): XF\Repository\Reaction->reactToContent(7, 'post_comment', 69, Object(SV\WhoReplied\XF\Entity\User), true)
#14 src/XF/ControllerPlugin/Reaction.php(19): XF\ControllerPlugin\Reaction->actionToggleReaction(Object(UW\FCS\Entity\Comment), 'comment/reactio...', 'comment')
#15 src/XF/ControllerPlugin/Reaction.php(12): XF\ControllerPlugin\Reaction->actionReact(Object(UW\FCS\Entity\Comment), 'comment', 'comment/react', 'comment/reactio...')
#16 src/addons/UW/FCS/Pub/Controller/Comment.php(350): XF\ControllerPlugin\Reaction->actionReactSimple(Object(UW\FCS\Entity\Comment), 'comment')
#17 src/XF/Mvc/Dispatcher.php(350): UW\FCS\Pub\Controller\Comment->actionReact(Object(XF\Mvc\ParameterBag))
#18 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('UW\\FCS:Comment', 'React', Object(XF\Mvc\RouteMatch), Object(UW\FCS\Pub\Controller\Comment), NULL)
#19 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(UW\FCS\Pub\Controller\Comment), NULL)
#20 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#21 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#22 src/XF.php(391): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}

Request state

array(4) {
  ["url"] => string(32) "/comments/69/react?reaction_id=7"
  ["referrer"] => string(59) "https://xxxxxxxx.com/threads/xxxxxx-xxxxxxx.2/"
  ["_GET"] => array(1) {
    ["reaction_id"] => string(1) "7"
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(37) "/threads/xxxxxx-xxxxxxx.2/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Code:
XF\Db\Exception: MySQL query error [1264]: Out of range value for column 'reaction_score' at row 1 src/XF/Db/AbstractStatement.php:228

Stack trace

UPDATE  `xf_uw_comment` SET `reaction_score` = ?, `reactions` = ?, `reaction_users` = ? WHERE `comment_id` = 69
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1264, '22003')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1264, '22003')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(326): XF\Db\AbstractAdapter->query('UPDATE  `xf_uw_...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1468): XF\Db\AbstractAdapter->update('xf_uw_comment', Array, '`comment_id` = ...')
#5 src/XF/Mvc/Entity/Entity.php(1195): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Reaction/AbstractHandler.php(107): XF\Mvc\Entity\Entity->save()
#7 src/XF/Repository/Reaction.php(274): XF\Reaction\AbstractHandler->updateContentReactions(Object(UW\FCS\Entity\Comment), Array, Array)
#8 src/XF/Entity/ReactionContent.php(198): XF\Repository\Reaction->rebuildContentReactionCache('post_comment', 69, false)
#9 src/XF/Entity/ReactionContent.php(140): XF\Entity\ReactionContent->rebuildContentReactionCache()
#10 src/XF/Mvc/Entity/Entity.php(1219): XF\Entity\ReactionContent->_postSave()
#11 src/XF/Repository/Reaction.php(189): XF\Mvc\Entity\Entity->save()
#12 src/XF/Repository/Reaction.php(142): XF\Repository\Reaction->insertReaction(7, 'post_comment', 69, Object(SV\WhoReplied\XF\Entity\User), true, false)
#13 src/XF/ControllerPlugin/Reaction.php(65): XF\Repository\Reaction->reactToContent(7, 'post_comment', 69, Object(SV\WhoReplied\XF\Entity\User), true)
#14 src/XF/ControllerPlugin/Reaction.php(19): XF\ControllerPlugin\Reaction->actionToggleReaction(Object(UW\FCS\Entity\Comment), 'comment/reactio...', 'comment')
#15 src/XF/ControllerPlugin/Reaction.php(12): XF\ControllerPlugin\Reaction->actionReact(Object(UW\FCS\Entity\Comment), 'comment', 'comment/react', 'comment/reactio...')
#16 src/addons/UW/FCS/Pub/Controller/Comment.php(350): XF\ControllerPlugin\Reaction->actionReactSimple(Object(UW\FCS\Entity\Comment), 'comment')
#17 src/XF/Mvc/Dispatcher.php(350): UW\FCS\Pub\Controller\Comment->actionReact(Object(XF\Mvc\ParameterBag))
#18 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('UW\\FCS:Comment', 'React', Object(XF\Mvc\RouteMatch), Object(UW\FCS\Pub\Controller\Comment), NULL)
#19 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(UW\FCS\Pub\Controller\Comment), NULL)
#20 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#21 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#22 src/XF.php(391): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}

Request state

array(4) {
  ["url"] => string(32) "/comments/69/react?reaction_id=7"
  ["referrer"] => string(59) "https://xxxxxxxx.com/threads/xxxxxx-xxxxxxx.2/"
  ["_GET"] => array(1) {
    ["reaction_id"] => string(1) "7"
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(37) "/threads/xxxxxx-xxxxxxx.2/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
I am not able to reproduce this. Can you please give me the steps to hit this?
 
Thanks for info. Just download the latest version, it is already fixed.

I am running 1.8.3. When upgrading, do I have to replace files? I can try re-installing the addon.

Edit: it says 1.8.10 in the admin panel.
Edit: Downloading 1.8.11. Thanks.
 
Last edited:
Fantastic add one! Love there is no extra cash grab with having to pay more for branding removal! Sold! I'll be buying all your add-ons! Keep up the good work.
 
When I merged two posts, one with a comment, the comment disappeared. The addon is lacking in the moderation area, from the inability to move a post to a comment, to what seems to be a lack of support for post merging.

My main concern is would the comment that disappeared cause issues down the line or was it just deleted? I'd hate to run into database errors in the future due to this.
 
When I merged two posts, one with a comment, the comment disappeared.
Please download the latest version. This is fixed there.
to move a post to a comment, to what seems to be a lack of support for post merging.
You probably mean converting a reply to a comment and moving it under another reply. That is definitely not "lack of support". That is something that no other comment add-on has, not even vB5 that comes standard with comments so they are the experts in it. It's a request never heard of before.

In our add-on, comment is a post and reply is a post. You can post a comment and you can post a reply.
 
Last edited:
I took the extra effort and created a FCS User Manual (something many add-on creators don't do because they say they have no time). I recommend to read it for everyone interested to buy this add-on:

 
Top Bottom