At core.php, change the value of debug to 0

On Sep 21, 7:51 pm, tubiz <[email protected]> wrote:
> Please how do i disable cakephp production error from showing on a
> live site.  I am getting this error
>
> Warning (2): mysql_connect() [http://php.net/function.mysql-connect]:
> Can't connect to local MySQL server through socket '/var/run/mysqld/
> mysqld.sock' (2) [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php,
> line 561]
>
> Warning (2): mysql_query() expects parameter 2 to be resource, boolean
> given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 613]
>
> And wouldnt want it to be shown to visitors

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to