Title: Fatal error when navigating to a Module
Last modified: February 20, 2021

---

# Fatal error when navigating to a Module

 *  Resolved [laurareturner](https://wordpress.org/support/users/laurareturner/)
 * (@laurareturner)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-navigating-to-a-module/)
 * My site has this fatal error when navigating to a Module in the navigation links
   at the bottom of a Lesson. What is the resolution please? I’m going to launch
   my course on Tuesday. Thanks.
 * `Fatal error: Uncaught TypeError: Argument 2 passed to Sensei_PostTypes::lesson_is_protected()
   must be an instance of WP_Post, null given, called in /var/www/wp-includes/class-
   wp-hook.php on line 287 and defined in /var/www/wp-content/plugins/sensei-lms/
   includes/class-sensei-posttypes.php:174 Stack trace: #0 /var/www/wp-includes/
   class-wp-hook.php(287): Sensei_PostTypes->lesson_is_protected(false, NULL) #1/
   var/www/wp-includes/plugin.php(212): WP_Hook->apply_filters(false, Array) #2 /
   var/www/wp-includes/post-template.php(854): apply_filters('post_password_r...',
   false, NULL) #3 /var/www/wp-includes/post-template.php(520): post_password_required(
   NULL) #4 /var/www/wp-includes/post-template.php(459): get_post_class(Array, NULL)#
   5 /var/www/wp-content/themes/primer/content-page.php(13): post_class() #6 /var/
   www/wp-includes/template.php(732): require('/var/www/wp-con...') #7 /var/www/
   wp-includes/template.php(676): load_template('/var/www/wp-con...', false, Array)#
   8 /var/www/wp-includes/general-template.php(204): locate_template in /var/www/
   wp-content/plugins/sensei-lms/includes/class-sensei-posttypes.php on line 174`

Viewing 1 replies (of 1 total)

 *  [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * (@cena)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-navigating-to-a-module/#post-14229203)
 * Hi [@laurareturner](https://wordpress.org/support/users/laurareturner/)
 * I’m sorry for the delay in responding here!
 * If you’re still getting this error, I’d make sure that your site: WordPress, 
   plugins, theme – are all up to date.
 * Next, if you’re still seeing the error, make sure it isn’t a plugin or theme 
   conflict.
 * Try disabling all of your plugins except Sensei LMS (and extensions). Then try
   testing again to see if the issue persists. If that resolves your issue, you 
   can find what was causing it by enabling each plugin one by one while continuing
   to test.
 * If that doesn’t help, you can also try switching to the Twenty Twenty theme via
   Appearance > Themes, and test again. If the issue is resolved then you know it’s
   a problem with the theme, and you’ll need to contact the theme author for further
   assistance.
 * If neither of those help, could you try the following steps so we can find out
   more about the problem?
 * 1. Open the page which displays the error.
    2. Open your browser console by following
   this guide: [https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/#step-3-diagnosis](https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/#step-3-diagnosis)
   3. Click on the Network tab 4. Refresh the page. 5. Try to use the module navigation.
   6. If you see any lines in red inside the browser console, click on them. A new
   panel should appear on the right. 7. Click on the “Response” tab in that new 
   panel. 8. Copy the message displayed there. 9. Paste it in a reply here. 10. 
   If no red lines appeared in the browser console, click on the “Console” tab of
   the browser console. 11. Copy any errors displayed there, and send them back 
   to me.
 * Best,

Viewing 1 replies (of 1 total)

The topic ‘Fatal error when navigating to a Module’ is closed to new replies.

 * ![](https://ps.w.org/sensei-lms/assets/icon-128x128.gif?rev=2914239)
 * [Sensei LMS - Online Courses, Quizzes, & Learning](https://wordpress.org/plugins/sensei-lms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sensei-lms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sensei-lms/)
 * [Active Topics](https://wordpress.org/support/plugin/sensei-lms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sensei-lms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sensei-lms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-navigating-to-a-module/#post-14229203)
 * Status: resolved