![]() |
Undefined property: Config\Exceptions::$sensitiveDataInTrace - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Undefined property: Config\Exceptions::$sensitiveDataInTrace (/showthread.php?tid=80623) |
Undefined property: Config\Exceptions::$sensitiveDataInTrace - sfarzoso - 11-23-2021 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 RE: Undefined property: Config\Exceptions::$sensitiveDataInTrace - kenjis - 11-23-2021 See https://forum.codeigniter.com/thread-80522.html?highlight=sensitiveDataInTrace RE: Undefined property: Config\Exceptions::$sensitiveDataInTrace - firdaus.rizki - 12-31-2021 (11-23-2021, 02:39 AM)kenjis Wrote: See https://forum.codeigniter.com/thread-80522.html?highlight=sensitiveDataInTrace Thanks sir, This is work like a charm |