After moving to the new server, I’m getting plenty of such notifications:
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: account/settings.php
Line Number: 28
account/settings.php view @line 28 content is:
echo $user->description;
Everywhere, the error appear I’m trying to get the info from the $user variable.
I guess its related to the tank_auth: I’m passing $user data trough the controller:
$data['user'] = $this->tank_auth->user();
[..]
$this->load->view('account/settings', $data);
… and I’m logged in.
My directories path is exactly the same as on the earlier server.
Where is the problem?
this is probably because you have the server hash set to non portable..
Lines 13-23 in
application/config/tank_auth.phpLines 203-235 of
application/libraries/phpass-0.1/PasswordHash.phpjust in case you were curious where this config comes into play, its in the blowfish hash creation:
If that doesn’t fix the problem
try
print_r($user);what comes back?