Creation of dynamic property CI_Router::$uri is deprecated Filename: core/Router.php

error in CodeIgniter website after update php 7.4 to php 8.2

how to resolve error CodeIgniter website error PHP Warning Deprecated: Creation of dynamic property is deprecated

Adding this just above the class{ will fix it:




class CI_URI {



class CI_Router {



class CI_Loader {



class CI_Controller {   



abstract class CI_DB_driver {

Contact for Website Development, Ecommerce Website, Website Management, SEO, Digital Marketing Services, Server (AWS, Google, Godaddy, DigitalOcean etc) Management, Online Class, Web Development. Email :, Mobile : +91-9555699081

Leave a Reply