• The default language of any content posted is English.
Inilabs School Express: School Management System Codecanyon

Inilabs School Express: School Management System Codecanyon 5.2 NULLED

When i trying to login second time i got this error

An uncaught Exception was encountered​

Type: mysqli_sql_exception

Message: Duplicate entry '0' for key 'PRIMARY'

Filename: D:\xampp\htdocs\main\database\drivers\mysqli\mysqli_driver.php

Line Number: 305

Backtrace:

File: D:\xampp\htdocs\mvc\core\MY_Model.php
Line: 187
Function: insert

File: D:\xampp\htdocs\mvc\models\Loginlog_m.php
Line: 38
Function: insert

File: D:\xampp\htdocs\mvc\controllers\Signin.php
Line: 288
Function: insert_loginlog

File: D:\xampp\htdocs\mvc\controllers\Signin.php
Line: 237
Function: _loginLog

File: D:\xampp\htdocs\mvc\controllers\Signin.php
Line: 113
Function: _signInManager

File: D:\xampp\htdocs\index.php
Line: 321
Function: require_once


How can i solve it? can someone help me?
 
I solved My problem
File location: D:\xampp\htdocs\mvc\models\Loginlog_m.php

Change this file contain with bellow code :)

<?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}

class Loginlog_m extends MY_Model
{

protected $_table_name = 'loginlog';
protected $_primary_key = 'loginlogID';
protected $_primary_filter = 'intval';
protected $_order_by = "loginlogID asc";

public function __construct()
{
parent::__construct();
}

public function get_loginlog($array = null, $signal = false)
{
return parent::get($array, $signal);
}

public function get_order_by_loginlog($array = null)
{
return parent::get_order_by($array);
}

public function get_single_loginlog($array = null)
{
return parent::get_single($array);
}

public function insert_loginlog($array)
{
try {
parent::insert($array);
return true;
} catch (Exception $e) {
// Log the error or handle it as needed
// For example, you can show a user-friendly message
// echo 'Error: ' . $e->getMessage();
return false;
}
}

public function update_loginlog($data, $id = null)
{
parent::update($data, $id);
return $id;
}

public function delete_loginlog($id)
{
parent::delete($id);
}
}
 
I solved My problem
File location: D:\xampp\htdocs\mvc\models\Loginlog_m.php

Change this file contain with bellow code :)

<?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}

class Loginlog_m extends MY_Model
{

protected $_table_name = 'loginlog';
protected $_primary_key = 'loginlogID';
protected $_primary_filter = 'intval';
protected $_order_by = "loginlogID asc";

public function __construct()
{
parent::__construct();
}

public function get_loginlog($array = null, $signal = false)
{
return parent::get($array, $signal);
}

public function get_order_by_loginlog($array = null)
{
return parent::get_order_by($array);
}

public function get_single_loginlog($array = null)
{
return parent::get_single($array);
}

public function insert_loginlog($array)
{
try {
parent::insert($array);
return true;
} catch (Exception $e) {
// Log the error or handle it as needed
// For example, you can show a user-friendly message
// echo 'Error: ' . $e->getMessage();
return false;
}
}

public function update_loginlog($data, $id = null)
{
parent::update($data, $id);
return $id;
}

public function delete_loginlog($id)
{
parent::delete($id);
}
}
how to make it null bro?
 
Top