An internal server error ocurred

I’m developing a module and I always get this message when there is an error:

[b]An internal server error occurred.

The above error occurred while the Web server was processing your request.

Please contact us if you think this is a server error. Thank you. [/b]

Is there any way that the system explains the error more exactly?? I find it really difficult to solve errors with this imprecise message.

Have you got your app set in developer mode (not in a production one)? In dev mode full error stack is displayed on screen. And there are still error logs.

Brilliant, that was the solution!

I changed this:

defined('YII_DEBUG') or define('YII_DEBUG', false);


defined('YII_DEBUG') or define('YII_DEBUG', true);

and it worked