[OzzModz] Post Comments

[OzzModz] Post Comments 2.0.2 Patch Level 3

No permission to download
I still think it would be ideal for specific. If nothing else it's a good way to trial it because it is surely very hard to, know whether it works without testing for at least a few weeks.
 
After upgrade of XF (to 2.3), I get server errors from this add on:

  • XF\CssRenderException: Error rendering template public:message.less: Operation on an invalid type in public:message.less (on or near line 1)
  • src/XF/CssRenderException.php:89
  • Generated by: Unknown account
  • Sep 4, 2024 at 1:31 PM

Stack trace​

1| // Note that this file should never output any CSS directly. It should contain variables and mixins only.
2 | // Output should go into core.less.
3 |
4 | // ################################ VARIABLES ###############################
------------

#0 src/XF/CssRenderer.php(435): XF\CssRenderException::createFromLessException(Object(Less_Exception_Compiler), 'public:message....', '// Note that th...')
#1 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:message....', '// Note that th...')
#2 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:message....', NULL)
#3 src/XF/CssRenderer.php(135): XF\CssRenderer->renderTemplates(Array, Array, Array)
#4 src/XF/CssWriter.php(60): XF\CssRenderer->render(Array)
#5 css.php(32): XF\CssWriter->run(Array, 1, 1, 'ecd69bb8a14798d...')
#6 {main}

-------------

Previous Less_Exception_Compiler: Operation on an invalid type in anonymous-file-1562.less - src/vendor/oyejorge/less.php/lib/Less/Tree/Mixin/Call.php:130
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(147): Less_Tree_Mixin_Call->compile(Object(Less_Environment))
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(90): Less_Tree_Ruleset->EvalMixinCalls(Object(Less_Tree_Ruleset), Object(Less_Environment), 2)
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(95): Less_Tree_Ruleset->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(95): Less_Tree_Ruleset->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(95): Less_Tree_Ruleset->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Parser.php(181): Less_Tree_Ruleset->compile(Object(Less_Environment))
#6 src/XF/CssRenderer.php(431): Less_Parser->getCss()
#7 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:message....', '// Note that th...')
#8 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:message....', NULL)
#9 src/XF/CssRenderer.php(135): XF\CssRenderer->renderTemplates(Array, Array, Array)
#10 src/XF/CssWriter.php(60): XF\CssRenderer->render(Array)
#11 css.php(32): XF\CssWriter->run(Array, 1, 1, 'ecd69bb8a14798d...')
#12 {main}

Request state​

array(4) {
["url"] => string(340) "/site/css.php?css=public%3Aattachments.less%2Cpublic%3Abb_code.less%2Cpublic%3Aeditor.less%2Cpublic%3Alightbox.less%2Cpublic%3Amessage.less%2Cpublic%3Anotices.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Asiropu_chat.less%2Cpublic%3Astructured_list.less%2Cpublic%3Aextra.less&s=1&l=1&d=1725449493&k=ecd69bb8a14798d1b476a5d9f70d28d59903e3ac"
["referrer"] => string(67) "https://www.onyourmind.be/site/threads/song-title-alphabet.3/page-8"
["_GET"] => array(5) {
["css"] => string(220) "public:attachments.less,public:bb_code.less,public:editor.less,public:lightbox.less,public:message.less,public:notices.less,public:share_controls.less,public:siropu_chat.less,public:structured_list.less,public:extra.less"
["s"] => string(1) "1"
["l"] => string(1) "1"
["d"] => string(10) "1725449493"
["k"] => string(40) "ecd69bb8a14798d1b476a5d9f70d28d59903e3ac"
}
["_POST"] => array(0) {
}
}

For now, I disabled it.
 
After upgrade of XF (to 2.3), I get server errors from this add on:

  • XF\CssRenderException: Error rendering template public:message.less: Operation on an invalid type in public:message.less (on or near line 1)
  • src/XF/CssRenderException.php:89
  • Generated by: Unknown account
  • Sep 4, 2024 at 1:31 PM

Stack trace​

1| // Note that this file should never output any CSS directly. It should contain variables and mixins only.
2 | // Output should go into core.less.
3 |
4 | // ################################ VARIABLES ###############################
------------

#0 src/XF/CssRenderer.php(435): XF\CssRenderException::createFromLessException(Object(Less_Exception_Compiler), 'public:message....', '// Note that th...')
#1 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:message....', '// Note that th...')
#2 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:message....', NULL)
#3 src/XF/CssRenderer.php(135): XF\CssRenderer->renderTemplates(Array, Array, Array)
#4 src/XF/CssWriter.php(60): XF\CssRenderer->render(Array)
#5 css.php(32): XF\CssWriter->run(Array, 1, 1, 'ecd69bb8a14798d...')
#6 {main}

-------------

Previous Less_Exception_Compiler: Operation on an invalid type in anonymous-file-1562.less - src/vendor/oyejorge/less.php/lib/Less/Tree/Mixin/Call.php:130
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(147): Less_Tree_Mixin_Call->compile(Object(Less_Environment))
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(90): Less_Tree_Ruleset->EvalMixinCalls(Object(Less_Tree_Ruleset), Object(Less_Environment), 2)
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(95): Less_Tree_Ruleset->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(95): Less_Tree_Ruleset->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(95): Less_Tree_Ruleset->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Parser.php(181): Less_Tree_Ruleset->compile(Object(Less_Environment))
#6 src/XF/CssRenderer.php(431): Less_Parser->getCss()
#7 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:message....', '// Note that th...')
#8 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:message....', NULL)
#9 src/XF/CssRenderer.php(135): XF\CssRenderer->renderTemplates(Array, Array, Array)
#10 src/XF/CssWriter.php(60): XF\CssRenderer->render(Array)
#11 css.php(32): XF\CssWriter->run(Array, 1, 1, 'ecd69bb8a14798d...')
#12 {main}

Request state​

array(4) {
["url"] => string(340) "/site/css.php?css=public%3Aattachments.less%2Cpublic%3Abb_code.less%2Cpublic%3Aeditor.less%2Cpublic%3Alightbox.less%2Cpublic%3Amessage.less%2Cpublic%3Anotices.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Asiropu_chat.less%2Cpublic%3Astructured_list.less%2Cpublic%3Aextra.less&s=1&l=1&d=1725449493&k=ecd69bb8a14798d1b476a5d9f70d28d59903e3ac"
["referrer"] => string(67) "https://www.onyourmind.be/site/threads/song-title-alphabet.3/page-8"
["_GET"] => array(5) {
["css"] => string(220) "public:attachments.less,public:bb_code.less,public:editor.less,public:lightbox.less,public:message.less,public:notices.less,public:share_controls.less,public:siropu_chat.less,public:structured_list.less,public:extra.less"
["s"] => string(1) "1"
["l"] => string(1) "1"
["d"] => string(10) "1725449493"
["k"] => string(40) "ecd69bb8a14798d1b476a5d9f70d28d59903e3ac"
}
["_POST"] => array(0) {
}
}

For now, I disabled it.
See the resource overview, it isn't updated for 2.3
 
See the resource overview, it isn't updated for 2.3
Ah, I missed that.

For me, it doesn't really matter anymore I guess, as I'll be closing down my forum instead of renewing licenses for another year (just keeping it for 2 more months), but since I know of no other functional comments plugin (there is a paying one that I never even got a reply about when asking for info), I hope that someone will pick this up and update it for 2.3 (and above).
 
Ah, I missed that.

For me, it doesn't really matter anymore I guess, as I'll be closing down my forum instead of renewing licenses for another year (just keeping it for 2 more months), but since I know of no other functional comments plugin (there is a paying one that I never even got a reply about when asking for info), I hope that someone will pick this up and update it for 2.3 (and above).
Another alternative.
 
I'd like to be able to enable comments but not replies, so that certain usergroups can only comment, but not reply normally to threads, only comment. At the moment it doesn't seem possible

Why are replies and comments tied together? I want some usergroups to be able to comment, but not reply... is this not possible?
 
I would recommend NOT trying to disable reply; doubt it is something you could do with permissions anyway. You want people to be able to reply or comment. A comment keeps all the info right there, under the original post, while a reply will post as the last thing in that thread. There's value in both. Been using this for years with 20,000+ comments and members love it.

"in my use case I want people to be able to reply or comment" is not the same use case for everyone

Example: authorized users post galleries, random users can only comment on those galleries instead of adding a whole reply inbetween gallery posts...
 
I'd avoid using this addon, even if it gets updated for the latest version, for one main reason: its high risk of breaking with future XenForo updates. When it does break, it breaks the entire forum structure. Worse, even after a fix, it won't restore the nested comment format exactly as it was. The idea itself is good, but if you regularly update XenForo or are on cloud, this addon isn't for you
 
Back
Top Bottom