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
https://forums.phpfreaks.com/topic/280981-validation-error/
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
https://forums.phpfreaks.com/topic/280981-validation-error/#findComment-1444128
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.