• Resolved tonygao

    (@tonygao)


    After upgrade WordPress today, the following error appear in debug.log

    PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘_wp_footnotes_kses_init’ not found or invalid function name in /home/ourdomain.com/public_html/wp-includes/class-wp-hook.php on line 310

    The request URI is /wp-admin/admin-ajax.php

    • This topic was modified 1 year, 5 months ago by tonygao.
Viewing 4 replies - 1 through 4 (of 4 total)
  • ?It is usually caused by a filter or an action not properly declared.

    Please check action/filter function argument in your active theme or custom plugin that it will be properly declared or not. and please check first this “_wp_footnotes_kses_init” function where you call this function. check action/filter function arguments.

    Thread Starter tonygao

    (@tonygao)

    I fixed the problem by adding the following code into wp-config.php

    include_once $_SERVER[‘DOCUMENT_ROOT’].’/wp-includes/blocks.php’;

    It seems the problem caused by blocks.php is not loaded when doing ajax(admin-ajax.php) and the function _wp_footnotes_kses_init is defined in blocks.php. In my case, I don’t use block editor, so maybe because of that the blocks.php not loaded.

    However, I don’t have that problem until upgrade wordpress to the latest version. Maybe this is a bug something of the latest version.

    If your issue resolved, please add this issue in resolved

    Thread Starter tonygao

    (@tonygao)

    Solved!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘function ‘_wp_footnotes_kses_init’ not found or invalid function name’ is closed to new replies.