Reputation: 4537
I have a simple self-made MVC structure composed by Controllers, Models and Views.
It was working fine, but now one controller is performing very strange behaviour...
Script gives error 500 (if you check headers) but execution and output is ok.
No error messages, no error log, nothing... but let me tell you the most strangest thing:
if I write debug directives for log information like these
error_reporting(E_ALL);
ini_set('display_errors', 1);
Then error 500 disapears... instead of displaying error information, and work like a charm.
Can't understand this situation. Any help?
Regards
Upvotes: 1
Views: 95
Reputation: 4537
Problem solved. I was using a PHP include which contain some @ symbols, for example: @file_get_contents... This is a not recommended practice, now I know why :)
Thanks for your interest
Upvotes: 1