The widgets function need a __construct instead of the functions name.
Below an example of how it probably looks like
function social_media_widget() {
parent::__construct(false, $name = 'Social Media Widget' );
}
Change to something like this
function __construct() {
parent::__construct(false, $name = 'Social Media Widget' );
}
Let us know if this has solved your issue.
]]> /* Widget settings. */
$widget_ops = array(
‘classname’ => ‘sgwindow_socialicons’,
‘description’ => __(‘Display Social Media Links.’, ‘sg-window’ ));
/* Widget control settings. */
$control_ops = array(
‘width’ => 250,
‘height’ => 250,
‘id_base’ => ‘sgwindow_socialicons_widget’);
/* Create the widget. */
parent::__construct( ‘sgwindow_socialicons_widget’, __(‘SG Social Media Icons’, ‘sg-window’ ), $widget_ops, $control_ops );
Maybe it’s obvious, but again… amateur, so?
]]>try editing the code to:
function __construct() {
/* Widget settings. */
$widget_ops = array(
‘classname’ => ‘sgwindow_socialicons’,
‘description’ => __(‘Display Social Media Links.’, ‘sg-window’ ));
/* Widget control settings. */
$control_ops = array(
‘width’ => 250,
‘height’ => 250,
‘id_base’ => ‘sgwindow_socialicons_widget’);
/* Create the widget. */
parent::__construct( ‘sgwindow_socialicons_widget’, __(‘SG Social Media Icons’, ‘sg-window’ ), $widget_ops, $control_ops );
]]>
754 | WARNING | Function dl() is deprecated since PHP 5.3
754 | WARNING | Function dl() is deprecated since PHP 5.3
852 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
————————————————————————————————–
——————————————————————————————————————————————————————–
FILE: /home/thepubcl/public_html/wp-content/plugins/wysija-newsletters/helpers/bounce.php
—————————————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
—————————————————————————————–
63 | WARNING | Function dl() is deprecated since PHP 5.3
This is probably the same issue as the other widget, can you show me what is inside public_html/wp-content/plugins/wysija-newsletters/helpers/bounce.php?
]]>Looking for other
]]> if (function_exists(‘dl’)) {
//We will try to load it on the fly
$fatalMessage = ‘The system tried to load dynamically the ‘ . $EXTENSION . ‘ extension’;
$fatalMessage .= ‘<br/>If you see this message, that means the system could not load this PHP extension’;
$fatalMessage .= ‘<br/>Please enable the PHP Extension ‘ . $EXTENSION;
ob_start();
echo $fatalMessage;
//This method could cause a fatal error, but we will still display some messages in that case.
dl($EXTENSION);
$warnings = str_replace($fatalMessage, ”, ob_get_clean());
if (extension_loaded(‘imap’) OR function_exists(‘imap_open’))
return true;