
【現象】
PHP7系のサーバーでウィジウィグのサーバーブラウザにアクセスしようとしたときエラーが発生。
エラーがこちら
The each() function is deprecated. This message will be suppressed on further calls PHP 7.2 [duplicate]
【原因】
PHP7.2からeach()が非推奨となったため。
【解決案】
kcfinder/lib/class_image.php 118行目付近を修正
} elseif (is_array($image)) { // list($key, $width) = each($image); //コメントアウト // list($key, $height) = each($image); //コメントアウト //***** ↓追記↓*****// $width = $image[0]; $height = $image[1]; //********************// $img = $this->getBlankImage($width, $height); } else