php 5.3 errors - 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 errors (/showthread.php?tid=27630) Pages:
1
2
|
php 5.3 errors - El Forum - 02-16-2010 [eluser]Moddi[/eluser] one.com release php 5.3 last night i got these errors now. Undefined property: CI_Loader::$session and Fatal error: Call to a member function userdata() on a non-object in visit www.dack4.se to see the errors alive. On line 126: Code: <?php Anyone know how i can fix it? Codeigniter version: 1.7.2 well what more do u wanna know so that i can add it? php 5.3 errors - El Forum - 02-16-2010 [eluser]danmontgomery[/eluser] Can you confirm that the session library is being loaded? php 5.3 errors - El Forum - 02-16-2010 [eluser]Moddi[/eluser] $autoload['libraries'] = array('database','session'); Its autoloaded php 5.3 errors - El Forum - 02-16-2010 [eluser]Sbioko[/eluser] Because you use CI in view. Maybe, you didn't send CI's object to view correctly. I need to see your views/header.php file. php 5.3 errors - El Forum - 02-16-2010 [eluser]Moddi[/eluser] Heres the header file, i attached it. php 5.3 errors - El Forum - 02-16-2010 [eluser]Sbioko[/eluser] As I thought. And, I also need the code of your controller and I'll definitely help you. I think it is not about PHP 5.3. php 5.3 errors - El Forum - 02-16-2010 [eluser]Moddi[/eluser] Im going to mail it to you, attaching the file there. php 5.3 errors - El Forum - 02-16-2010 [eluser]Sbioko[/eluser] Ok. php 5.3 errors - El Forum - 02-16-2010 [eluser]John_Betong[/eluser] [quote author="Moddi" date="1266356989"]one.com release php 5.3 last night i got these errors now. Undefined property: CI_Loader::$session and Fatal error: Call to a member function userdata() on a non-object in visit www.dack4.se to see the errors alive. On line 126: Code: <?php Anyone know how i can fix it? Codeigniter version: 1.7.2 well what more do u wanna know so that i can add it?[/quote] Try this: Code: $mess = isset($this->session->userdata('mess')) ? $this->session->userdata('mess') : ''; *nbsp; php 5.3 errors - El Forum - 02-17-2010 [eluser]Moddi[/eluser] [quote author="John_Betong" date="1266394615"][quote author="Moddi" date="1266356989"]one.com release php 5.3 last night i got these errors now. Undefined property: CI_Loader::$session and Fatal error: Call to a member function userdata() on a non-object in visit www.dack4.se to see the errors alive. On line 126: Code: <?php Anyone know how i can fix it? Codeigniter version: 1.7.2 well what more do u wanna know so that i can add it?[/quote] Try this: Code: $mess = isset($this->session->userdata('mess')) ? $this->session->userdata('mess') : ''; *nbsp;[/quote] I got this error when i tried what u said Fatal error: Can't use method return value in write context in |