• Resolved paul buxbaum

    (@paul-buxbaum)


    Using php v5.59, debug.log shows:

    [11-Aug-2016 19:21:59 UTC] PHP Strict Standards: Non-static method TheSocialLinksFrontend::display() should not be called statically in /var/www/html/wp-content/plugins/the-social-links/includes/class-frontend.php on line 81

    Using php v7.08, debug.log strict message not seen.

    Using php v5.59, changing line 81:
    public static function shortcode
    to:
    public function shortcode

    removes debug.log message and shortcode appears to still function.

    https://ww.wp.xz.cn/plugins/the-social-links/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘php error – static method in class’ is closed to new replies.