Call to undefined function - still need help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Call to undefined function - still need help (/showthread.php?tid=90863) |
Call to undefined function - still need help - nanohe - 05-14-2024 Hi there, Good day. My Code worked on CI V4.4.3. On my MacOS env it works quite well. Mamp Pro with PHP V8.2.0 When I deployed to my local CentOS V7 with PHP V8.2.16. But my app doesn't work on CentOS now. Error. Call to undefined function display_error() I already googled some articles and solutions, but these information don't work on my situation. My code as below, view page: the last line is <small class="text-danger"><?= isset($validation) ? display_error($validation, 'email') : '' ?></small>, the erro function trigged from there. Code: <form action="<?= base_url('auth/check') ?>" method="post" autocomplete="off"> And my controller as this, Code: class AuthController extends BaseController I also tested add the help in BaseController as below since I found one post suggested as this way. Code: protected $request; All of these methods don't work. Could anyone give me other suggestion? thank you so much. Best Regards. Nano HE. RE: Call to undefined function - still need help - kenjis - 05-14-2024 What is the function display_error()? There is no such function in PHP or CodeIgniter. RE: Call to undefined function - still need help - nanohe - 05-14-2024 (05-14-2024, 09:16 PM)kenjis Wrote: What is the function display_error()? It comes from ci/app/Helpers/Form_helper.php Code: <?php RE: Call to undefined function - still need help - kenjis - 05-14-2024 The Form helper file must be "form_helper.php". See https://codeigniter.com/user_guide/general/helpers.html#loading-a-helper RE: Call to undefined function - still need help - nanohe - 05-14-2024 (05-14-2024, 09:36 PM)kenjis Wrote: The Form helper file must be "form_helper.php". Thanks a lot. it works now. I need read the guide more detail and carefully. Best Regards NanoHE. |