php 5.3 errors |
[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?
[eluser]danmontgomery[/eluser]
Can you confirm that the session library is being loaded?
[eluser]Moddi[/eluser]
$autoload['libraries'] = array('database','session'); Its autoloaded
[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.
[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.
[eluser]Moddi[/eluser]
Im going to mail it to you, attaching the file there.
[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;
[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 |
Welcome Guest, Not a member yet? Register Sign In |