How to hide mybb warning messages from public?
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #1
How to hide mybb warning messages from public?
when we do a template mistake or if any file or table gets deleted or mysql/database dont get connected or anything mischief thing happens, we usually get mybb warning messages in big huge boxes as

Code:
MyBB Error

Cant connect to mysql/Too many connections.


Now my question is, why it must be displayed to public?? is there anyway to display a different custom text message [Site in under maintenance] or image or if possible, completely hide those error messages and just email those errors to our mail id.

10-15-2010 05:38 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: How to hide mybb warning messages from public?
(10-15-2010 05:38 AM)1master1 Wrote:  Now my question is, why it must be displayed to public?? is there anyway to display a different custom text message [Site in under maintenance] or image or if possible, completely hide those error messages and just email those errors to our mail id.
Because it says to the admin what the problem is.
I don't really see any reason why it should be hidden, unless you're a big fan of obscurity.

As for completely hiding, what do you expect?  Users just get thrown a blank page?

My Blog
10-15-2010 08:58 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #3
RE: How to hide mybb warning messages from public?
Yes. A possibility to show custom 404 error page or a Server Problem Encountered page
10-15-2010 12:16 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: How to hide mybb warning messages from public?
From memory, Google SEO can put 404 error codes out if that's all you want.
Otherwise, go digging around the inc/db_*.php files and see what throws the error and edit it out.

My Blog
10-15-2010 04:01 PM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #5
RE: How to hide mybb warning messages from public?
i found these errors in inc/class_error.php Wink
10-21-2010 05:04 PM
Find all posts by this user Quote this message in a reply
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #6
RE: How to hide mybb warning messages from public?
I think

Code:
MyBB Error

Cant connect to mysql/Too many connections.


errors appears when your "host's sql" have some issues.


[Image: logo.png]

[Image: twitter.png]
10-23-2010 02:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: