CRITICAL - 2022-07-29 11:06:49 --> Array to string conversion #0 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Controllers\Account.php(146): CodeIgniter\Debug\Exceptions->errorHandler(8, 'Array to string...', 'C:\\wamp64\\www\\a...', 146, Array) #1 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(936): App\Modules\Backend\Controllers\Account->ajaxRequest('add-new-sub-acc...') #2 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(432): CodeIgniter\CodeIgniter->runController(Object(App\Modules\Backend\Controllers\Account)) #3 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(333): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #4 C:\wamp64\www\accounting-system-first\public\index.php(45): CodeIgniter\CodeIgniter->run() #5 {main} CRITICAL - 2022-07-29 11:21:47 --> Undefined variable: data #0 C:\wamp64\www\accounting-system-first\app\Controllers\BaseController.php(506): CodeIgniter\Debug\Exceptions->errorHandler(8, 'Undefined varia...', 'C:\\wamp64\\www\\a...', 506, Array) #1 C:\wamp64\www\accounting-system-first\app\Modules\Backend\Controllers\Account.php(74): App\Controllers\BaseController->renderPage(Array, Array, false, Array, Array) #2 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(936): App\Modules\Backend\Controllers\Account->index('new-account') #3 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(432): CodeIgniter\CodeIgniter->runController(Object(App\Modules\Backend\Controllers\Account)) #4 C:\wamp64\www\accounting-system-first\vendor\codeigniter4\framework\system\CodeIgniter.php(333): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #5 C:\wamp64\www\accounting-system-first\public\index.php(45): CodeIgniter\CodeIgniter->run() #6 {main}