i have Codeigniter v202, and php version 5.2.17 my site works just good in my local but in the server i keep getting this error message in everypage, message in error log is:
PHP Fatal error: Call to a member function cookie() on a non-object in /path/to/libraries/Session.php on line 138
and in page i have
A PHP Error was encountered
Severity: Notice
Message: Undefined property: MY_CONTROLLER_NAME::$input
Filename: libraries/Session.php
Line Number: 138
this is line 138:
$session = $this->CI->input->cookie($this->sess_cookie_name);
library is the original, i didnt make any changes on it. please help!