how to show database detail error

926 views Asked by At

How can I see database query error in cscart? I set debug mode in config.php and debug mode for smarty in admin panel, but it always show non-sense error "An error occurred". It is very difficult to debug the developing addons.

Thanks.

2

There are 2 answers

0
mmdc On BEST ANSWER

I found it. add

define('DEBUG_QUERIES',true);

in config.local.php file :)

0
Hungryweb On

You can also see errors into the logs, but you need to enable logs for database


Valentin