Support » Plugin: Posts From Category » [SOLVED] Failed to initialize plugin: pfcbutton

  • ole1986

    (@ole1986)


    Its been a while I have seen the error and did not had the time to figure out the issue.

    Now I finally got time to dig into the code to fix the error

    Failed to initialize plugin: pfcbutton
    This error occurs when you are using the Classic editor (tinymce) as part of the Gutenberg blocks inside Posts or pages.

    Reason:
    Inside post-from-category.php on line 598 it uses

    add_action ( 'after_wp_tiny_mce', 'pfc_tinymce_custom_vars' );

    which not not triggered correctly anymore.

    Details: https://developer.wordpress.org/reference/hooks/after_wp_tiny_mce/

    Workaround:

    To workaround this, replace the line 598 with:

    add_action ( 'admin_head', 'pfc_tinymce_custom_vars' );

    Or add the below code into the functions.php of your current active theme:

    add_action('admin_head', 'pfc_tinymce_custom_vars');

    • This topic was modified 1 year ago by ole1986.
    • This topic was modified 1 year ago by ole1986.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[SOLVED] Failed to initialize plugin: pfcbutton’ is closed to new replies.