admin管理员组文章数量:1122832
I got this error, can someone help me with how to resolve it?
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_schedule_https_detection' not found or invalid function name in C:\Users\Alex\Local Sites\proba2\app\public\wp-includes\class-wp-hook.php on line 292
Thanks in advance!!!
I got this error, can someone help me with how to resolve it?
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_schedule_https_detection' not found or invalid function name in C:\Users\Alex\Local Sites\proba2\app\public\wp-includes\class-wp-hook.php on line 292
Thanks in advance!!!
Share Improve this question edited Apr 14, 2021 at 10:48 Rup 4,3904 gold badges28 silver badges29 bronze badges asked Apr 14, 2021 at 7:44 Aleksandar MarkovicAleksandar Markovic 11 gold badge1 silver badge1 bronze badge 7 | Show 2 more comments2 Answers
Reset to default 1This error occurs when you have an action or filter hooked to a function that doesn't exist. I believe this hook was called in the wp-includes/default-filters.php file. It looked like this:
add_action( 'init', 'wp_schedule_https_detection' );
But, in order for this to be failing, it means either 1) the function is being called from somewhere else, before its available, or 2) there's some missing code from your WordPress Core.
Now, because this question is 3 years old, this should actually be irrelevant because that function was removed from the WP Core in this change: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/https-detection.php?rev=56664#L10
Feel free to mark an answer as accepted, to "close" the issue.
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
本文标签: functionsError in quotclasswphookphpquot
版权声明:本文标题:functions - Error in "class-wp-hook.php" 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736304145a1932130.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
function wp_schedule_https_detection() {
in wp-includes/https-detection.php (line 163 I think) andrequire ABSPATH . WPINC . '/https-detection.php';
in wp-settings.php (line 174). But if it's easier then just compare those two files to the files in a fresh copy of 5.7. – Rup Commented Apr 14, 2021 at 11:50