Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi,

whats the best file for activate PHP error reporting in Couch?

Best
It's already activated by default. Proof: https://github.com/CouchCMS/CouchCMS/bl ... er.php#L42

If you don't see any error messages (typically blank white screen) then it's because of settings on your host. Check php.ini, it has clues to the problem.

Try this code that prints content of PHP's error log on screen:

Code: Select all
<cms:php>
$html='';
$file = ini_get('error_log');
if( file_exists($file) )
{
   $html .= '<pre>';
   $html .= @file_get_contents( $file );
   $html .= '</pre>';
}
return $html;
</cms:php>

(copied from my func show-php https://github.com/trendoman/Cms-Fu/tre ... s/show-php)


KDJFS wrote: Hi,

whats the best file for activate PHP error reporting in Couch?

Best
2 posts Page 1 of 1