• I am trying to update an old website with Learnpress to reactive interesting training materials. The website was developed by someone who left our company and I’m facing issue to make it work.

    I have 2 different problems but probably with the same cause:

    • When a user wants to enroll to a course A, the enroll button does not seem to work as it brings back the user to the list of available courses. ==> I see an API Call “/wp-json/lp/v1/courses/enroll-course?_locale=user” by POST method that gets an HTTP 302 code
    • When the same user wants to enroll to a course B, the button to start does not even appear as if it was not possible to check the status of the user for this course (can enroll, already enrolled, etc.) => API CALL in POST method “/wp-json/lp/v1/lazy-load/course-progress?_locale=user” gets an HTTP 302 code

    In both cases the API does not seem to provide the expected answer but I can’t figure out the problem. I sometimes get an error message telling the JSON Response is not valid.

    Any help would be appreciated.

    s

Viewing 1 replies (of 1 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi kalan79,

    Thank you for providing detailed information about the issue.

    The HTTP 302 code usually indicates a redirection, which might be caused by a third-party plugin or server configuration. To troubleshoot:

    1. Disable all plugins except LearnPress
      Please disable all other plugins temporarily, leaving only LearnPress active, and check if the issue persists. This will help identify if another plugin is causing the redirection.
    2. Check server redirection rules
      If the problem continues, it might be due to server-level redirection rules in your .htaccess file (for Apache servers) or equivalent configuration for NGINX. Review these rules or consult with your hosting provider for assistance.
    3. Clear cache
      Clear any caching (browser, server, or plugin-based) and check again.

    Once you’ve tested these steps, let us know the outcome, and we’ll assist further if needed.

    Best regards,
    Brianvu-tp

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.