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.

      10 days later
      9 days later

      Hi, I have a a error with the extension, when I activate the extension the list of all discussions appears blank with the following message: "It looks as though there are no discussions here". Also the following error message: "Oops! Something went wrong. Please reload the page and try again". When reloading the page it is completely blank.

      Looking at the error log, the following appears:

      [2023-11-22 13:34:03] flarum.ERROR: BadMethodCallException: Method Illuminate\Support\Collection::loadSum does not exist. in /home/account/domains/myforum.com/public_html/am2023/vendor/illuminate/macroable/Traits/Macroable.php:113
      Stack trace:
      #0 /home/account/domains/myforum.com/public_html/am2023/vendor/fof/gamification/src/LoadActorVoteRelationship.php(49): Illuminate\Support\Collection->__call()
      #1 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(121): FoF\Gamification\LoadActorVoteRelationship::sumRelation()
      #2 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle()
      #3 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
      #4 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ExecuteRoute->process()
      #5 /home/account/domains/myforum.com/public_html/am2023/vendor/fof/reactions/src/Middleware/BindRequestToContainer.php(35): Laminas\Stratigility\Next->handle()
      #6 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): FoF\Reactions\Middleware\BindRequestToContainer->process()
      #7 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
      #8 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\ThrottleApi->process()
      #9 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle()
      #10 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ResolveRoute->process()
      #11 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
      #12 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\SetLocale->process()
      #13 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
      #14 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\HandleErrors->process()
      #15 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
      #16 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(64): Laminas\Stratigility\MiddlewarePipe->process()
      #17 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Api/Client.php(141): Laminas\Stratigility\MiddlewarePipe->handle()
      #18 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Api/Client.php(91): Flarum\Api\Client->send()
      #19 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Forum/Content/Index.php(108): Flarum\Api\Client->get()
      #20 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Forum/Content/Index.php(85): Flarum\Forum\Content\Index->getApiDocument()
      #21 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Frontend/Frontend.php(62): Flarum\Forum\Content\Index->__invoke()
      #22 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Frontend/Frontend.php(54): Flarum\Frontend\Frontend->populate()
      #23 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Frontend/Controller.php(32): Flarum\Frontend\Frontend->document()
      #24 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Frontend\Controller->handle()
      #25 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
      #26 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ExecuteRoute->process()
      #27 /home/account/domains/myforum.com/public_html/am2023/vendor/fof/secure-https/src/Middlewares/ContentSecurityPolicyMiddleware.php(32): Laminas\Stratigility\Next->handle()
      #28 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): FoF\SecureHttps\Middlewares\ContentSecurityPolicyMiddleware->process()
      #29 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/ContentTypeOptionsHeader.php(21): Laminas\Stratigility\Next->handle()
      #30 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ContentTypeOptionsHeader->process()
      #31 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/ReferrerPolicyHeader.php(30): Laminas\Stratigility\Next->handle()
      #32 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ReferrerPolicyHeader->process()
      #33 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/FlarumPromotionHeader.php(30): Laminas\Stratigility\Next->handle()
      #34 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\FlarumPromotionHeader->process()
      #35 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(57): Laminas\Stratigility\Next->handle()
      #36 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ShareErrorsFromSession->process()
      #37 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle()
      #38 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\CheckCsrfToken->process()
      #39 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle()
      #40 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ResolveRoute->process()
      #41 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
      #42 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\SetLocale->process()
      #43 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
      #44 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithSession->process()
      #45 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
      #46 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\RememberFromCookie->process()
      #47 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
      #48 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\StartSession->process()
      #49 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle()
      #50 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\CollectGarbage->process()
      #51 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
      #52 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ParseJsonBody->process()
      #53 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
      #54 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\HandleErrors->process()
      #55 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
      #56 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\InjectActorReference->process()
      #57 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
      #58 /home/account/domains/myforum.com/public_html/am2023/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
      #59 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\RequestHandler->process()
      #60 /home/account/domains/myforum.com/public_html/am2023/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
      #61 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePathRouter->process()
      #62 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
      #63 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Laminas\Stratigility\Middleware\OriginalMessages->process()
      #64 /home/account/domains/myforum.com/public_html/am2023/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
      #65 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePath->process()
      #66 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
      #67 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ProcessIp->process()
      #68 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
      #69 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(64): Laminas\Stratigility\MiddlewarePipe->process()
      #70 /home/account/domains/myforum.com/public_html/am2023/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
      #71 /home/account/domains/myforum.com/public_html/am2023/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
      #72 /home/account/domains/myforum.com/public_html/am2023/public/index.php(26): Flarum\Http\Server->listen()
      #73 {main}  

      But if I enter from a tag if the discussions within that tag appear, the error only happens with the list of all discussions (/all).

      This is the information of my installation:

      Flarum core: 1.8.3
      PHP version: 7.4.33
      MySQL version: 10.6.15-MariaDB-log
      Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, intl, json, mbstring, session, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, bz2, posix, Reflection, mysqli, SimpleXML, soap, sockets, sodium, exif, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, Phar, gmp, redis, imagick, imap, xmlrpc, ionCube Loader, Zend OPcache
      +------------------------------------------+------------+--------+
      | Flarum Extensions                        |            |        |
      +------------------------------------------+------------+--------+
      | ID                                       | Version    | Commit |
      +------------------------------------------+------------+--------+
      | flarum-markdown                          | v1.8.0     |        |
      | flarum-flags                             | v1.8.0     |        |
      | flarum-tags                              | v1.8.0     |        |
      | askvortsov-rich-text                     | v2.1.7     |        |
      | flarum-sticky                            | v1.8.0     |        |
      | flarum-lock                              | v1.8.0     |        |
      | fof-formatting                           | 1.0.3      |        |
      | flarum-suspend                           | v1.8.1     |        |
      | flarum-approval                          | v1.8.1     |        |
      | flarum-mentions                          | v1.8.2     |        |
      | v17development-blog                      | v0.7.7     |        |
      | v17development-user-badges               | v1.1.0     |        |
      | the-turk-flamoji                         | 1.0.4      |        |
      | sycho-lite-youtube                       | v0.1.1     |        |
      | nearata-related-discussions              | 1.3.0      |        |
      | nearata-monaco-editor                    | 1.0.0      |        |
      | nearata-cakeday                          | v2.1.0     |        |
      | justoverclock-purify                     | 0.1.7      |        |
      | justoverclock-hot-discussions-cards      | 0.1.6      |        |
      | justoverclock-hashtag                    | 1.0.1      |        |
      | ianm-log-viewer                          | 0.1.1      |        |
      | ianm-html-head                           | 1.2.3      |        |
      | fof-user-directory                       | 1.3.3      |        |
      | fof-upload                               | 1.2.3      |        |
      | fof-share-social                         | 1.1.3      |        |
      | fof-secure-https                         | 1.1.3      |        |
      | fof-reactions                            | 1.3.2      |        |
      | fof-polls                                | 2.1.2      |        |
      | fof-nightmode                            | 1.5.3      |        |
      | fof-links                                | 1.2.1      |        |
      | fof-linguist                             | 1.1.2      |        |
      | fof-gamification                         | 1.6.3      |        |
      | fof-drafts                               | 1.2.10     |        |
      | flarum-subscriptions                     | v1.8.0     |        |
      | flarum-statistics                        | v1.8.0     |        |
      | flarum-lang-spanish                      | 1.8.0      |        |
      | flarum-lang-english                      | v1.8.0     |        |
      | flarum-bbcode                            | v1.8.0     |        |
      | davwheat-ads                             | 1.2.0      |        |
      | datlechin-link-preview                   | v1.4.0     |        |
      | datlechin-copy-links                     | v0.1.1     |        |
      | clarkwinkelmann-selective-mediaembed     | 1.0.1      |        |
      | clarkwinkelmann-prominent-post-numbers   | 1.0.0      |        |
      | clarkwinkelmann-mass-actions             | 1.1.2      |        |
      | clarkwinkelmann-discussion-open-position | 1.1.0      |        |
      | blomstra-database-queue                  | 0.1-beta.2 |        |
      | acpl-mobile-tab                          | 1.4.1      |        |
      +------------------------------------------+------------+--------+
      Base URL: https://myforum.com/am2023/public
      Installation path: /home/account/domains/myforum.com/public_html/am2023
      Queue driver: database
      Session driver: file
      Scheduler status: Inactivo
      Mail driver: log
      Debug mode: off
        19 days later

        1.6.5 1.6.6

        Should resolve the issues experienced by AruMoon JoZ3

        Updating
        composer update fof/gamification
        php flarum cache:clear

        I got another issue, installed gamification extension using v1.8.3 (php 8.1.24), it was installed in domain.com/forums, uploaded 3 images in admin panel for '1st place image', '2nd place image', and '3rd place image', all the images come out blank, inspected it, the path of the iamges I uploaded is 'domain.com/assets', while it should be 'domain.com/forums/assets', I also updated to 1.6.6, anyone? Thanks.

        • IanM replied to this.

          Mikenthuzi that sounds like a simple oversight where the uploaded files don't build the url correctly, although that part of the code has not been updated for some time 🤔

          I'll take a look and get back to you

            1.6.7

            Fixes

            • Uploading rank place images in settings failed to display the resulting upload on subfolder installations
            • Impossible to upload rank images when the flarum-assets disk is relocated to another driver (ie S3)
            • Uploaded rank images were not displayed on the rank page
            • Uploaded image aspect ratio was not respected

            in FriendsOfFlarum/gamification117

            Updating
            composer update fof/gamification
            php flarum cache:clear

            Mikenthuzi this should address your issue, and potentially some other issues you may have found going forward as well. Let me know if you have any further problems 🙂

              19 days later

              Hi, I have an issue that doesn't appear on a local machine. The amount of upvotes is always zero in a discussion list but correct inside discussions. If I return back clicking on the parent tag it shows upvotes correctly but after the page reloaded returns to zero.
              https://imgur.com/a/vFsO7x1

                6 months later
                21 days later

                dorianleven Hi, I have an issue that doesn't appear on a local machine. The amount of upvotes is always zero in a discussion list but correct inside discussions. If I return back clicking on the parent tag it shows upvotes correctly but after the page reloaded returns to zero.
                https://imgur.com/a/vFsO7x1

                I have the same issue on a live, fresh install of Flarum. Upvotes don't show on the list (user logged in and logged out) and ordering by upvotes doesn't work. I can only see the number of upvotes on each individual discussion.

                Is this extension also incompatible with current Flarum version?

                hi @IanM would you be able to confirm if this extension is no longer maintained please? I can't find a way to show the votes on the main list of discussions only by going to an individual discussion.