Call to undefined function WriteHeader()

I have the following problem. When generating a project, all pages have this error when trying to access them:

Fatal error: Uncaught Error: Call to undefined function PHPMaker2020\project1\WriteHeader() in C:\wamp64\www\phpmaker\cadastro_medidasdelete.php on line 17
( ! ) Error: Call to undefined function PHPMaker2020\project1\WriteHeader() in C:\wamp64\www\phpmaker\cadastro_medidasdelete.php on line 17

How can I solve this?

Thankful!

WriteHeader() is a function in phpfn.php, make sure you have run composer update and uploaded all files (including phpfn.php).

You may click Tools → Delete Template Cache and generate all files again.

Hello! How do I check this: “WriteHeader() is a function in phpfn.php, make sure you have run composer update and uploaded all files (including phpfn.php).”?

Does this file have to be inside the folder where I generated the project files with PHPMAKER?
Thanks!

Did you run composer update? If you do not know what it is, you may read this first:
https://discourse.hkvstore.com/t/migrating-to-v2022/655/1