Я использую Codeigniter 3 HMVC с PHP 8.2 и получаю ошибку нижеPhp

Кемеровские программисты php общаются здесь
Anonymous
Я использую Codeigniter 3 HMVC с PHP 8.2 и получаю ошибку ниже

Сообщение Anonymous »


A PHP Error was encountered

Severity: Deprecated Notice

Message: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated

Filename: MX/Controller.php

Line Number: 46

Backtrace:

file: /applications/xampp/xamppfiles/htdocs/titan/plus_app/third_party/mx/controller.phpline: 46function: str_replace
file: файл: /Applications/XAMPP/xamppfiles/htdocs/titan/plus_app/modules/home/controllers/Home.php
Line: 6
Function: __construct

File: /Applications/XAMPP/xamppfiles/htdocs/titan/index.php
Line: 315


Function: require_once < /p>
< /blockquote>
class MX_Controller
{
public $autoload = array();

public function __construct()
{
$class = str_replace(CI::$APP->config->item('controller_suffix'), '', get_class($this));
log_message('debug', $class." MX_Controller Initialized");
Modules::$registry[strtolower($class)] = $this;

/* copy a loader instance and initialize */
$this->load = clone load_class('Loader');
$this->load->initialize($this);

/* autoload module items */
$this->load->_autoloader($this->autoload);
}

public function __get($class)
{
return CI::$APP->$class;
}
}


Подробнее здесь: https://stackoverflow.com/questions/794 ... elow-error

Вернуться в «Php»