Jump to content

Validation error


supa_mike

Recommended Posts

Hey guys

 

I'm quite new at PHP and i just inherited this application from the developer (Who has apparently also left the developer company  ::) )

Well, i managed to transfer it from the original server to the new application server. However, i get this strange error when i change the computer name of the host

E.G the computer name of the original server was test-server.local and the computer name of the new application server is production-server.local, then i get a login validation error

 

Does anyone know how i can go around this?

 

below is the login.php script

 

function validate_credentials()
    {
        // fieldname, error message, validation rules
        $this->form_validation->set_rules('username','Username','trim|required');
        $this->form_validation->set_rules('password','Password','trim|required');
 
        if($this->form_validation->run() == FALSE)
        {
          $this->index();
            
        }
 
        else{
            
            $this->load->model('membership');
            $query = $this->membership->validate();
 
            if($query)
            {
                $this->load->model('user_details');
                $data = $this->user_details->userdetails();
 
                $this->session->set_userdata($data);
                redirect('welcome');
            }
            else{
                $this->index();
            }
        }
    }
Link to comment
Share on other sites

Hi, please use code tags around any code posted.  You will need to show the relevent parts of the class, if your not sure what they are, post up the full class.  An explination and example of the actual error as it is displayed on the screen/found in the log file should also be provided when possible.

 

Are the database credentials the same on both servers? have you altered them at all?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.