• Resolved impaelas

    (@impaelas)


    I had questions for Group winners with this setup:
    – multiple choice, 1 answer (radio list)

    When i proceed to edit user answers and change status from false to correct and attribute 5 points the input is not saved. I’ve tried Save and Close, Save with same result.

    Hopefully I would do this in database directly by editing the CSV as I have 500 users but I don’t know which value is what. I.E, CSV contains this:
    1 38 Brazil 0 0

    thx for help

    https://www.ads-software.com/plugins/football-pool/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter impaelas

    (@impaelas)

    Update:

    I managed to do the update via CSV which is ok for 500 players. A new problem arose; on ‘Predictions page’ you cannot see number of points attributed. It only shows points that you can earn.
    However if you go to Rankings page and click on any user you will be able to see points allocated.
    It would be nice to see points for questions on same page (Predictions) with points for match correct score predictions.

    I have a similar problem. The differense is I have group winners where the players should guess which two teams are group winners.

    When I change status for the users answers and click ‘save’ the list is not updated ??

    Plugin Author AntoineH

    (@antoineh)

    I think impaelas is running into this problem. There is a limit in the amount of post vars PHP will handle in one submit.

    @gnurf: How many users do you have in your pool?

    I have about 660 users.

    Plugin Author AntoineH

    (@antoineh)

    If you enable debugging in WordPress you can verify if you’re running into the max vars problem (it should generate a warning).

    You can increase the value via a .htaccess file in the admin dir of the plugin. The form uses 2 inputs per user, plus a few hidden inputs for the form actions.
    See this post on stackoverflow for details.

    HTH

    It seems like max_input_vars is set to 1000, which I guess means I have to increase the value to eg 3000

    I’m running into this same issue even after increasing max_input_vars in the admin directory, and I have WP debugging enabled and am not seeing any wanings. Any other thoughts on what could be cause?

    By the way, I saw in other threads that the problem was with setting the score date, but I do have a score date set for earlier today, and I still save the page only to find the correct/false and points not saved.

    Plugin Author AntoineH

    (@antoineh)

    To be honest I haven’t got a clue why this is not working. The user answers should be saved if they in fact have an answer from the player in the database (if it is empty, you can’t save it to be correct).

    The score date is not relevant in this case. The save function will set it automatically once you save the user answers.

    Do you use the latest version of the plugin? If not, please let me know what version you use and I will check that version also.

    Yes, I am using the latest version.

    Since this isn’t working, is there any other way to manually add points to a player’s score?

    Plugin Author AntoineH

    (@antoineh)

    Only option I see is to adjust the database directly (e.g. via phpMyAdmin), but that won’t be easy and a mistake is easily made.

    What I can do, is send you a small test script to see if the amount of form fields is causing the problem. If you contact me on my gmail address (see help page in the admin). I will send you an updated script for the question admin to test.

    If the amount of users is in fact causing the problem I can add some sort of pagination in the admin screen.

    p.s. sorry for the late response. I’ve been away for a short holiday and it’s kinda busy at work.

    Plugin Author AntoineH

    (@antoineh)

    I went ahead and added some pagination to the admin screen for the user answers. Can you test the dev version (can be downloaded here) and let me know if this fixes the problem?

    Fantastic news — it works! You have no idea how much of a relief this is ?? I believe the problem was, in fact, with the max_input_vars, even though WordPress wasn’t showing any errors.

    However, I can now only access the first 347 users, and we have 810. (These are the first 347 alphabetically, regardless of if they submitted answers.) Any thoughts on how to fix this?

    Edit: disregard my original comment! I realized my mistake was that I was trying to change false to correct for someone who didn’t enter an answer. However, what I wrote above still stands.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Questions results not updated’ is closed to new replies.