If you have added PHP code to your events, then it is always possible that you might encounter problems. But depending on the situation, it is always possible that you get an error out of the PHP run time. Sometimes the error message is clear enough. PHsPeed traps the error and clicking on the report button will jump directly into the source code on the line that caused the error. 



Of


Never change the code in your generated applications! The reason is that when you regenerate the code, the old situation will be restored. So if you have located the error, then go back to your design branch of the project and correct the code in your definition file. 


Of course, this issue is obvious and created on purpose. But errors can be more subtle. To fix this you need to go back to the designer:



It is always a good idea to pre-compile the code so that you can locate syntax errors like these on before-hand. To do that click on the green check button: