Title: [PATCH] EasyEmbedButtons::_addTinyMCEPlugin() should not be called statically
Last modified: August 21, 2016

---

# [PATCH] EasyEmbedButtons::_addTinyMCEPlugin() should not be called statically

 *  [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/patch-easyembedbuttons_addtinymceplugin-should-not-be-called-statically/)
 * In WP 3.6 with WP_DEBUG enabled your plugin is generating the following error
   on the edit post/page pages:
 * > Strict standards: call_user_func_array() expects parameter 1 to be a valid 
   > callback, non-static method EasyEmbedButtons::_addTinyMCEPlugin() should not
   > be called statically in /path/to/wp-includes/plugin.php on line 173
 * This is happening because in file _/wp-content/plugins/wp-easy-embed/inc/component/
   buttons.php_ method _setupButtonScripts()_ you have the line
 *     ```
       add_filter("mce_external_plugins", array(__CLASS__, '_addTinyMCEPlugin'));
       ```
   
 * it should be
 *     ```
       add_filter("mce_external_plugins", array($this, '_addTinyMCEPlugin'));
       ```
   
 * [http://wordpress.org/plugins/wp-easy-embed/](http://wordpress.org/plugins/wp-easy-embed/)

The topic ‘[PATCH] EasyEmbedButtons::_addTinyMCEPlugin() should not be called statically’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-easy-embed.svg)
 * [WP Easy Embed](https://wordpress.org/plugins/wp-easy-embed/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-easy-embed/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-easy-embed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-easy-embed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-easy-embed/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/patch-easyembedbuttons_addtinymceplugin-should-not-be-called-statically/)
 * Status: not resolved