Error in “class-wp-hook.php”

I managed to fix the issue, by checking and removing the missing function from the plugin file, as the error mentions “function ‘wp_schedule_https_detection’ not found or invalid function name”

Probably you are calling the function ‘wp_schedule_https_detection’ in your plugin file, and its missing the function in the plugin file.

The file ‘class-wp-hook.php’ should not be edited