Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error when saving a course with Yoast SEO activated #3867

Closed
donnapep opened this issue Jan 5, 2021 · 0 comments
Closed

Fatal error when saving a course with Yoast SEO activated #3867

donnapep opened this issue Jan 5, 2021 · 0 comments
Labels
[Pri] Critical Drop everything to work on this and ship a fix the same day [Type] Bug
Milestone

Comments

@donnapep
Copy link
Collaborator

donnapep commented Jan 5, 2021

Steps to Reproduce

  1. Activate Yoast SEO.
  2. Create a new course with some modules and lessons.
  3. Save the course.

What I Expected

The course to be saved.

What Happened Instead

Get an Updating failed. message and a fatal error is logged:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Sensei_Course_Structure::instance() must be of the type int, null given, called in /Local Sites/sensei/app/public/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/blocks/class-sensei-course-outline-block.php on line 190 and defined in /Local Sites/sensei/app/public/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/class-sensei-course-structure.php:41

PHP / WordPress / Sensei LMS version

Sensei with WooCommerce Paid Courses 3.6.0.2.2.0

@donnapep donnapep added this to the 3.6.1 milestone Jan 5, 2021
@donnapep donnapep added [Pri] Critical Drop everything to work on this and ship a fix the same day and removed [Pri] High Ship ASAP labels Jan 5, 2021
@donnapep donnapep closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Pri] Critical Drop everything to work on this and ship a fix the same day [Type] Bug
Projects
None yet
Development

No branches or pull requests

1 participant