PHP error

kcfinder\browser::errorMsg(): Implicitly marking parameter $data as nullable is deprecated, the explicit nullable type must be used instead

/media/shnoulle/data/www/6/vendor/kcfinder/core/class/browser.php(910)

898         if ($template === null)
899             $template = $this->action;
900 
901         if (file_exists("tpl/tpl_$template.php")) {
902             ob_start();
903             require "tpl/tpl_$template.php";
904             return ob_get_clean();
905         }
906 
907         return "";
908     }
909 
910     protected function errorMsg($message, array $data=null) {
911         if (in_array($this->action, array("thumb", "upload", "download", "downloadDir")))
912             die($this->label($message, $data));
913         if (($this->action === null) || ($this->action == "browser"))
914             $this->backMsg($message, $data);
915         else {
916             $message = $this->label($message, $data);
917             die(json_encode(array('error' => $message)));
918         }
919     }
920 
921     protected function htmlData($str) {
922         return htmlentities((string) $str, null, strtoupper($this->charset));

Stack Trace

#0
+
 /media/shnoulle/data/www/6/vendor/kcfinder/core/autoload.php(28): require("/media/shnoulle/data/www/6/vendor/yiisoft/yii/framework/base/CAp...")
23     if ($ns == "kcfinder") {
24         $class = preg_replace("/[^_a-zA-Z0-9]/", "", $class);
25         if ($class == "uploader")
26             require "core/class/uploader.php";
27         elseif ($class == "browser")
28             require "core/class/browser.php";
29         elseif ($class == "minifier")
30             require "core/class/minifier.php";
31 
32         elseif (file_exists("core/types/$class.php"))
33             require "core/types/$class.php";
#1
+
 /media/shnoulle/data/www/6/vendor/kcfinder/browse.php(17): {closure:/media/shnoulle/data/www/6/vendor/kcfinder/core/autoload.php:15}(array("kcfinder", "browser"))
12   *      @link http://kcfinder.sunhater.com
13   */
14 
15 require "core/bootstrap.php";
16 $browser = "kcfinder\\browser"; // To execute core/bootstrap.php on older
17 $browser = new $browser();      // PHP versions (even PHP 4)
18 $browser->action();
19 
20 ?>
2026-04-10 16:19:08 nginx/1.26.3 Yii Framework/1.1.32