Critical error in .php file of plug-in
-
It seems a plug-in conflict has caused an issue on my site that has broken the functionality of the Sensei LMS Certificates plug in.
This is some of the email I received from WordPress informing me of the error:
Current plugin: Sensei LMS Certificates (version 2.3.0) PHP version 7.4.30 Error Details ============= An error of type E_ERROR was caused in line 1506 of the file /home/customer/www/********.com/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates.php. Error message: Uncaught Error: Call to undefined method Sensei_Utils::get_current_course() in /home/customer/www/********.com/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates.php:1506 Stack trace: #0 /home/customer/www/********.com/public_html/wp-includes/class-wp-hook.php(309): WooThemes_Sensei_Certificates->update_view_certificate_button_url(‘
I have found the line 1506 of the php file via the plug in editor. Is anyone able to identify an error in the below code so that I can amend and fix it?
$course_id = isset( $_GET['course_id'] ) ? (int) $_GET['course_id'] : \Sensei_Utils::get_current_course();
Thank you!
- The topic ‘Critical error in .php file of plug-in’ is closed to new replies.