![]() |
PHP 5.3: Undefined property: CI_Loader::$input - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: PHP 5.3: Undefined property: CI_Loader::$input (/showthread.php?tid=20167) |
PHP 5.3: Undefined property: CI_Loader::$input - El Forum - 06-30-2009 [eluser]heat23[/eluser] I am running CI 1.7.1 and I just upgraded from PHP 4.4 to PHP 5.3 (released today) and I am getting this error: Undefined property: CI_Loader::$input Code: A PHP Error was encountered Line 20 contains: Code: rules' => 'trim|required|currentPasswordCheck['.$this->input->post('current_password').']' Any ideas what is wrong? I am also getting messages: PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\www\web\system\libraries\Log.php on line 89 PHP 5.3: Undefined property: CI_Loader::$input - El Forum - 06-30-2009 [eluser]heat23[/eluser] I fixed it! I added this->CI =& get_instance(); to the top of the file and changed $this->input to $this->CI->input... Any ideas with the timezone warnings? PHP 5.3: Undefined property: CI_Loader::$input - El Forum - 06-30-2009 [eluser]jdfwarrior[/eluser] [quote author="heat23" date="1246406074"]I fixed it! I added this->CI =& get_instance(); to the top of the file and changed $this->input to $this->CI->input... Any ideas with the timezone warnings?[/quote] i've gotten those several times in the past and just used the date_timezone_set function (link) to fix it I believe Or maybe it was Code: date_default_timezone_set("America/Chicago"); Something like that |