• Resolved karlemilnikka

    (@karlemilnikka)


    I just found a permalink related bug with LearnDash 3.5 and LearnDash 3.6 when LearnDash’s post types are extended using Pods 2.8. Sometimes, when lessons or topics are edited, the course URLs get changed from /course/course-name to /sfwd-course/course-name and all links get broken. I’ve verified this on a clean WordPress install where LearnDash and Pods are the only active plugins.

    I’ve sent a screen recording of the issue together with instructions on how to replicate the issue to LearnDash’s support. I’ve also given them admin access to the clean demo site. The reason I’m posting about the issue in this forum is to see if anyone has found a solution and maybe help someone who’s trying to figure out why all their LearnDash course links suddenly turn into 404s.

    I’ll update this thread when LearnDash has replied or found a solution on their end.

    PHP 7.4
    WordPress 5.8.2
    LearnDash LMS 3.5.1.3 or 3.6 Beta 1
    Pods 2.8.4.1

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    This should have been fixed with the release of Pods 2.8.5 which just went out.

    Can you confirm on your end?

    Thread Starter karlemilnikka

    (@karlemilnikka)

    Thanks for your quick reply. The 2.8.5 update seems to have fixed the issue. Thank you very much.

    Thread Starter karlemilnikka

    (@karlemilnikka)

    Unfortunately, the update just solved the way I triggered the bug, not the underlying issue. I keep investigating.

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    We’re continuing to look into a potential issue here that may be related: https://github.com/pods-framework/pods/issues/6313

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    Looks like I’ve been able to solve the bug I believe that was causing the issue you were seeing.

    The fix is included in Pods 2.8.6 which will go out on Monday.

    Thread Starter karlemilnikka

    (@karlemilnikka)

    Sounds amazing. I still haven’t figured out what’s triggering the issue after the last update. I’ll install the update tomorrow, test it for a week and then mark this support ticket as solved.

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    The fixes for this went out with Pods 2.8.6 today.

    Thread Starter karlemilnikka

    (@karlemilnikka)

    Unfortunately, it didn’t fix the issue. I do however have some good news since I’ve found a consistent way to replicate the bug.

    1. Set up a fresh WordPress site. Install the latest version of LearnDash and any old version of Pods 2.8 (I’ve tested with 2.8.5 and 2.8.6).
    2. Enable Shared Course Steps in LearnDash.
    3. Extend the course post type (sfwd-courses) with a field.
    4. Create a course called Course A. Its relative URL will be /courses/course-a/.
    5. Update Pods 2.8 to the latest version and check what happened to the courses. The title of the course listing page has been changed to sfwd-courses (previously Courses) and Course A’s relative URL has become /sfwd-courses/course-a/.

    If you would like to see this in action, I’ve installed a fresh WordPress site with only LearnDash and Pods running. I’ve also made a screen recording demonstrating the issue. I can send you the video together with the demo sites’s admin credentials through any private channel.

    Plugin Author Jory Hogeveen

    (@keraweb)

    @sc0ttkclark
    I can confirm this behavior locally.
    Not even that, Pods even changes the name of the Pod to Sfwd-courses.
    However, since it still recognizes the CPT as extended, you cannot change this through Pods.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @karlemilnikka

    This is actually fixed by Scott in the latest dev version, you can get it here:
    https://github.com/pods-framework/pods/archive/refs/heads/release/2.8.8.zip

    Cheers, Jory

    Thread Starter karlemilnikka

    (@karlemilnikka)

    Excellent! Thanks a lot.

    Thread Starter karlemilnikka

    (@karlemilnikka)

    I’m sorry to say, but there is still a compatibility issue. Unfortunately, I haven’t you found a way to replicate it consistently. The URLs don’t change anymore, but they suddenly stop working and start returning 404s. The only way I’ve found, so far, to avoid the issue is to re-save the Pod for Swfd-courses (without making any changes) after every plugin update.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @karlemilnikka

    Not sure what could cause that issue, might be permalink cache?
    Are you able to consistently reproduce this on a clean installation with only LearnDash and Pods enabled?

    Cheers, Jory

    Thread Starter karlemilnikka

    (@karlemilnikka)

    Not yet. I’m trying to find a reliable way to replicate the issue (just like before) and I will get back to you as soon as I’ve found it. I just wanted to report the situation as soon as I discovered it in case other users are experiencing the same issue.

    Thread Starter karlemilnikka

    (@karlemilnikka)

    I’ve so far not been able to pin down the cause of the issue. Since I cannot say for sure that it is related to a conflict between Pods and LearnDash, I mark this issue as solved again and keep investigating it as a bug within LearnDash.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Compatibility issue with LearnDash LMS’ is closed to new replies.