Welcome Guest, Not a member yet? Register   Sign In
Undefined function esc() in v4.5.8
#1

(This post was last modified: 03-10-2025, 08:06 AM by ozornick.)

with:
Code:
<title><?= esc($title ?? 'Default Title') ?></title>
get error after upgrading:
Code:
PHP Fatal error:  Uncaught Error: Call to undefined function esc() in /var/www/mvc/xa/app/Views/templates/xaHeader.php:7
Stack trace:
#0 {main}
  thrown in /var/www/mvc/xa/app/Views/templates/xaHeader.php on line 7
Any ideas why?
Reply
#2

You have updated incorrectly. The function should work correctly. Can you repeat the upgrade step by step or move your code to a clean install?
https://codeigniter4.github.io/userguide...ading.html
And please specify the version, 4.6.8 does not exist.
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply
#3

(This post was last modified: 03-10-2025, 06:48 AM by cadgiru.)

(03-10-2025, 04:51 AM)ozornick Wrote: You have updated incorrectly. The function should work correctly. Can you repeat the upgrade step by step or move your code to a clean install?
https://codeigniter4.github.io/userguide...ading.html
And please specify the version, 4.6.8 does not exist.

thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB