You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to locate the function in template_functions.php. However, for some reason, it's not being called in class-sensei-frontend.php.
Perhaps it's necessary to check if the function exists using "functions_exists".
This should avoid the undefined function call error. See:
@param {array} $nav_links Navigation links found for the current lesson.
@return {string|bool} Filtered URL to redirect students to after completing a lesson. False to skip redirect.
*/
$redirect_url = apply_filters( 'sensei_complete_lesson_redirect_url', $redirect_url, $lesson_id, $nav_links );
Tested it on a fresh website with WordPress 6.5.3, Sensei LMS 4.24.0 and Course Theme 1.3.7.
No error found.
Do you have other plugins or do you use a custom theme?
Could you try to deactivate other plugins one-by-one and check if the issue persists?
If the plugin dance didn't help, try to switch the theme to a standard WordPress theme or to the Course theme and check if the issue persists.
Steps to Reproduce
Expected Behavior
I expected that clicking to move to the next lesson would transition without errors.
Actual Behavior
When attempting to move to the next lesson, the following error occurs:
Fatal error: Uncaught Error: Call to undefined function sensei_get_prev_next_lessons() in /home/customer/www/staging17.gabster.com.br/public_html/learn/wp-content/plugins/sensei-lms/includes/class-sensei-frontend.php:736
Additional Context
Sensei LMS Version: 4.24.0
WordPress Version: 6.5.3
The text was updated successfully, but these errors were encountered: