Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter\\Session\\Session and Psr\\Log\\LoggerAwareTrait define the same property
#1

Could anyone help me fix this error ?
<br />

Code:
<b>Fatal error</b>:  CodeIgniter\Session\Session and Psr\Log\LoggerAwareTrait define the same property ($logger) in the composition of CodeIgniter\Session\Session. However, the definition differs and is considered incompatible. Class was composed in <b>C:\inetpub\vhosts\testing.id\httpdocs\testing\system\Session\Session.php</b> on line <b>31</b><br />

{
    "title": "ErrorException",
    "type": "ErrorException",
    "code": 500,
    "message": "CodeIgniter\\Session\\Session and Psr\\Log\\LoggerAwareTrait define the same property ($logger) in the composition of CodeIgniter\\Session\\Session. However, the definition differs and is considered incompatible. Class was composed",
    "file": "C:\\inetpub\\vhosts\\testing.id\\httpdocs\\testing\\system\\Session\\Session.php",
    "line": 31,
    "trace": [
        {
            "function": "shutdownHandler",
            "class": "CodeIgniter\\Debug\\Exceptions",
            "type": "->"
        }
    ]
}
This happen when I try to init session inside model file in construct :


Code:
 User extends Model {


    protected $session;


    function __construct()
    {      
       $this->session = session();
        include APPPATH . 'ThirdParty/vendor/autoload.php';           
    }
Reply
#2

Hi! Can you show us the output of
Code:
composer info -D
Reply




Theme © iAndrew 2016 - Forum software by © MyBB