MU Advanced: Issues and Discussion
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • July 31, 2010, 05:46:51 PM
Home Forums Contact Tags FAQ Links News Login Register
* *
Navigation Menu
Search

Random Quotes
Anything that can go wrong will go wrong.
- Murphy's Law
Pages: [1]   Go Down
  Print  
Author Topic: shutting off mysql error display  (Read 478 times)
0 Members and 1 Guest are viewing this topic.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« on: May 07, 2008, 12:56:30 PM »

I thought I knew how to do this, but I can't seem to find the right config option to TURN OFF mysql error displays to PHP.

For some reason I'm getting a couple errors displayed and I want to shut off all external output of errors.

I know there's a setting in php.ini or in the mysql settings to do this, but I can't find docs on it.

I want the errors to be logged, just not displayed!

Help please.

Thanks.
Logged

Yep, that's me... riding my bike 204 miles in one day.
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #1 on: May 07, 2008, 01:19:56 PM »

Here's the page on it:

http://us.php.net/error_reporting

It's also set somewhere in the wpmu code I believe although I cant run a grep from here to check for you.

edit: It's in wp-settings.php.  Starts at line #161.
Logged

ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #2 on: May 07, 2008, 01:23:12 PM »

Yeah, I saw that... but I thought there was a ini setting...

I've actually turned off PHP errors in the php.ini... and I don't normally see PHP errors...

But sometimes I see these mysql errors...

Is the wp code turning this on at certain times?
Logged

Yep, that's me... riding my bike 204 miles in one day.
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #3 on: May 07, 2008, 02:00:05 PM »

I edited my post at the same time you wrote that.  The setting is within wp-settings.php at line 161 on the current development version out of trac.

The option in php.ini is display_errors:

http://www.washington.edu/computing/web/publishing/php-ini.html

It's towards the bottom of the page.
Logged

Tags: mysql troubleshooting errors 

Pages: [1]   Go Up
  Print  
 
Jump to:  


Login
 
 
Recent Posts
Recent Topics
No new topics.
Hot Tags
Whos Online
7 Guests, 0 Users
Home Forums Contact Tags FAQ Links News Login Register