Call to undefined method setupApiRequest()

All pages call me the setupApiRequest () method. But going to search among the files is not generated. I also tried to update the template both from the application and by downloading it manually. And I cleared the template cache. I don’t know what else to do.

You have old scripts. Click Tools → Update Template and generate all scripts again.

When the program asks “New template found. Replace C:\Program Files (x86)\PHPMaker 2020\template\php20200.zip”, make sure you answer “OK”.

I solved it, I was using an extension that was going to overwrite the page-class-init.php file. I modified the extension and now it works. Thanks for the help.