Now, the leaderboard page can be displayed, but the following error is reported when you click "Agree" or "Step" in the article
"Agree" or "Step" means

Error: (I'm using php 8.1)

POST https://bbs.jerry.ink/api/posts/11

<br />
<b>Deprecated</b>:  json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in <b>/www/wwwroot/bbs.jerry.ink/vendor/fof/gamification/src/Jobs/AutoAssignUserGroups.php</b> on line <b>42</b><br />
<br />
<b>Fatal error</b>:  Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24
Stack trace:
#0 /www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent()
#1 /www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter-&gt;assertNoPreviousOutput()
#2 /www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(98): Laminas\HttpHandlerRunner\Emitter\SapiEmitter-&gt;emit()
#3 /www/wwwroot/bbs.jerry.ink/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner-&gt;run()
#4 /www/wwwroot/bbs.jerry.ink/public/index.php(26): Flarum\Http\Server-&gt;listen()
#5 {main}
  thrown in <b>/www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php</b> on line <b>24</b><br />

    Jerry_Best you should hide PHP Warnings and Deprecation messages in production. See display_errors in php.ini. This might be enough for the extension to work.

      clarkwinkelmann display_ errors has been set to on. I am in config.php, adjusting debug to true gets the above error message, but if I set debug to false, a bubble like this will appear in the lower left corner of the page

        clarkwinkelmann clarkwinkelmann storage/logs中没有最近的日志, php的日志中也没有关于flarum的日志, nginx的error.log中大多是类似

        2022/11/15 21:13:47 [crit] 10233#0: *12555 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 212.102.40.218, server: 0.0.0.0:443

        的日志, 其中的ip地址也没有与我相关的
        只有在config.php中将debug设置为true, 在红色告警气泡的右侧显示的“调试”中才可以得到以下错误日志

        POST https://bbs.jerry.ink/api/posts/11
        
        <br />
        <b>Deprecated</b>:  json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in <b>/www/wwwroot/bbs.jerry.ink/vendor/fof/gamification/src/Jobs/AutoAssignUserGroups.php</b> on line <b>42</b><br />
        <br />
        <b>Fatal error</b>:  Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24
        Stack trace:
        #0 /www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent()
        #1 /www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter-&gt;assertNoPreviousOutput()
        #2 /www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(98): Laminas\HttpHandlerRunner\Emitter\SapiEmitter-&gt;emit()
        #3 /www/wwwroot/bbs.jerry.ink/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner-&gt;run()
        #4 /www/wwwroot/bbs.jerry.ink/public/index.php(26): Flarum\Http\Server-&gt;listen()
        #5 {main}
          thrown in <b>/www/wwwroot/bbs.jerry.ink/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php</b> on line <b>24</b><br />

          Something that I think is missing is certain notifications so this gets more interactive - like used here in discuss for proposals:

          • Notification on upvotes on own discussions
          • Notification on upvotes on discussions followed

          Would help to keep track of the progress.

          Another idea I want to leave here:
          It might be interesting to have an action post when someone upvotes that aggregates all upvotes happening between a new real post has been made in the discussion. Would need to process downvotes of course as well.

          FriendsOfFlarum Note: This extension is meant as a replacement for the Flarum Likes extension. Therefore, they are not compatible and it's recommended to disable the Likes extension.

          We have to disable likes extension?? I see it active on this forum 🙂

          • IanM replied to this.

            Zeokat Good spot, that's old information that is no longer correct.

            This extension is compatible with flarum/likes

            I'll get the post updated!

            a month later
            4 months later

            I'm not really sure what's the issue here, screenshots from this: raygerx comment doesn't tell anything. Except that users can't like their own posts.

            • Can an admin vote on the mod's post?
            • Can an mod vote on the admin's post?
              4 months later
              a month later

              raygerx

              @FriendsOfFlarum

              I also got the error:

              Admins can vote for other posts, but all mod members cannot vote

              PIC:
              E

              Fix: I discovered my error in the /admin#/permissions section "singular box " was left blank

                14 days later

                raygerx I discovered my error in the /admin#/permissions section "singular box " was left blank

                Hi, I am migrating my forum from Vanilla OSS v3.3 in which I was using an extension called Yet Another Gamification Application (https://open.vanillaforums.com/addon/yaga-application) which would be like FoF Gamification, AutoModerator, FoF Reactions, User badges and Achievements in one package 🙂. I have been able to do what I can with the migration but there are some drawbacks because not all the extensions are compatible with each other as for example the case of "likes" and votes, which AutoModerator and Achievements do not support votes because it is made with "likes" in mind, then I came up with a small "alternative" I do not know if it works or is feasible, is it possible to use the votes and the "likes", the votes only for the first post and the "likes" for the others, but that the "likes" also add points automatically without using the conversion tool "I like"? This would work with AutoModerator and Achievements that work with the "likes".

                And well, if it does not work it would be a suggestion, it would be interesting that the creators of all these extensions work together for greater compatibility.

                Anyway thank you very much for the effort and time you have put in the creation of this extension.