Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7684815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:06:50+00:00 2026-05-31T19:06:50+00:00

After moving to the new server, I’m getting plenty of such notifications: A PHP

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:06:51+00:00Added an answer on May 31, 2026 at 7:06 pm

    this is probably because you have the server hash set to non portable..

    Lines 13-23 in application/config/tank_auth.php

    /*
    |--------------------------------------------------------------------------
    | Security settings
    |
    | The library uses PasswordHash library for operating with hashed passwords.
    | 'phpass_hash_portable' = Can passwords be dumped and exported to another server. If set to FALSE then you won't be able to use this database on another server.
    | 'phpass_hash_strength' = Password hash strength.
    |--------------------------------------------------------------------------
    */
    ## Set this to TRUE
    $config['phpass_hash_portable'] = FALSE;
    $config['phpass_hash_strength'] = 8;
    

    Lines 203-235 of application/libraries/phpass-0.1/PasswordHash.php

    just in case you were curious where this config comes into play, its in the blowfish hash creation:

    function HashPassword($password)
    {
        $random = '';
    
        if (CRYPT_BLOWFISH == 1 && !$this->portable_hashes) {
            $random = $this->get_random_bytes(16);
            $hash =
                crypt($password, $this->gensalt_blowfish($random));
            if (strlen($hash) == 60)
                return $hash;
        }
    
        if (CRYPT_EXT_DES == 1 && !$this->portable_hashes) {
            if (strlen($random) < 3)
                $random = $this->get_random_bytes(3);
            $hash =
                crypt($password, $this->gensalt_extended($random));
            if (strlen($hash) == 20)
                return $hash;
        }
    
        if (strlen($random) < 6)
            $random = $this->get_random_bytes(6);
        $hash =
            $this->crypt_private($password,
            $this->gensalt_private($random));
        if (strlen($hash) == 34)
            return $hash;
    
        # Returning '*' on error is safe here, but would _not_ be safe
        # in a crypt(3)-like function used _both_ for generating new
        # hashes and for validating passwords against existing hashes.
        return '*';
    }
    

    If that doesn’t fix the problem

    try print_r($user); what comes back?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an issue after moving to a new server where my WordPress htaccess
I've just migrated to a new server, still linux based. After moving I saw
I get the following error after moving aspx page to some folder. Error: Unhandled
I am moving a SQL Server 2005 database to a new server using a
I received my new computer friday and after moving over all of my development
After moving to .NET 2.0+ is there ever a reason to still use the
After migrating magento from one to another hosting with different domain, I'm getting one
I am migrating websites to a new server and one site that is using
After moving a project from .NET 1.1 to .NET 2.0, MsBuild emits lots of
I am moving an old asp classic (sigh...) local website to a new IIS7.5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.