Title: [PATCH] non-static method warning
Last modified: August 21, 2016

---

# [PATCH] non-static method warning

 *  Resolved [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/patch-non-static-method-warning/)
 * With WP_DEBUG page your plugin causes a bunch of warnings on the plugin list 
   page in admin:
    Strict standards: call_user_func_array() expects parameter 1 
   to be a valid callback, non-static method techgasp_pinterestmaster::techgasp_pinterestmaster_link()
   should not be called statically in /path/to/wp-includes/plugin.php on line 173
 * Easy enough fix. In _techgasp-pinterestmaster.php_ on line 109 change
 *     ```
       public function techgasp_pinterestmaster_link($links, $file) {
       ```
   
 * to
 *     ```
       public static function techgasp_pinterestmaster_link($links, $file) {
       ```
   
 * [http://wordpress.org/plugins/pinterest-master/](http://wordpress.org/plugins/pinterest-master/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [TechGasp](https://wordpress.org/support/users/techgasp/)
 * (@techgasp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/patch-non-static-method-warning/#post-4181750)
 * Thanks for reporting flynsarmy.
    Our WP_DEBUG is obviously ON in our development
   wordpress installation but the php.ini error_reportin is not showing strict standards.
   Will take a look and release a new version.
 *  Thread Starter [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/patch-non-static-method-warning/#post-4181751)
 * They’re turned on by default in WP3.6 I believe
 *  Plugin Author [TechGasp](https://wordpress.org/support/users/techgasp/)
 * (@techgasp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/patch-non-static-method-warning/#post-4181752)
 * We are running WP latest version.
    Under the impression that since php.ini is
   website server configuration, wordpress only reports what is set there.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[PATCH] non-static method warning’ is closed to new replies.

 * ![](https://ps.w.org/pinterest-master/assets/icon-256x256.png?rev=1052760)
 * [TechGasp Pin Master](https://wordpress.org/plugins/pinterest-master/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pinterest-master/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pinterest-master/)
 * [Active Topics](https://wordpress.org/support/plugin/pinterest-master/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pinterest-master/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pinterest-master/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [TechGasp](https://wordpress.org/support/users/techgasp/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/patch-non-static-method-warning/#post-4181752)
 * Status: resolved