• Hi,

    please help me with following problem. I have added new performance statistic “Average Goals”. I inserted values in player detail, but Total row is not calculated correctly. It takes only values based on events data, not manualy inserted by user in administration.

    Look at linked page. See column “? gól?”, which is not calculated as avarage from all seasons.

    thanks for help

    • This topic was modified 7 years, 6 months ago by berky.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • I had the same problem. You can increase max_input_vars in your php.ini file:

    max_input_vars = 3000

    Best Regards!
    Ramzesimus

    Thread Starter berky

    (@berky)

    Are you sure @ramzesimus?

    php settings is reason of wrong calculation in wordpress plugin?
    thanks

    @berky yep, I know it sounds weird, but it helped me to fix the same issue.

    Best Regards!
    Ramzesimus

    • This reply was modified 7 years, 6 months ago by ramzesimus.
    Thread Starter berky

    (@berky)

    Ok, thanks, I will try it ??

    Roch

    (@rochesterj)

    Awesome!

    Let us know how it works then.

    BTW, that toally makes sense. If you server limits the input vars not all events may be taken into account.

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter berky

    (@berky)

    So, this is not the problem. Server settings is max_input_vars = 15000. You can check it here: https://www.sokollibcice.cz/phpinfo.php.

    Any other idea?

    I realy think that plugin does not calculate total values from manualy inserted data in player detail. Because if I inserted some performance stats in event, total value in player stats is OK. But you have option to insert values for season stats in player detail manualy. Then automatic calculation is not working ??

    Thread Starter berky

    (@berky)

    @rochesterj – one indication: if I change type of performance field in admin to Sum. It works good. But Type Avaerge is not calculated…

    Thread Starter berky

    (@berky)

    @rochesterj any idea? Please don’t say, this topic is not active, create new one ??
    Thanks

    Roch

    (@rochesterj)

    Hi @berky

    We often have to ask users to open topics for their own issues (as that’s a WP rule, and it’s kinda rude to jump into other people’s topics), but we never ask users to open new topics for the same issue.

    Regarding your issue that’s a weird one. I agree with you that this may be an issue. As averages are calculated based on each event data (otherwise the average would be skewed) the lack of event data prevents the plugin from calculating it (as the season itself is not a good reference).

    That’s what I think at least, I’ll send this to our dev team to see what they think about this one.

    In the meantime, are you able to use the adjustments for the total as well? You could manually add an average there just to make sure you have some data for now.

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter berky

    (@berky)

    Hi, thanks for checking with dev team. I can adjust total value, but it changes after every match played ??

    thnaks anyway
    P.

    Roch

    (@rochesterj)

    Hi!

    That’s a good point! We’ll get back to you as soon as possible!

    Another idea is adding a dummy event to save the adjustments so they will be taken into account for future events.

    Thanks!

    Kind Regards,
    -Roch

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Total field in statistic is not calculated correctly’ is closed to new replies.