• Resolved Keltography

    (@keltography)


    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /var/www/html/wordpress/wp-includes/functions.php on line 3457

    and…
    Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/html/wordpress/wp-admin/includes/translation-install.php on line 59.

    The “Ultimate Tables” plug-in seems to be the culprit, but it looks like that plug-in is no longer supported. Is there an easy tweak to the code in the plug-in that I can try rather than having to start from scratch after finding another plug-in?

Viewing 3 replies - 1 through 3 (of 3 total)
  • As far as that message, I went into wp-config and changed true to false under debugging and that got the error message to go away.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Sure, here’s how you would fix the Ultimate Tables plugin.

    Change this code:

    class wp_ultimatetables extends WP_Widget {
    	function wp_ultimatetables() {
    		$widget_ops = array('classname' => 'wp_ultimatetables', 'description' => 'Select the table to show.' );
    		$this->WP_Widget('wp_ultimatetables', 'ULTIMATE TABLES', $widget_ops);
    	}

    to this:

    class wp_ultimatetables extends WP_Widget {
    	function __construct() {
    		$widget_ops = array('classname' => 'wp_ultimatetables', 'description' => 'Select the table to show.' );
    		parent::__construct('wp_ultimatetables', 'ULTIMATE TABLES', $widget_ops);
    	}

    Basically, you need to replace the old style constructors with the new ones which are PHP 7 compatible.

    Thread Starter Keltography

    (@keltography)

    Thanks Samuel! It seems to have worked!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Errors After 4.3 Update’ is closed to new replies.