Pinterest Master
[resolved] [PATCH] non-static method warning (4 posts)

  1. flynsarmy
    Posted 2 years ago #

    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) {


    public static function techgasp_pinterestmaster_link($links, $file) {


  2. TechGasp
    Plugin Author

    Posted 2 years ago #

    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.

  3. flynsarmy
    Posted 2 years ago #

    They're turned on by default in WP3.6 I believe

  4. TechGasp
    Plugin Author

    Posted 2 years ago #

    We are running WP latest version.
    Under the impression that since php.ini is website server configuration, wordpress only reports what is set there.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pinterest Master
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.