Plugin zeigt Fehler an

Ich habe vor kurzem eine simple Minecraft-Seite über einen Start-Server erstellt, ein Plugin namens “Minestatus” installiert und diese Fehler bekommen. Genau der gleiche Fehler für ein anderes Plugin. Ich starte WP 3.19.4

Warning: Declaration of Minestatus_Widget::widget(array $args, $instance) should be compatible with WP_Widget::widget($args, $instance) in /data/web/virtuals/151993/virtual/www/domains/clashofcraft.eu/wp-content/plugins/minestatus/widget.php on line 6 Warning: Declaration of Minestatus_Widget::form(array $instance) should be compatible with WP_Widget::form($instance) in /data/web/virtuals/151993/virtual/www/domains/clashofcraft.eu/wp-content/plugins/minestatus/widget.php on line 6 

Unten ist der Code in widget.php

  'Server status', 'host' => 'server.yourserver.com', 'port' => '25565', 'show_status' => 'on', 'show_latency' => 'on', 'show_players_max' => 'on', 'show_players_online' => 'on', 'show_host' => 'on', 'show_ip' => 'on', 'show_port' => 'on', 'show_version' => 'on', 'show_protocol' => 'on', )); } /** * @param array $args * @param array $instance */ public function widget(array $args, $instance) { $instance = $this->hydrate($instance); // Get ip if localhost if (in_array($instance['host'], array('127.0.0.1', 'localhost'))) { $instance['host'] = $_SERVER['SERVER_ADDR']; } $client = new ApiClient($instance['host'], $instance['port']); $status = $client->call(); require dirname(__FILE__) . '/templates/widget.phtml'; } /** * @param array $instance * @return string|void */ public function form(array $instance) { $instance = $this->hydrate($instance); require dirname(__FILE__) . '/templates/form.phtml'; } /** * @param $newInstance * @param $oldInstance * @return array */ public function update($newInstance, $oldInstance) { $instance = array(); foreach ($newInstance as $option => $value) { if((int) $value > 0 && !in_array($option, array('host'))) { $value = (int) $value; } $instance[$option] = strip_tags(trim($value)); } return $instance; } } Widgetize::add('Minestatus_Widget'); 

Solutions Collecting From Web of "Plugin zeigt Fehler an"