Support » Plugin: WP Socializer » Annoying notices on debug mode

  • Hi.

    I’m developing a web site with your WP Socializer v2.4.7 plugin installed and activated. I have defined some constants to debug my code, and I found that wp-socializer echoes a lot of PHP Notices.

    My debug related constants are these:

    * For developers: WordPress debugging mode.
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.
    // Debug logging to the /wp-content/debug.log file
    // Display of errors and warnings
    // Use dev versions of core JS and CSS files (only needed if you are modifying these core files)

    And the Notices says:

    Notice: Undefined index: in .../wp-content/plugins/wp-socializer/includes/wpsr-socialbuttons.php on line 196

    For lines 196 to 199. The lines code is:

    $finalName = $wpsr_socialsites_list[$sitename]['name'];
    $finalTitle = trim(str_replace($to_be_replaced, $replace_with, $wpsr_socialsites_list[$sitename]['titleText']));
    $finalUrl = str_replace($to_be_replaced, $replace_with, $wpsr_socialsites_list[$sitename]['url']);
    $finalIcon = $imgpath . $wpsr_socialsites_list[$sitename]['icon'];

    I think $sitename is empty. May this happen because a previous variable named $services has its empty default value?

    I like your plugin but this annoying error makes the developing time a bit unpleasant.

    Thanks for your time.

  • The topic ‘Annoying notices on debug mode’ is closed to new replies.