Homepage › LearnDash Community Forums › General (free) › There has been a critical error on this website following plugin update
Tagged: courses, critical error, lessons, plugin
-
There has been a critical error on this website following plugin update
Posted by Stuart Reeves on Jul 23, 2026 at 10:00 amHi,
The following plugin’s have been updated on our WordPress site:
– LearnDash LMS (from version 5.1.7 to 5.1.8)
– LearnDash LMS – Notifications (from version 1.6.8 to 1.6.9)
– LearnDash LMS – ProPanel (from version 3.1.1 to 3.1.2)Since this, we have “There has been a critical error on this website.” on any lesson on our website!
How can I fix this please?
Emma Foica replied 2 weeks, 6 days ago 2 Members · 2 Replies -
2 Replies
-
I have the follow debug notices:
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the learndash-achievements domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/functions.php on line 6170
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the learndash-migration domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/functions.php on line 6170
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the elementor domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/functions.php on line 6170
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the elementor-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/functions.php on line 6170
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the uncanny-learndash-groups domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/functions.php on line 6170
Deprecated: File /home/customer/www/qnukacademy.co.uk/public_html/wp-content/plugins/learndash-notifications/src/deprecated/LearnDash_Notifications.php is deprecated since version 1.6.3 with no alternative available. in /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/functions.php on line 6170
Fatal error: Uncaught TypeError: LearnDash\Notifications\Compat\WPML::filter_has_access(): Argument #3 ($user_id) must be of type int, null given, called in /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/class-wp-hook.php on line 341 and defined in /home/customer/www/qnukacademy.co.uk/public_html/wp-content/plugins/learndash-notifications/src/Notifications/Compat/WPML.php:64 Stack trace: #0 /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/class-wp-hook.php(341): LearnDash\Notifications\Compat\WPML->filter_has_access(true, 185, NULL) #1 /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(true, Array) #2 /home/customer/www/qnukacademy.co.uk/public_html/wp-content/plugins/sfwd-lms/includes/course/ld-course-user-functions.php(71): apply_filters(‘sfwd_lms_has_ac…’, true, 185, NULL) #3 /home/customer/www/qnukacademy.co.uk/public_html/wp-content/plugins/sfwd-lms/includes/course/ld-course-user-functions.php(196): sfwd_lms_has_access(185) #4 /home/customer/www/qnukacademy.co.uk/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php(957): sfwd_lms_access_redirect(185) #5 /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/class-wp-hook.php(341): SFWD_CPT_Instance->template_redirect_access(”) #6 /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #7 /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #8 /home/customer/www/qnukacademy.co.uk/public_html/wp-includes/template-loader.php(23): do_action(‘template_redire…’) #9 /home/customer/www/qnukacademy.co.uk/public_html/wp-blog-header.php(19): require_once(‘/home/customer/…’) #10 /home/customer/www/qnukacademy.co.uk/public_html/index.php(17): require(‘/home/customer/…’) #11 {main} thrown in /home/customer/www/qnukacademy.co.uk/public_html/wp-content/plugins/learndash-notifications/src/Notifications/Compat/WPML.php on line 64
I have deactivated the <strong style=”font-family: inherit; font-size: inherit;”>LearnDash LMS – Notifications plugin for now, but will need a better solution.
-
Hi Stuart!
It seems that the “Critical Error” is being caused by a specific bug in the LearnDash LMS – Notifications (v1.6.9) update.
How to fix this
Since you’ve already deactivated the Notifications plugin to keep the site live, here are your best options for a permanent fix:
Option 1: Roll back to Version 1.6.8 (Recommended)
The safest and easiest fix is to revert the Notifications plugin to the previous stable version while waiting for LearnDash to release a hotfix (likely v1.6.10).
- Install the free WP Rollback plugin (or another similar plugin).
- Go to Plugins > Installed Plugins.
- Find LearnDash LMS – Notifications and click the new Rollback link.
- Select version 1.6.8 and confirm.
Option 2: Manual Code Patch (If you have developer/FTP access)
If you want to keep version 1.6.9 but fix the crash, you can edit the file mentioned in your error log:
- File Path:
/wp-content/plugins/learndash-notifications/src/Notifications/Compat/WPML.php - Line: 64
- The Change: Find the function definition for
filter_has_access. It likely looks like this:public function filter_has_access( $has_access, $post_id, int $user_id ) - The Fix: Change
int $user_idto?int $user_id(adding the question mark allows it to acceptnullvalues) or simply remove theintprefix entirely.
Let me know if that helped!
