• I’m currently testing a demo site delivered by my web developers. First off, they have created a custom template, however in this case I don’t think it’s the custom template that’s the issue. I’ve never had any issues with previous SportsPress updates other than the “Your theme has bundled outdated copies of SportsPress template files” message. Having spoken to the devs at length about that and for what I am using the site for (team level results only) I don’t think the outdated template files will ever be a major issue to my site.

    I upgraded to v2.2.3 yesterday and it ‘wiped’ my Configure settings apart from “Player Metrics -> Born (age)” paramter (I think my web devs used the default Soccer settings but then created custom template). Reason I suspect it may be an SP plugin issue is because I manually downloaded your v2.2.3 zip install file and inspected the JSON files (\sportspress.2.2.3.zip\sportspress\presets\team-sports) where I found the soccer.json has been updated in this release (date modified 13-Jan-17 03:34).

    I have now manually recreated the Configure settings in WP using the soccer.json file for reference and my past events are now correctly displaying the RESULT details again (and remembering the original Goals I had input for all my events). I will also be able to get a backup of previous settings from my web devs to verify against what I’ve manually reconfigured.

    However there is still one problem which seems to relate to the 1st Half and 2nd Half variables. My past events no longer display the 1st Half and 2nd Half goals, they only display the Goals.

    Below is what is configured in your new json file.

    soccer.json extract:

    “results”: [
    { “name” : “1st Half”, “description” : “1st half goals” },
    { “name” : “2nd Half”, “description” : “2nd half goals” },
    { “name” : “Goals”, “description” : “Total goals”, “primary” : 1 }

    But in the SP plugin UI these variables are showing as sthalffor and sthalfagainst i.e. stripping or disallowing the “1” digit character. Also, when I do manually re-enter a 1st Half and 2nd Half goals to an event it is displaying wrong outcome e.g. the event result may show as 1-1 draw where 1st Half = 1-0 and 2nd Half = 0-0.

    I don’t want to post URL examples to events on my demo site here because I don’t want to reveal the site idea in public until it’s launched. But I would be happy to share privately with support to provide example events and my SP plug-in settings etc?

    I could add even more detail here but I think that’s probably enough to get this one started :-O .

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Eugene Fraxby

    (@eugenefraxby)

    Letting you know that the upgrade to 2.2.4 did not wipe my config.

    However you stili have the issue where if you enter a value in 1st half goals or 2nd half goals it automatically records an event full time result of 1-1 and event outcome of Draw/Draw.

    I have also tried adding my own custom results field Halt time goals, and the same thing happens. It is not a huge issue since if I manually enter the correct goals in Total goals rather than let it auto-calculate from the other fields, it does record the correct outcome.

    Below is now be my json config for results.


    “results”: [
    { “name” : “1st Half”, “description” : “1st half goals” },
    { “name” : “2nd Half”, “description” : “2nd half goals” },
    { “name” : “Goals”, “description” : “Total goals”, “primary” : 1 }
    { “name” : “Half Time”, “description” : “Half time goals” },
    ],

    Plugin Author Brian

    (@brianmiyaji)

    @eugenefraxby Thanks for your feedback! I’ve added some additional code to prevent overwriting existing configuration in the last update, although manually added or once edited variables will never be deleted (since they don’t have the flag _sp_preset).

    Regarding the halftime goals issue, you check that “Goals” is selected as the primary outcome via SportsPress > Configure?

    We’re planning to add a feature to import/export configuration settings in a future update, to make it easier to backup and share.

    Thread Starter Eugene Fraxby

    (@eugenefraxby)

    Nice one.

    Yes Goals is set to Primary.

    However a Default (Halt Time) checkbox does appear which you can’t edit. I don’t have it selected as Primary. Is it simply the case that the last Label you add is the one that ends up as Default?

    Similarly in Player Peformance I have Default (Yellow Cards), which I think was the last Label I added manually after my settings were wiped.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘v2.2.3 wiped my Configure settings (Soccer JSON)’ is closed to new replies.