We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Custom Controller working in dev but not in stage and live

Accepted answer
7
Views
4
Comments
edited Sep 16, 2016 3:28PM in Integrations and APIs 4 comments

Content

Hi,

I have created a custom controller and custom model to create an incident and update a custom object I have created.  I have this working in the dev environment but when I promote it to Stage and Prod it fails and I get a modal pop up with the text:

There was an error with the request and the action could not be completed.

I have plenty of logMessage() in my code and I used this to debug my dev version, but this does not put anything out in stage and live.  I have double, triple and quadruple checked that all the files are in the right places.  I based my controller on the code example in the Connect PHP API Developer manual where the procedure is create a new model object, assign the data and then save:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!