• Vineet

    (@vineettalwar)


    Following are the warnings thrown by super socializer after upgrading the server to PHP7.1

    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1108 - Illegal string offset 'horizontal_bg_color_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1111 - Illegal string offset 'horizontal_font_color_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1114 - Illegal string offset 'horizontal_border_width_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1116 - Illegal string offset 'horizontal_border_width_hover'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1122 - Illegal string offset 'horizontal_border_color_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1124 - Illegal string offset 'horizontal_font_color_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1130 - Illegal string offset 'horizontal_bg_color_hover'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1133 - Illegal string offset 'horizontal_font_color_hover'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1136 - Illegal string offset 'horizontal_border_color_hover'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1139 - Illegal string offset 'vertical_bg_color_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1142 - Illegal string offset 'vertical_font_color_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1145 - Illegal string offset 'vertical_border_width_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1147 - Illegal string offset 'vertical_border_width_hover'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1153 - Illegal string offset 'vertical_border_color_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1155 - Illegal string offset 'horizontal_font_color_default'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1161 - Illegal string offset 'vertical_bg_color_hover'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1164 - Illegal string offset 'vertical_font_color_hover'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1167 - Illegal string offset 'vertical_border_color_hover'
    WARNING: wp-content/plugins/super-socializer/super_socializer.php:1209 - Illegal string offset 'bottom_sharing_alignment'
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1108 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1111 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1114 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1116 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1122 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1124 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1130 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1133 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1136 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1139 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1142 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1145 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1147 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1153 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1155 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1161 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1164 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1167 - Uninitialized string offset: 0
    NOTICE: wp-content/plugins/super-socializer/super_socializer.php:1209 - Uninitialized string offset: 0
    

    originating from
    WP_Hook->apply_filters, the_champ_frontend_styles

    Could you please fix it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Vineet

    (@vineettalwar)

    I propose following fix in super-socializer/super_socializer.php:1186

    • Adding a not empty wrapper as following for theChampSharingOptions
    • This Remove all the 19 warnings and 19 notices.
    function the_champ_frontend_styles()
    {
    	global $theChampSharingOptions, $theChampGeneralOptions, $theChampLoginOptions, $theChampCounterOptions;
    	if (!empty($theChampSharingOptions)) {
    ......
      }
    }
    Plugin Contributor Heateor Support

    (@heateor)

    Plugin saves the default options when you activate the plugin first time after installing it. I don’t know why in your case there is not this initialization of plugin.
    Will look into it and make the changes in plugin if required.

    Thread Starter Vineet

    (@vineettalwar)

    Sure Looking forward for it .

    Thread Starter Vineet

    (@vineettalwar)

    Hey,
    Is there any update on it ?
    I can still see it in logs.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warnings on PHP 7.1 by WP_DEBUG’ is closed to new replies.