Undefined property: Config\Exceptions::$sensitiveDataInTrace |
Hi, I have a controller called Attributes which contains this index method:
PHP Code: public function index($attributeId = null) This is the structure of attributes/index: PHP Code: <?= $this->extend('admin/layout') ?> and the issue is generated from this line: `<?= form_hidden('id', isset($attribute->id) ? $attribute->id : null) ?>` which is available within form.php that is included in index.php: PHP Code: <div class="card"> As you can see the attribute is null 'cause I'm showing all the attributes without specify an id, but CI4 generate this error: Fatal error: Uncaught ErrorException: Undefined property: Config\Exceptions::$sensitiveDataInTrace in C:\xampp\htdocs\ci4-cicommerce\vendor\codeigniter4\framework\system\Debug\Exceptions.php:242 Stack trace: #0 C:\xampp\htdocs\ci4-cicommerce\vendor\codeigniter4\framework\system\Debug\Exceptions.php(242): CodeIgniter\Debug\Exceptions->errorHandler(8, 'Undefined prope...', 'C:\\xampp\\htdocs...', 242, Array) #1 C:\xampp\htdocs\ci4-cicommerce\vendor\codeigniter4\framework\system\Debug\Exceptions.php(225): CodeIgniter\Debug\Exceptions->collectVars(Object(ErrorException), 500) #2 C:\xampp\htdocs\ci4-cicommerce\vendor\codeigniter4\framework\system\Debug\Exceptions.php(232): CodeIgniter\Debug\Exceptions->CodeIgniter\Debug\{closure}() #3 C:\xampp\htdocs\ci4-cicommerce\vendor\codeigniter4\framework\system\Debug\Exceptions.php(116): CodeIgniter\Debug\Exceptions->render(Object(ErrorException), 500) #4 C:\xampp\htdocs\ci4-cicommerce\vendor\codeigniter4\framework\system\Debug\Exceptions.php(158): CodeIgniter\Debug\Exceptions->exceptio in C:\xampp\htdocs\ci4-cicommerce\vendor\codeigniter4\framework\system\Debug\Exceptions.php on line 242
(11-23-2021, 02:39 AM)kenjis Wrote: See https://forum.codeigniter.com/thread-805...ataInTrace Thanks sir, This is work like a charm |
Welcome Guest, Not a member yet? Register Sign In |