Title: MasterStudy Exceptions
Last modified: April 29, 2024

---

# MasterStudy Exceptions

 *  Resolved [Andrew](https://wordpress.org/support/users/andrew1111/)
 * (@andrew1111)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/masterstudy-exceptions/)
 * Our debug.log shows the following, recurring exceptions:
 * **This exception occurs frequently. I’ve pasted the warnings as well, since they
   consistently occur prior to the exception.**
 * [28-Apr-2024 14:58:18 UTC] PHP Warning: Attempt to read property “ID” on null
   in /bitnami/wordpress/wp-content/plugins/masterstudy-lms-learning-management-
   system/includes/Repositories/CoursePlayerRepository.php on line 17
   [28-Apr-2024
   14:58:18 UTC] PHP Warning: Attempt to read property “ID” on null in /bitnami/
   wordpress/wp-content/plugins/masterstudy-lms-learning-management-system/includes/
   Repositories/CoursePlayerRepository.php on line 17[28-Apr-2024 14:58:18 UTC] 
   PHP Fatal error: Uncaught TypeError: MasterStudy\Lms\Repositories\CurriculumRepository::
   get_curriculum(): Argument #1 ($course_id) must be of type int, null given, called
   in /bitnami/wordpress/wp-content/plugins/masterstudy-lms-learning-management-
   system/includes/Repositories/CoursePlayerRepository.php on line 21 and defined
   in /bitnami/wordpress/wp-content/plugins/masterstudy-lms-learning-management-
   system/includes/Repositories/CurriculumRepository.php:35Stack trace: 0 /bitnami/
   wordpress/wp-content/plugins/masterstudy-lms-learning-management-system/includes/
   Repositories/CoursePlayerRepository.php(21): MasterStudy\Lms\Repositories\CurriculumRepository-
   >get_curriculum() 1 /bitnami/wordpress/wp-content/plugins/masterstudy-lms-learning-
   management-system/_core/stm-lms-templates/course-player.php(27): MasterStudy\
   Lms\Repositories\CoursePlayerRepository->get_main_data() 2 /opt/bitnami/wordpress/
   wp-includes/template-loader.php(106): include(‘…’) 3 /opt/bitnami/wordpress/wp-
   blog-header.php(19): require_once(‘…’) 4 /opt/bitnami/wordpress/index.php(17):
   require(‘…’) 5 {main}
 * thrown in /bitnami/wordpress/wp-content/plugins/masterstudy-lms-learning-management-
   system/includes/Repositories/CurriculumRepository.php on line 35
 * **I’ve only seen this exception twice.**
 * [28-Apr-2024 22:40:32 UTC] PHP Fatal error: Uncaught DivisionByZeroError: Division
   by zero in /bitnami/wordpress/wp-content/plugins/masterstudy-lms-learning-management-
   system/_core/libraries/mixpanel/class-mixpanel-posts.php:193
   Stack trace: 0 /
   bitnami/wordpress/wp-content/plugins/masterstudy-lms-learning-management-system/
   _core/libraries/mixpanel/class-mixpanel-posts.php(86): MasterStudy\Lms\Libraries\
   Mixpanel_Posts::get_average_sections_count() 1 [internal function]: MasterStudy\
   Lms\Libraries\Mixpanel_Posts::register_data() 2 /bitnami/wordpress/wp-content/
   plugins/masterstudy-lms-learning-management-system/_core/libraries/mixpanel/class-
   mixpanel.php(35): call_user_func() 3 /bitnami/wordpress/wp-content/plugins/masterstudy-
   lms-learning-management-system/_core/libraries/mixpanel/class-mixpanel.php(40):
   MasterStudy\Lms\Libraries\Mixpanel->collect_data() 4 /bitnami/wordpress/wp-content/
   plugins/masterstudy-lms-learning-management-system/_core/libraries/mixpanel/init.
   php(16): MasterStudy\Lms\Libraries\Mixpanel->execute() 5 /opt/bitnami/wordpress/
   wp-includes/class-wp-hook.php(324): init_mixpanel() 6 /opt/bitnami/wordpress/
   wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /opt/bitnami/wordpress/
   wp-includes/plugin.php(565): WP_Hook->do_action() 8 /opt/bitnami/wordpress/wp-
   cron.php(191): do_action_ref_array() 9 {main}
 * thrown in /bitnami/wordpress/wp-content/plugins/masterstudy-lms-learning-management-
   system/_core/libraries/mixpanel/class-mixpanel-posts.php on line 193

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [mgordon7](https://wordpress.org/support/users/mgordon7/)
 * (@mgordon7)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/masterstudy-exceptions/#post-17724662)
 * Hello,
 * Please kindly make sure that you updated the plugin to the latest version. With
   the latest version there shouldn’t be such restriction. Let me know of the progress,
   in case if the issue will be even with the updated version on your site
 * Best regards
 *  Thread Starter [Andrew](https://wordpress.org/support/users/andrew1111/)
 * (@andrew1111)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/masterstudy-exceptions/#post-17736949)
 * FYI, these bugs are active as of version 3.3.9
 *  Plugin Support [mgordon7](https://wordpress.org/support/users/mgordon7/)
 * (@mgordon7)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/masterstudy-exceptions/#post-17748641)
 * Hello,
 * The latest version of the LMS free plugin is 3.3.13
 * Could you please kindly update the plugin to the latest version?
 *  Thread Starter [Andrew](https://wordpress.org/support/users/andrew1111/)
 * (@andrew1111)
 * [2 years ago](https://wordpress.org/support/topic/masterstudy-exceptions/#post-17789757)
 * FYI, these exceptions are occurring in version 3.3.16.
 *  Plugin Support [mgordon7](https://wordpress.org/support/users/mgordon7/)
 * (@mgordon7)
 * [2 years ago](https://wordpress.org/support/topic/masterstudy-exceptions/#post-17792543)
 * There is no such errors in our testing environments, could you please provide
   more details on how you are making the debug and provide your site server limits.
   Moreover, could you please provide most recent server error logs? So in this 
   way we will be able to detect the core of this unexpected issue. Moreover, as
   for testing, could you try to install the plugin on a fresh WordPress site and
   re-check again?
 * Best regards

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘MasterStudy Exceptions’ is closed to new replies.

 * ![](https://ps.w.org/masterstudy-lms-learning-management-system/assets/icon-256x256.
   gif?rev=2846471)
 * [MasterStudy LMS WordPress Plugin – for Online Courses and Education](https://wordpress.org/plugins/masterstudy-lms-learning-management-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/masterstudy-lms-learning-management-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/masterstudy-lms-learning-management-system/)
 * [Active Topics](https://wordpress.org/support/plugin/masterstudy-lms-learning-management-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/masterstudy-lms-learning-management-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/masterstudy-lms-learning-management-system/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [mgordon7](https://wordpress.org/support/users/mgordon7/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/masterstudy-exceptions/#post-17792543)
 * Status: resolved