Faced this issue and none of the solutions mentioned online actually helped: Using Cake php all my project was working perfectly fine on a local windows machine but not working on a linux server and I was presented with this error:
Missing Helper Error: HTMLHelper could not be found. Error: Create the class HTMLHelper below in file: app/View/Helper/HTMLHelper.php <?php class HTMLHelper extends AppHelper { }
Eventually I found out that I wasn’t missing any helpers but the issue was in the ctp file and the different ways Linux and Windows read that file. I will write the answer below
Advertisement
Answer
The way this was solved was by changing these:
$this->HTML->script $this->html->script
to this:
$this->Html->script