Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recalculation of points fails when there is just one user. #841

Open
igorparrabastias opened this issue Sep 13, 2020 · 0 comments · May be fixed by #859
Open

Recalculation of points fails when there is just one user. #841

igorparrabastias opened this issue Sep 13, 2020 · 0 comments · May be fixed by #859
Labels
bug Confirmed bug
Milestone

Comments

@igorparrabastias
Copy link

The function involved needs 2 users at least: qa_db_users_recalc_points($firstuserid, $lastuserid)

PHP Fatal error:  Uncaught Q2A\\Database\\Exceptions\\SelectSpecException: The number of parameters and placeholders do not match in /home/nomikos/dev/aurora/qa-src/Database/DbQueryHelper.php:85\nStack trace:\n#0 /home/nomikos/dev/aurora/qa-src/Database/DbConnection.php(189): Q2A\\Database\\DbQueryHelper->expandParameters('UPDATE qa_userp...', Array)\n#1 /home/nomikos/dev/aurora/qa-include/qa-db.php(268): Q2A\\Database\\DbConnection->query('UPDATE qa_userp...', Array)\n#2 /home/nomikos/dev/aurora/qa-include/db/recalc.php(315): qa_db_query_sub('UPDATE ^userpoi...', '0', '1')\n#3 /home/nomikos/dev/aurora/qa-src/Recalc/RecalcPointsRecalc.php(36): qa_db_users_recalc_points('0', '1')\n#4 /home/nomikos/dev/aurora/qa-src/Recalc/RecalcMain.php(102): Q2A\\Recalc\\RecalcPointsRecalc->doStep()\n#5 /home/nomikos/dev/aurora/qa-include/ajax/recalc.php(33): Q2A\\Recalc\\RecalcMain->performStep()\n#6 /home/nomikos/dev/aurora/qa-include/qa-ajax.php(85): require('/home/nomikos/d...')\n#7 /home/nomikos/dev/aurora/qa-include/qa-index.php(32)

function qa_db_users_recalc_points($firstuserid, $lastuserid)

@svivian svivian added the bug Confirmed bug label Oct 3, 2020
@svivian svivian added this to the 1.9 milestone Oct 3, 2020
@pupi1985 pupi1985 linked a pull request Oct 25, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants