Message: Creation of dynamic property CI_URI::$config is deprecated Codeigniter [ERROR]

Поделиться
HTML-код
  • Опубликовано: 8 авг 2023
  • Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface:
    An uncaught Exception was encountered Type: Error Message: Call to undefined function each()
    PHP 8.2 Dynamic Properties Deprecated: how to use them anyway in a compatible way
    Message: Creation of dynamic property CI_URI::$config
    As suggested by ADyson, the solution is to use the #[AllowDynamicProperties] attribute just above the class definition.
    Message: Undefined property: CI_DB_mysqli_driver::$query
    Message: Undefined property: CI_Loader::$uri
    jika kalian mendapatkan error seperti ini kalian bisa menambahkan code : #[\AllowDynamicProperties] pada bagian sebagai berikut :
    1. Buka File : C:\xampp\htdocs\app-spp\system\core\URI.php
    tambahkan : #[\AllowDynamicProperties]
    sebelum baris : class CI_URI {
    2. Buka File : C:\xampp\htdocs\app-spp\system\core\Router.php
    tambahkan : #[\AllowDynamicProperties]
    sebelum baris : class CI_Router {
    3. Buka File : C:\xampp\htdocs\app-spp\system\core\Controller.php
    tambahkan : #[\AllowDynamicProperties]
    sebelum baris : class CI_Controller {
    4. Buka File : C:\xampp\htdocs\app-spp\system\database\DB_driver.php
    tambahkan : #[\AllowDynamicProperties]
    sebelum baris : abstract class CI_DB_driver {
    5. Buka File : C:\xampp\htdocs\app-spp\system\core\Loader.php
    tambahkan : #[\AllowDynamicProperties]
    sebelum baris : class CI_Loader {
    Semoga dapat membantu
    Terimakasih
  • ХоббиХобби

Комментарии • 17