• Resolved ekayi

    (@ekayi)


    Hi,

    I upgraded my installation to 4.2 over the weekend, and this seems to have knocked out the pretty permalinks for the “Fixtures” widget.

    Within the widget links now look like “/?post_type=wpcm_match&p=1079” across the rest of the site they are as expected “/match/1079”.

    Are there any quick fixes I could put for this, as this is causing issues with my caching (returning 404) because it’s not using the pretty permalink.

    I’m also using the Scoreline theme.

    Any help appreciated,
    M

    https://www.ads-software.com/plugins/wp-club-manager/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi ekayi,

    That shouldn’t be happening. Have you tried resetting your permalinks? Go to the permalinks page and click on save.

    Hope that helps

    Thread Starter ekayi

    (@ekayi)

    Thanks for the quick reply, I’ve tried re-saving the permalinks, but still no joy.

    But I’ve dug a little deeper and I’ve found that old posts (pre 4.2 upgrade still have their pretty permalink in place, it’s just new matches added since the upgrade that are not getting a pretty permalink assigned.

    Thanks,
    Mark

    Thread Starter ekayi

    (@ekayi)

    Hi,

    I’ve been looking in to this a bit more, and have found the following:

    -Any fixture with a date in the future, the link does not work.

    -Once a fixtures date becomes in the past, the permalink will appear and start working correctly

    -My initial thought that it was just the widget is incorrect, it is actually any link to a future game anywhere on the site.

    -The same behavior can be seen on the demo site (https://demos.wpclubmanager.com/?theme=Scoreline) so it is definitely not an issue with my install.

    A change must have been introduced in one of the latest WordPress updates that is effecting how WP Club Manager handles future dated posts permalinks.

    I have also noticed that a link can be made valid by adding “&wpcm_match” to the end of a broken permalink.

    Broken (returns 404): https://demos.wpclubmanager.com/scoreline/?post_type=wpcm_match&p=176
    Working: https://demos.wpclubmanager.com/scoreline/?post_type=wpcm_match&p=176&wpcm_match

    Looking forward to your reply,
    -Mark

    Hi Mark,

    Thanks for your work on this problem, it’s much appreciated.

    I have just released v1.2.17 which should fix this issue which was being caused by a change to the way future posts permalinks are displayed in the WP core since 4.2 – sorry it took so long.

    Thanks again

    Leon

    Thread Starter ekayi

    (@ekayi)

    Hi Leon,

    Thanks for the update, I just installed v1.2.17 but the issue still seems to be there – i tried removing and reinstalling the plugin but no joy, have you installed the updated plugin on your demo site? Just noticed the links are not working there yet either.

    Any ideas? (sorry to be a bother!)
    -Mark

    Hi Mark,

    No bother mate!

    You will need to update Scoreline too which has the fix in it’s templates. The demo site is up to date and the links to future matches are working fine for me. Maybe you need to reset caches or something?

    If you have activated your licence key for Scoreline you should be able to download the latest version through your dashboard, otherwise you can get the latest version by logging into our site and going to your account.

    Let me know how you get on.

    Cheers

    Thread Starter ekayi

    (@ekayi)

    Hi Leon,

    Updating Scoreline did the trick! I was using the incorrect link in my history for the demo site, that’s why it wasn’t working for me there.

    Thanks again! Keep up the awesome work! ??

    -Mark

    Cool, I’ll mark the thread as resolved. Give me shout if you have anymore problems.

    Please also consider taking a few moments to leave a review ??

    Cheers

    Leon

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fixtures Widget Pretty Permalinks’ is closed to new replies.