Undefined function wptexturize()


Staff member
I'm really new to wordpress and I had just encountered this error:
Uncaught Error: Call to undefined function wptexturize() in /var/www/wp-admin/menu-header.php:141
I also tried checking on <a href="https://developer.wordpress.org/reference/functions/wptexturize/" rel="nofollow noreferrer">https://developer.wordpress.org/reference/functions/wptexturize/</a> and I had traced the callers and functions used by this wptexturize() to no avail.
The main issue seems to be that the function is undefined.
So I checked on the formatting.php file and there it was, clearly defined.
My guess is that the function is being called before it was even initialized. But please correct me if I am wrong.
If someone had encountered this issue before, I would really love to have some of your guidance on resolving this issue.
Thank you