Hi!
A Warning appears on course status page when a student starts a course.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '__return_true ' not found or invalid function name in /home/.../other/class-wp-hook.php on line 287
A more detailed video is attached under as a private comment
Hope to hear from you ASAP.
This reply has been marked as private.
hi,
Notices /warnings are nothing to worry about. it has nothing to do with the actual functionality. but if you find any fatal error only then you have to worry about it.
What are PHP Notices?
PHP notices are the least important. As stated on the official PHP website, you will see PHP notices when:
the script encountered something that could indicate an error, but could also happen in the normal course of running a script.
Refer https://www.ostraining.com/blog/wordpress/warnings/.
NOTE: THE ABOVE LINES ARE NOT AN ISSUE. THAT IS JUST NOTICE, YOU DO NOT NEED TO WORRY ABOUT IT. EVERYTHING WORKS FINE.
you could hide these notices, follow this link: https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress
if you found ant FATAL ERROR then let us know
Hi Veronica!
It is good to hear that this is nothing to worry about! I will switch off reporting and notification from config file, though it might hide important notification as well.
Regards,
Anas
hi,
no it would not because
the debug mode is used to check the fatal errors
and if any fatal error will occur then it will show some impact on the site functionality
like it will stop working and will show critical error on the site on the site
Hi Veronica!
Thank you for your support. You can close this topic.
thanks for the confirmation
closing this topic
thanks