Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AntoineH

    (@antoineh)

    I’ll close the old thread, so we can continue here.

    I’ve found the problem. When auto-setting the answer and when the question doesn’t have a score date set, then the plugin will also set the score date to now. The problem lies in the fact that the WordPress function that I use for this, sets this date as “Y-m-d H:m:s” (this is including seconds) and when the calculation is run immediately after, then the calculation will check for all questions that are older or equal than a date with format “Y-m-d H:s” (this is excluding seconds). Which means that in most cases the saved question is not included because the seconds in the time make the score date newer (only when the question is saved exactly on the minute, then it will work).

    There are two work-around solutions:
    1. Run the calculation (again) 1 minute after you saved the question.
    2. Manually set the score date when you save the question (set it to something in the past).

    I’ll include a fix for it in the new version that is currently in beta.

    Thread Starter fimo66

    (@fimo66)

    Great news that du found the problem and was able to fix it, its been buggin me a bit since we “spoke” about it a while ago.
    But very happy that you found a solution and resolved in version v2.10.0 or higher

    Thanks once again for the great support, fast fix and the best plugin ever :o)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error when calculate questions points ?’ is closed to new replies.