CRITICAL - 2022-08-04 14:33:13 --> Duplicate entry '0' for key 'sub_account_code' #0 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\Database\MySQLi\Connection.php(314): mysqli->query('INSERT INTO `am...') #1 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\Database\BaseConnection.php(713): CodeIgniter\Database\MySQLi\Connection->execute('INSERT INTO `am...') #2 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\Database\BaseConnection.php(641): CodeIgniter\Database\BaseConnection->simpleQuery('INSERT INTO `am...') #3 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\Database\BaseBuilder.php(2263): CodeIgniter\Database\BaseConnection->query('INSERT INTO `am...', Array, false) #4 C:\wamp64\www\accounting-system-first\app\Libraries\CrudQuery.php(37): CodeIgniter\Database\BaseBuilder->insert(Array) #5 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(468): App\Libraries\CrudQuery->create('ams_modules_acc...', Array) #6 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(254): App\Modules\Backend\Models\AccountModel->createSubAccountUnderMainAccount(2) #7 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(207): App\Modules\Backend\Models\AccountModel->newAccountTypeDecision('update', 'tMRiLC1VzPH6Taf') #8 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Controllers\Account.php(37): App\Modules\Backend\Models\AccountModel->submitValidation('tMRiLC1VzPH6Taf') #9 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(936): App\Modules\Backend\Controllers\Account->index('edit-account', 'tMRiLC1VzPH6Taf') #10 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(432): CodeIgniter\CodeIgniter->runController(Object(App\Modules\Backend\Controllers\Account)) #11 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(333): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #12 C:\wamp64\www\accounting-system-first\public\index.php(45): CodeIgniter\CodeIgniter->run() #13 {main} CRITICAL - 2022-08-04 15:06:57 --> Undefined variable: subAccountId #0 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(508): CodeIgniter\Debug\Exceptions->errorHandler(8, 'Undefined varia...', 'C:\\wamp64\\www\\a...', 508, Array) #1 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(255): App\Modules\Backend\Models\AccountModel->createSubAccountUnderMainAccount('1') #2 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(207): App\Modules\Backend\Models\AccountModel->newAccountTypeDecision('update', 'TSafQcSJRr6InNL') #3 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Controllers\Account.php(37): App\Modules\Backend\Models\AccountModel->submitValidation('TSafQcSJRr6InNL') #4 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(936): App\Modules\Backend\Controllers\Account->index('edit-account', 'TSafQcSJRr6InNL') #5 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(432): CodeIgniter\CodeIgniter->runController(Object(App\Modules\Backend\Controllers\Account)) #6 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(333): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #7 C:\wamp64\www\accounting-system-first\public\index.php(45): CodeIgniter\CodeIgniter->run() #8 {main} CRITICAL - 2022-08-04 15:07:01 --> Undefined variable: subAccountId #0 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(508): CodeIgniter\Debug\Exceptions->errorHandler(8, 'Undefined varia...', 'C:\\wamp64\\www\\a...', 508, Array) #1 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(255): App\Modules\Backend\Models\AccountModel->createSubAccountUnderMainAccount('1') #2 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(207): App\Modules\Backend\Models\AccountModel->newAccountTypeDecision('update', 'TSafQcSJRr6InNL') #3 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Controllers\Account.php(37): App\Modules\Backend\Models\AccountModel->submitValidation('TSafQcSJRr6InNL') #4 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(936): App\Modules\Backend\Controllers\Account->index('edit-account', 'TSafQcSJRr6InNL') #5 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(432): CodeIgniter\CodeIgniter->runController(Object(App\Modules\Backend\Controllers\Account)) #6 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(333): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #7 C:\wamp64\www\accounting-system-first\public\index.php(45): CodeIgniter\CodeIgniter->run() #8 {main} CRITICAL - 2022-08-04 15:08:03 --> Undefined variable: totalTime #0 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\Debug\Toolbar\Views\toolbar.tpl.php(41): CodeIgniter\Debug\Exceptions->errorHandler(8, 'Undefined varia...', 'C:\\wamp64\\www\\a...', 41, Array) #1 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\Debug\Toolbar.php(456): include('C:\\wamp64\\www\\a...') #2 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\Debug\Toolbar.php(413): CodeIgniter\Debug\Toolbar->format(Array, 'html') #3 C:\wamp64\www\accounting-system-first\app\Config\Events.php(44): CodeIgniter\Debug\Toolbar->respond() #4 [internal function]: CodeIgniter\Events\Events::Config\{closure}() #5 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\Events\Events.php(166): call_user_func(Object(Closure)) #6 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(314): CodeIgniter\Events\Events::trigger('pre_system') #7 C:\wamp64\www\accounting-system-first\public\index.php(45): CodeIgniter\CodeIgniter->run() #8 {main} CRITICAL - 2022-08-04 15:26:56 --> Undefined property: stdClass::$account_name #0 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(489): CodeIgniter\Debug\Exceptions->errorHandler(8, 'Undefined prope...', 'C:\\wamp64\\www\\a...', 489, Array) #1 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(256): App\Modules\Backend\Models\AccountModel->createSubAccountUnderMainAccount('1') #2 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Models\AccountModel.php(207): App\Modules\Backend\Models\AccountModel->newAccountTypeDecision('update', 'tMRiLC1VzPH6Taf') #3 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Controllers\Account.php(37): App\Modules\Backend\Models\AccountModel->submitValidation('tMRiLC1VzPH6Taf') #4 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(936): App\Modules\Backend\Controllers\Account->index('edit-account', 'tMRiLC1VzPH6Taf') #5 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(432): CodeIgniter\CodeIgniter->runController(Object(App\Modules\Backend\Controllers\Account)) #6 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(333): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #7 C:\wamp64\www\accounting-system-first\public\index.php(45): CodeIgniter\CodeIgniter->run() #8 {main}