ThemeBoy / SportsPress

An open source league statistics plugin for WordPress created by ThemeBoy.
Other
152 stars 98 forks source link

Error on player statistics #409

Closed yukasung closed 3 years ago

yukasung commented 3 years ago

I got an error this below. Notice: Trying to get property 'term_id' of non-object

Screen Shot 2021-05-18 at 2 03 57 PM
savvasha commented 3 years ago

Hi @yukasung,

Is this happening to all your players? What if you create a new player?

yukasung commented 3 years ago

It was happening to all players but it works well if I create a new player.

yukasung commented 3 years ago

Error is gone when I selected the club to the player statistics.

Screen Shot 2021-05-18 at 2 41 08 PM Screen Shot 2021-05-18 at 2 41 21 PM
savvasha commented 3 years ago

Unfortunately I am not able to reproduce this issue... image image

savvasha commented 3 years ago

How did you create the players that have this issue?

yukasung commented 3 years ago

The error occurs when I used "Duplicate Page" plugin to create a new player.

savvasha commented 3 years ago

Then it seems to be an issue with how this plugin duplicates the players data.

yukasung commented 3 years ago

I used this plugin because I create more than 200 players for two leagues on the demo website.

yukasung commented 3 years ago

Is it impossible you will resolve this issue?

savvasha commented 3 years ago

SportsPress PRO has a module called Duplicator that can do exactly what you want. https://www.themeboy.com/sportspress-extensions/duplicator/

I am closing down this because it is not a SportsPress issue.