• Hi

    Congratulations on creating the best social sharing buttons plugin!

    I am using a single button and I am displaying it via the shortcode method only. However, I get the following error on the ‘home’ page:

    Notice: Undefined property: wpsociallikes::$is_excerpt in /var/www/html/wp-content/plugins/wp-social-likes/wp-social-likes.php on line 281

    NOTICE: wp-content/plugins/wp-social-likes/wp-social-likes.php:281 - Undefined property: wpsociallikes::$is_excerpt
    require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/couponhut-child/template-custom-front-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, wpsociallikes->add_social_likes

    FYI, I also get this error

    [14-Jan-2018 16:37:57 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wpsociallikes has a deprecated constructor in /var/www/html/wp-content/plugins/wp-social-likes/wp-social-likes.php on line 31

    First I discovered the Social Likes jQuery page and integrated it into my wordpress site manually, which worked perfectly. I then found there was actually a WP plugin for it, so keen to switch over ??

    Many thanks in advance

Viewing 1 replies (of 1 total)
  • Open wp-social-likes.php

    replace this

    	function add_social_likes($content = '') {
    		global $post;

    to this

    	function add_social_likes($content = '') {
    		global $post;
    		
    		if (!property_exists($this, 'is_excerpt')) {
    			$this->is_excerpt = false;
    		}

    replace this
    function wpsociallikes() {
    to this

    function __construct() {

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined property: wpsociallikes::$is_excerpt’ is closed to new replies.