• Resolved krevaestudio

    (@krevaestudio)


    I know this is a known bug but none of the solutions commented on this forum is working for me- The problem is that I can’t set the event outcome “Lose” to be Less Goals. It remains empty and not working. Every time a team loses is not automatically set as so and it has to be manually completed

    • This topic was modified 2 years, 5 months ago by krevaestudio.

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

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

    (@savvasha)

    @krevaestudio Since I see past posts of this issue with multiple people still having the issue, I did some digging and found a solution if you would like to try it, but my solution requires a database edit.

    First find the “Loss” outcome. You can find this in the database is you query for “sp_outcome” posts, but you can also see it if you go to Edit your Loss outcome item:

    wp-admin/post.php?post=2167&action=edit

    So mine is ID 2167.

    Next you can update the loss condition meta_value on your database:

    UPDATE wordpress.wp_postmeta SET meta_value = '<' WHERE (post_id = '2167' and meta_key = 'sp_condition');
    

    The main issue is that for some reason it is saving an escaped value for this. I’m sure if I did some more investigating, I would find the main issue, but I do not currently have time for that. Probably somewhere in the outcome creation it is doing something weird.

    If you can’t edit your database, you might be able to try this other hacky workaround, but I did not test this personally:

    https://github.com/ThemeBoy/SportsPress/blob/master/includes/class-sp-event.php#L758

    You could try editing this line to match the escaped value of & lt; (without the space)

    If I end up getting some time, I will try to find the actual root issue for this and post it on their GitHub. But… I am also currently struggling to get some feedback from the team on other setup issues I am having, so I am a little frustrated with that.

    I hope this helps though!

    • This reply was modified 2 years, 5 months ago by jhund.
    • This reply was modified 2 years, 5 months ago by jhund.
    • This reply was modified 2 years, 5 months ago by jhund.
    Roch

    (@rochesterj)

    Thanks for your help, jhund

    This is similar to removing the escaping function from the plugin’s code. That’s clever!

    THanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can′t set lose outcome to “Less goals”’ is closed to new replies.