Title: database connection lost
Last modified: July 26, 2025

---

# database connection lost

 *  [covos1](https://wordpress.org/support/users/covos1/)
 * (@covos1)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/database-connection-lost-2/)
 * I created a new wordpress-website using elementor and a pre-build theme. In the
   theme there are three Google fonts included which I need to host locally. I installed
   the plugin which is working perfectly related to the fonts so the fonts are detected
   and hosted locally.
 * Unfortunately the site throws a database-error “error database connection – Username
   and password in config.php are not correct or we cannot connect to databse-server”.
   This error is not stable – when reloading the site (backend and frontend) again
   and again there will be a connection to load the site. Next click will result
   in an error again – so I have to reload again and so on.
 * This error only occurs as long as OMGF is activated.
 * I am using WordPress version 6.8.2
   Elementor version 3.30.3
 * Do you have any idea how to solve it?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/database-connection-lost-2/#post-18573559)
 * Hi!
 * This is one I havent’t heard before. Could you check your PHP error logs to see
   if there are any errors related to OMGF?
 *  Thread Starter [covos1](https://wordpress.org/support/users/covos1/)
 * (@covos1)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/database-connection-lost-2/#post-18573677)
 * I just tried again: [https://drive.google.com/file/d/1VPn91Gz49Z-nahKhAiKhhG26NbQgGPS9/view?usp=sharing](https://drive.google.com/file/d/1VPn91Gz49Z-nahKhAiKhhG26NbQgGPS9/view?usp=sharing)
 *  Thread Starter [covos1](https://wordpress.org/support/users/covos1/)
 * (@covos1)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/database-connection-lost-2/#post-18573685)
 * Probably an interesting detail – even though it makes sense. I installed “under
   construction” plugin yesterday evening. When I tried to reproduce the error a
   few minutes again – it did not work. The site (backend) was loading without any
   problems. As soon as I disabled the “under construction” mode (not the plugin
   itself) and loaded the frontend, the error appeared again. When I enable the “
   under construcion” mode again, there is no error anymore. So it seems that the
   error will be thrown only with an active frontend where the OMGF plugin is “working”.
   Makes sense anyhow…
    -  This reply was modified 10 months, 2 weeks ago by [covos1](https://wordpress.org/support/users/covos1/).
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/database-connection-lost-2/#post-18573739)
 * Those are a lot of 500 errors! Can you find the details on that in your PHP error
   log? If you can get me a stack trace, that’d be really helpful.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘database connection lost’ is closed to new replies.

 * ![](https://ps.w.org/host-webfonts-local/assets/icon-256x256.png?rev=3300821)
 * [OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.](https://wordpress.org/plugins/host-webfonts-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-webfonts-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-webfonts-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-webfonts-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-webfonts-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-webfonts-local/reviews/)

## Tags

 * [CONFIG.php](https://wordpress.org/support/topic-tag/config-php/)
 * [connection](https://wordpress.org/support/topic-tag/connection/)
 * [database](https://wordpress.org/support/topic-tag/database/)

 * 4 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [10 months, 2 weeks ago](https://wordpress.org/support/topic/database-connection-lost-2/#post-18573739)
 * Status: not a support question