Receiving error : the requested address '/' was not found on this server cakep php 2.7

244 views Asked by At

Method not allowed exception received when trying to submit the action . Under that error is : the requested address '/xyz/zyx/123' was not found on this server.

we dont have debug mode on for production server. the external user is doing to action to submit the data. This error occures sometimes not frequent to users.

code in controller : $this->request->allowMethod('post');

code in ctp file : echo $this->Form->postLink( 'Submit Documents for Pre-Qualification', array( 'controller' => 'module_accreditations', 'action' => 'submit', $moduleAccreditation['ModuleAccreditation']['id'] ), array( 'class' => 'small radius callout button module_submit_doc', 'confirm' => 'Upon submitting, you will be prevented from changing information included in these documents. Do you wish to continue?' ) );

When user clicks on this submit and then confirm , the user receive the error as method not allowed with address not found

Workflow : click on button -> controller call to model -> there are two method, one for save/ edit and another for update all on two different table->

and then email notification

0

There are 0 answers