• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please solve My error

#1
[eluser]Harish[/eluser]
Hi all,
i got error when i upload my whole pages on the server.
following error occur:
1. Unable to locate the model you have specified: clientmodel

please solve this issue.

#2
[eluser]InsiteFX[/eluser]
The error is telling you that it cannot find a model with that name.

When uploading to a live server make sure you upload with the option to have all filename lowercase, some web servers are case sensitive.

Check your model directory and see if that model is in there.

#3
[eluser]Harish[/eluser]
It can be work on the local server

#4
[eluser]InsiteFX[/eluser]
Did you set your config base_url to the new web sites url?

#5
[eluser]Harish[/eluser]
pls check
http://www.creatortechnology.com/lbt

ya set base_url. login page is opening.

#6
[eluser]Harish[/eluser]
I got this error:

1.
A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant client - assumed 'client'

Filename: models/login_model.php

Line Number: 35

2.A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/creatort/public_html/lbt/system/core/Exceptions.php:86)

Filename: helpers/url_helper.php

Line Number: 372

please tell me how to solve this error.

#7
[eluser]Nisha S.[/eluser]
It means you have used client instead of $client in your model. Is it?

#8
[eluser]Harish[/eluser]
actually client is a controller..

#9
[eluser]Nisha S.[/eluser]
Please copy the login model code. Also remove any space before or after php tag to remove the header already sent warning.

#10
[eluser]Harish[/eluser]
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/* Author: Jorge Torres
* Description: Login model class
*/
class Login_Model extends CI_Model{
function __construct(){
parent::__construct();
}

public function validate(){
// grab user input
$email = $this->security->xss_clean($this->input->post('email'));
$password = $this->security->xss_clean($this->input->post('password'));

// Prep the query
$this->db->where('email', $email);
$this->db->where('password', $password);

// Run the query
$query = $this->db->get('account');
// Let's check if there are any results
if($query->num_rows == 1)
{
// If there is a user, then create session data
$row = $query->row();
$data = array(
'id' => $row->id,
'usertype' => $row->usertype,
'email' => $row->email,
'validated' => true
);
if($row->usertype==1)
{

redirect(shop);
}

else
{
return false;

}

}

// If the previous process did not validate
// then return false.


}
}
?>

Its model...


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.