• Resolved danielgross7

    (@danielgross7)


    Dear SportsPress team,
    I am facing an issue with my SportsPress plugin. The player statistics for average values in the player list are “somehow” doubled.

    Here is a picture of the player list, where the values are doubled:
    Player list
    Here is a picture of the player statistic, where all the values are correct:
    Player statistic- Laura Krüger

    I’m always upgrading the plugin to the latest version, right now I’m using SportsPress Version 2.6.1.

    I hope you can help me solving my issue and please let me know if you need further informations.

    Best regards,
    Daniel

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @danielgross7,

    Please update to the latest version of SportsPress (2.6.11) and confirm if the issue has solved.

    Thanks,
    Savvas

    @savvasha I face the same bug in version 2.6.11, I can’t test if persist en version 2.6.12 since in this version I have problems whit API.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @ronaldsequeira,

    Please wait for version 2.6.13 which will solve also the problems with API ??

    Thanks,
    Savvas

    Thread Starter danielgross7

    (@danielgross7)

    Hello @savvasha,
    in my previous post I meant 2.6.10 istead of 2.6.1. As you proposed, I upgraded from 2.6.10 to 2.6.11 and I am still facing the same issue.

    Kind regards,
    Daniel

    Plugin Contributor Savvas

    (@savvasha)

    Hi @danielgross7,

    Our latest version is 2.6.12. What are the equations for the performances V-0 and A-0?

    Thanks,
    Savvas

    Thread Starter danielgross7

    (@danielgross7)

    Hello @savvasha,
    I have upgraded to 2.6.13 and the problem is still there.

    The equations are:
    V-0 = Volle / Eventsplayed
    A-0 = Abr?umen / Eventsplayed

    where Volle and Abr?umen is the player perfomance which are manually recoreded, e.g. here

    I tried both Types Total and Average but it did not matter.

    Kind regards,
    Daniel

    @savvasha, I had found what is probably causing the issue, is a bug that auto select boxes from performance table, doesn’t matter if I only select Data from general stats table, and this problem happens randomly from Player List to Player List, not all get affected or not the same boxes are selected. I found this through 2.6.11, 2.6.12, 2.6.13.

    Capture 1
    Capture 2

    Thread Starter danielgross7

    (@danielgross7)

    Hello @savvasha,

    I checked the total player performance values (i.e. Volle), which are already doubled! Therefore the statistic value can only be wrong. Equation afterwards calculates properly, the error must be somewhere beforehand.

    Kind regards,
    Daniel

    Thread Starter danielgross7

    (@danielgross7)

    Hello @savvasha,
    I was able to resolve this issue by deleting all the performances and statistic formulas and creating everything new. Unfortunately I have to insert all the values for all my 300+ games again.

    By the way, is it possible to somehow save everything I created in SportsPress and import it to another page?

    You may close here.

    Kind regards, merry christmas and a happy new year from Germany,
    Daniel

    Plugin Contributor Savvas

    (@savvasha)

    Hi @danielgross7,

    I am glad you found a way to solve it. Even a “hard” way ??

    For export-import you can try the native tools from WordPress under Tools menu of wp-admin. If you need anyting more advanced, then try a plugin. SportsPress uses Custom Post Types which are compatible with all third-party plugins.

    Merry Christmass!

    Thanks,
    Savvas

    phi_floorball

    (@phi_floorball)

    Hello!

    I have exactly the same issue. Is there already a more efficient resolve than the “hard” way by now? Thanks.

    Roch

    (@rochesterj)

    Hi!

    Thanks for reaching out!

    The best way to get support is via a new ticket (even if it’s a similar issue).

    But unfortunately, no there isn’t.

    Thanks!

    jordanappler

    (@jordanappler)

    I also have this issue. I’m not keeping very many stats so I can afford the “hard way”. I’m commenting to give my insight in case it helps you find the issue faster:

    My custom player statistic S is a linear function of player performances, one of which is custom P. The function looks like S = 50*P + … Say P = 2 and S = 200. On the player page it will correctly show S = 200. On the player list page it will show S = 202. If P is changed to 1, the player page will correctly show S = 150. The player list page will show S = 151. Even if I don’t include P in the equation anymore (effectively S = 0*P + …), I will still get S = 100 on the player page and S = 102 on the player list page.

    All that to say that I think in general it’s not doubling; it’s calculating the statistic with a weight increased by 1 (0*P –> 1*P, 1*P –> 2*P (doubling), 50*P –> 51*P).

    Roch

    (@rochesterj)

    Hi!

    Thanks for your input! ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Player list statistic values doubled’ is closed to new replies.