• Hi,
    I use your fantastic theme and I have an error I can’t solve…

    “Notice: La méthode du constructeur appelée pour WP_Widget dans hightide_homepage_default est obsolète depuis la version 4.3.0 ! Utilisez
    __construct()
    à la place. in /home/officeblkx/www/wp-includes/functions.php on line 3767”

    I can’t understand where I have to modify data…
    Thanks for your help !

Viewing 1 replies (of 1 total)
  • Theme Author TT Themes

    (@tomastoman)

    Hi,

    I am sorry, but this theme is no longer actively maintained and updated. There are minor compatibility issues with the latest WordPress version, but the mentioned notice should appear only if the WP_DEBUG constant in “wp-config.php” is set to “true”. It is not recommended to use WP_DEBUG or the other debug tools on live sites since they are meant for local testing and staging installs.

    To make the called constructor method for WP_Widget compatible with the latest WordPress version, please search for the following code in “hightide/functions/fe/widget-posts-default.php”:

    	function hightide_homepage_default() {
    		$widget_ops = array('classname' => 'homepage-default-posts', 'description' => __('Displays the latest posts from the selected category in the default manner. This widget is intended only for placing into the Latest Posts Homepage widget area.', 'hightide') );
    		$control_ops = array('width' => 200, 'height' => 400);
    		$this->WP_Widget('hightidedefault', __('HighTide Posts-Default', 'hightide'), $widget_ops, $control_ops);
    	}

    and edit it in this way:

    	function __construct() {
    		$widget_ops = array('classname' => 'homepage-default-posts', 'description' => __('Displays the latest posts from the selected category in the default manner. This widget is intended only for placing into the Latest Posts Homepage widget area.', 'hightide') );
    		$control_ops = array('width' => 200, 'height' => 400);
    		parent::__construct('hightidedefault', __('HighTide Posts-Default', 'hightide'), $widget_ops, $control_ops);
    	}

    Best regards,
    Tomas Toman

Viewing 1 replies (of 1 total)
  • The topic ‘Solve an error’ is closed to new replies.