• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parse errors from models

Writing some code, I've found that if there is a parse error inside a model, in example a missing ) or ; and so on, no error message is shown, the controller just stops to be executed when it calls the bugged model and the page stays blank on the controller's address.

In this way if I have a lot of code inside the model is really hard to find the problem.

Is there a way to have a "Parse error" or another error displayed in these cases?

[eluser]TWP Marketing[/eluser]
I find that this kind of error is frequently found by the web server (I use Apache). Check your server error log. Its location depends on which server you are using, mine, under linux, is at /var/log/apache2/error.log
My log will usually reveal the line number and file containing a coding error (fat fingers errors).

I use phpDesigner 8 and it will catch all those errors right in the editor.

You need to turn error reporting on, locally and/or in your php.ini settings.

[quote author="Aken" date="1341785611"]You need to turn error reporting on, locally and/or in your php.ini settings.[/quote]
In my php.ini I've set error reporting to E_ALL|E_STRICT
What else should I do?
What do you mean when you say to turn error reporting on locally?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.