How to stop Dolphin to send DB errors

How to stop Dolphin to send thousands of e-mails about "Database query error" while restoring DB?

Can that be done somewhere from Dolphin or is it mysql, php ??

 

And how to prevent this red box:

 

 

 

from telling all the visitors about Database query error?

 

 

 

Thanks for help

db-query-error.jpg · 17.7K · 269 views
"When things get tough the tough get going..."
Quote · 9 Sep 2015

Make a quick index.html file showing the site is in maintenance mode, rename your index.php to old-index.php until your done.

Sample for index.html
  <title>Site Maintenance</title>
  <style>
  body { text-align: center; padding: 150px; }
  h1 { font-size: 50px; }
  body { font: 20px Helvetica, sans-serif; color: #333; }
  article { display: block; text-align: left; width: 650px; margin: 0 auto; }
  a { color: #dc8100; text-decoration: none; }
  a:hover { color: #333; text-decoration: none; }
  </style>
   
  <article>
  <h1>We&rsquo;ll be back soon!</h1>
  <div>
  <p>Sorry for the inconvenience but we&rsquo;re performing some maintenance at the moment. If you need to you can always <a href="mailto:#">contact us</a>, otherwise we&rsquo;ll be back online shortly!</p>
  <p>&mdash; The Team</p>
  </div>
  </article>

That's the quickest way to take down the site for work.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 9 Sep 2015

For the emails, Dolphin uses the bug report email set in /inc/header.inc.php to send these notifications. I believe this line in /inc/classes/BxDolDb.php can also be used to turn it off:

 

define( 'DB_DO_EMAIL_ERROR_REPORT', true );
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 9 Sep 2015

Thank you newton27 for this quick index.html solution.

Nathan Paton,, you were faster then me. That is why this question is here: 

Still looking for solution about stoping e-mail messages to be sent out while in maintenance?

I will try as you wrote above.

 

Greetings

Mayki

"When things get tough the tough get going..."
Quote · 9 Sep 2015

 

Thank you newton27 for this quick index.html solution.

 

Still looking for solution about stoping e-mail messages to be sent out while in maintenance?

 

Greetings

Mayki

Did you try my post? If the email's queued already, the changes will only stop new emails.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 9 Sep 2015

I will try Nathan, and I already cleared all e-mails from que.

 

I will report how it went.

 

Mayki

"When things get tough the tough get going..."
Quote · 9 Sep 2015

Nathan Paton,

before I managed to try your suggestion, the DB restore processes finished.

 

I will try it next time.

 

Thank you both, Nathan Paton and newton27 for your help!

 

Greetings

Mayki

"When things get tough the tough get going..."
Quote · 9 Sep 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.