Title: [SOLVED] Failed to initialize plugin: pfcbutton
Last modified: September 25, 2019

---

# [SOLVED] Failed to initialize plugin: pfcbutton

 *  Resolved [ole1986](https://wordpress.org/support/users/ole1986/)
 * (@ole1986)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/solved-failed-to-initialize-plugin-pfcbutton/)
 * 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/](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 6 years, 8 months ago by [ole1986](https://wordpress.org/support/users/ole1986/).
    -  This topic was modified 6 years, 8 months ago by [ole1986](https://wordpress.org/support/users/ole1986/).

Viewing 1 replies (of 1 total)

 *  [hirschheissich](https://wordpress.org/support/users/hirschheissich/)
 * (@hirschheissich)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/solved-failed-to-initialize-plugin-pfcbutton/#post-12134304)
 * This helped me! Thanks 🙂

Viewing 1 replies (of 1 total)

The topic ‘[SOLVED] Failed to initialize plugin: pfcbutton’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-from-category_c7e5f0.svg)
 * [Posts From Category](https://wordpress.org/plugins/posts-from-category/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-from-category/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-from-category/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-from-category/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-from-category/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-from-category/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [hirschheissich](https://wordpress.org/support/users/hirschheissich/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/solved-failed-to-initialize-plugin-pfcbutton/#post-12134304)
 * Status: resolved