Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
539 stars 198 forks source link

Can't create or select new templates for lessons in non-block themes. #7215

Open Imran92 opened 1 year ago

Imran92 commented 1 year ago

Steps to Reproduce

  1. Install or make sure you are on a non-block/FSE theme like twenty twenty one or Astra
  2. Go to a lesson
  3. From the settings panel on right, create a new template
  4. click on Update

What I Expected

To save without issue

What Happened Instead

You see an error message saying The update failed. Invalid parameter(s): "template"

I've already done some investigation. Looks like it happens only on non-block and non-fse themes. If you use block themes, like twenty twenty three or Course, this issue doesn't happen

PHP / WordPress / Sensei LMS version

8.1, 6.3, 4.17.1

Browser / OS version

Chrome, opera

Screenshot / Video

https://github.com/Automattic/sensei/assets/6820724/6b85d060-28aa-4d5a-95ef-60726e6eb8ef

Context / Source

Imran92 commented 1 year ago

7113694-zd-a8c

https://wordpress.org/support/topic/unable-to-create-course-template/

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.