1.6.1

Fixes:

Features:

Updating
composer require fof/gamification:"*"
php flarum cache:clear
php flarum migrate
12 days later

1.6.2

  • fix(voters): style improvements on mobile
  • fix: add vertical gap between items on mobile
  • fix: respect seeVoters permission

Thanks for your efforts here @davwheat 🦸

Updating
composer require fof/gamification
php flarum cache:clear
9 days later

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