- Edited
Hello, I ran into an issue with this extension.
I made a Issue on both github & GitLab: https://gitlab.com/ReDevelopers/ReFlar/gamification/issues/23
@Kyrne
Hello, I ran into an issue with this extension.
I made a Issue on both github & GitLab: https://gitlab.com/ReDevelopers/ReFlar/gamification/issues/23
@Kyrne
Hi,
So iam facing a few issues with this extension, one of them is that im not able to change the expressions:
reflar-gamification.forum.ranking.rank
reflar-gamification.forum.ranking.name
reflar-gamification.forum.ranking.amount
This happens when i change the language of the community to portuguese.
jonnnie Gamification hasn't been translated to Portuguese.
You can try to use flagrow/linguist to provide translations, and contribute a translations file if you want.
English locale located at https://gitlab.com/ReDevelopers/ReFlar/gamification/blob/master/locale/en.yml
There is an issue now, when i try to edit a topic it crashes with this log:
200 OK
POST https-----/api/posts/21
<br />
<b>Notice</b>: Undefined index: isUpvoted in <b>/home/--/public_html/vendor/reflar/gamification/src/Listeners/SaveVotesToDatabase.php</b> on line <b>80</b><br />
<br />
<b>Notice</b>: Undefined index: isDownvoted in <b>---/public_html/vendor/reflar/gamification/src/Listeners/SaveVotesToDatabase.php</b> on line <b>84</b><br />
<br />
<b>Fatal error</b>: Uncaught RuntimeException: Unable to emit response; headers already sent in -------/public_html/vendor/zendframework/zend-diactoros/src/Response/SapiEmitterTrait.php:27
Stack trace:
#0 -/public_html/vendor/zendframework/zend-diactoros/src/Response/SapiEmitter.php(27): Zend\Diactoros\Response\SapiEmitter->assertNoPreviousOutput()
#1 -/vendor/zendframework/zend-diactoros/src/Server.php(162): Zend\Diactoros\Response\SapiEmitter->emit(Object(Flarum\Api\JsonApiResponse))
#2 -/vendor/flarum/core/src/Http/AbstractServer.php(36): Zend\Diactoros\Server->listen(Object(Zend\Stratigility\NoopFinalHandler))
#3 -l/api.php(16): Flarum\Http\AbstractServer->listen()
#4 {main}
thrown in <b>/-/public_html/vendor/zendframework/zend-diactoros/src/Response/SapiEmitterTrait.php</b> on line <b>27</b><br />
I have also noticed the undefined index errors. It hasn't affected the functioning of the extension that I'm aware of, but it just might not have come up yet.
Hi, thanks @tyrro and @datitisev i still have the issue when editing posts, admin or user.
What does the "Points Placeholder" setting correspond to? Is that used for when the user doesn't have any points? It's not very clear to me.
tjrgg its for showing total points u earned, (total likes) it shows up even if you have 0 hits.
Hi, still getting the issue, anyone can help?
I installed this extension, but it didn't appeared in administration > extensions tab. Do you know why?
brotherlt check in vendor folder if its there, try hard refresh shift+f5
Is it normal every time i edit a post the number of votes come back to zero?
PranavJadhav tried. Everything is in vendor folder.
Maybe the problem is that I'm not using SSH? I just transfer files from path, where Flarum was installed to FTP?
brotherlt go to root dir>var>www> check there maybe in public folder or in folder with site name
brotherlt this is not the right way to install extensions or Flarum itself. You should never manually upload Flarum or any extensions through FTP. The instructions in the OP stated that you use composer require relfar/gamification
via SSH, assuming you have installed Composer, the package manager for PHP and which brings in all your beloved extensions into your Flarum installation.