Course preview is not working if course is in draft state
-
If a course is in draft state, in the preview lessons can not be selected an pre-viewed. Only if course is published, preview works as expected.
If all courses are in draft state (= there is no course in published state) preview doesnt work at all.
I tryed plain new empty wordpress install using theme 2024, adding no plugins at all but only LearnPress. Using just the demo courses which can be added by LP – tools. And I encounter serious preview problems on courses in draft state.
Here is how to reproduce:
Create plain new empty wordpress (V 6.4.3 on PHP 8.0 or 8.1) website with just theme twenty twenty-four (without any plugins)
E.g. use tastewp.com -> create new site (de-select all suggested plugins)
Install Learnpress Plugin (V 4.2.6.1 = current version) by plugins – add new plugin …
use LP – tools to install a demo course
Give the demo course a different name then just “sample course” (e.g. “my sample course 1”)
use LP – tools to install another demo course
cklick edit on both courses (in new window), test the preview” preview changes” (or “preview in new window” if using block editor)
6.1. select curiculum, click any lesson,… (test a bit)
-> works as expected (same view as a student would have if the course would be public and course enrolled)
set one of the courses to “draft” state and preview this course
7.1. select “curiculum”
7.2. select any lesson
-> you?l find yourselfe in the course main page with “overview” selected (instead in the view curiculum at the left side bar and course content in the main view)
set the other courses to “draft” state so that both (=all) courses now are in draft state and preview this course (or/and the other one)
-> You ?l see a more or less empty page showing you have navigated to “Home – All Courses – “, nothing realy more. No course preview at all!
I have made a record screen video you can find here: https://weiselrichtig.ocloud.de/index.php/s/ZywkjEMdRqwYFWP
Hope we can figure out and solve soon!
BR – Jochen Klein
- You must be logged in to reply to this topic.