<p>It looks like Craft isn't able to connect to your database. I'd double-check the database credentials – you might have them in your <code>config/db.php</code> file, or as <code>CRAFT_DB_</code> variables in your .env file.</p>

CC BY-SA 4.0
2024-09-06T05:33:58.063Z
Thank you so much, seems my hosting provider had migrated my database, which I had somehow missed.
Brian Pedersen
CC BY-SA 4.0
2024-09-05T18:52:06.650Z
2024-09-05T18:52:06.650Z
Mats Mikkel Rummelhoff
<p>We have a site running v3.7 that hasen't been changed in more than a year.</p>
<p>It has now stopped working, and the server responds with a</p>
<pre><code>503 craft\web\ServiceUnavailableHttpException
Yii Framework/2.0.45
Fatal error: Uncaught yii\web\HeadersAlreadySentException: Headers already sent 
in /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/Response.php on line 433. 
in /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/Response.php:368 Stack trace: #0 /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/Response.php(341): yii\web\Response-&gt;sendHeaders() 
#1 /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response-&gt;send() 
#2 /home/spandend/anne-marie.nu/app/vendor/craftcms/cms/src/web/ErrorHandler.php(192): yii\web\ErrorHandler-&gt;renderException(Object(yii\base\ErrorException)) 
#3 /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/base/ErrorHandler.php(288): craft\web\ErrorHandler-&gt;renderException(Object(yii\base\ErrorException)) 
#4 [internal function]: yii\base\ErrorHandler-&gt;handleFatalError() 
#5 {main} thrown in /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/Response.php on line 368
</code></pre>
<p>It seems like it's trying to run an install process.
<a href="https://i.sstatic.net/ZlO9BZmS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ZlO9BZmS.png" alt="enter image description here" /></a></p>
<p>Our hosting provider states that they didn't update the servers.</p>
<p>We're pretty desparate, as we have a business that is depends on that web site.</p>
<p>Any help appreciated :pray:</p>

<error><server>
503 Headers already sent
# 503 Headers already sent

(Asked by: username_0 on 2024-09-05)

We have a site running v3.7 that hasen't been changed in more than a year.
It has now stopped working, and the server responds with a
503 craft\web\ServiceUnavailableHttpException
Yii Framework/2.0.45
Fatal error: Uncaught yii\web\HeadersAlreadySentException: Headers already sent 
in /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/Response.php on line 433. 
in /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/Response.php:368 Stack trace: #0 /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/Response.php(341): yii\web\Response->sendHeaders() 
#1 /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send() 
#2 /home/spandend/anne-marie.nu/app/vendor/craftcms/cms/src/web/ErrorHandler.php(192): yii\web\ErrorHandler->renderException(Object(yii\base\ErrorException)) 
#3 /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/base/ErrorHandler.php(288): craft\web\ErrorHandler->renderException(Object(yii\base\ErrorException)) 
#4 [internal function]: yii\base\ErrorHandler->handleFatalError() 
#5 {main} thrown in /home/spandend/anne-marie.nu/app/vendor/yiisoft/yii2/web/Response.php on line 368

It seems like it's trying to run an install process.

Our hosting provider states that they didn't update the servers.
We're pretty desparate, as we have a business that is depends on that web site.
Any help appreciated :pray:

**Tags:** error, server


---

## 1 answers

### Answer by username_1 on 2024-09-05. Score: 0

It looks like Craft isn't able to connect to your database. I'd double-check the database credentials – you might have them in your `config/db.php` file, or as `CRAFT_DB_` variables in your .env file.

> **Comments:**
> **username_0**: Thank you so much, seems my hosting provider had migrated my database, which I had somehow missed.  

---

