# Failed to load resource: the server responded with a status of 500 (Internal Server Error)

**URL:** <https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230>\
**Category:** Hosting Support\
**Created:** [May 5, 2024, 7:55pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230 "2024-05-05T19:55:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon61017356](https://forum.infinityfree.com/letter_avatar/anon61017356/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon61017356](https://forum.infinityfree.com/u/anon61017356)\
**Post date:** [May 5, 2024, 7:55pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/1 "2024-05-05T19:55:03Z")

</div>

### Website URL

[(please specify the URL of the site on which you are experiencing the problem)](http://precisiondetailing.rf.gd/precisiondetailing_endre.php?endre=4)

### Error Message

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

### Other Information

This is an exam and the site worked earlier, but when we were going to show it to the professor it didnt work. What can the issue be and how can we resolve this?

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [May 5, 2024, 7:58pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/2 "2024-05-05T19:58:18Z")

</div>

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

---

<div class="post-metadata">

**Author:** ![anon61017356](https://forum.infinityfree.com/letter_avatar/anon61017356/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon61017356](https://forum.infinityfree.com/u/anon61017356)\
**Post date:** [May 5, 2024, 8:02pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/3 "2024-05-05T20:02:16Z")

</div>

I forgot to add that the php works through my files, but it doesnt work on infinity free

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [May 5, 2024, 8:04pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/4 "2024-05-05T20:04:07Z")

</div>

Did you follow the article?

---

<div class="post-metadata">

**Author:** ![anon61017356](https://forum.infinityfree.com/letter_avatar/anon61017356/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon61017356](https://forum.infinityfree.com/u/anon61017356)\
**Post date:** [May 5, 2024, 8:04pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/5 "2024-05-05T20:04:24Z")

</div>

Yes, I tried now. And got this message " **Fatal error** : Uncaught mysqli\_sql\_exception: Connection timed out in /home/vol3\_8/infinityfree.com/if0\_36277689/htdocs/precisiondetailing\_endre.php:100 Stack trace: #0 /home/vol3\_8/infinityfree.com/if0\_36277689/htdocs/precisiondetailing\_endre.php(100): mysqli\_connect(‘if0\_36277689\_pr…’, ‘if0\_36277689’, Object(SensitiveParameterValue), ‘sql109.infinity…’) #1 {main} thrown in **/home/vol3\_8/infinityfree.com/if0\_36277689/htdocs/precisiondetailing\_endre.php** on line **100**"

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [May 5, 2024, 9:35pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/6 "2024-05-05T21:35:03Z")

</div>

You probably have the wrong DB connection params

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338):
>
> Many websites use MySQL databases to store information and settings. However, there are some reasons why the connection to the database may fail. This article describes some commonly seen error messages when connecting to a database, as well as some general tips to keep in mind when setting up a database connection. Common Error Messages Using MySQL is great, but the error message returned if there is an issue logging in to your database can be quite confusing. Here are some commonly seen error…

---

<div class="post-metadata">

**Author:** ![anon61017356](https://forum.infinityfree.com/letter_avatar/anon61017356/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon61017356](https://forum.infinityfree.com/u/anon61017356)\
**Post date:** [May 5, 2024, 9:50pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/7 "2024-05-05T21:50:23Z")

</div>

But it did work and then it stopped working. I have looked over over 10 times. I will open a new discussion. Thanks for all help!

---

<div class="post-metadata">

**Author:** ![anon61017356](https://forum.infinityfree.com/letter_avatar/anon61017356/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon61017356](https://forum.infinityfree.com/u/anon61017356)\
**Post date:** [May 5, 2024, 9:52pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/8 "2024-05-05T21:52:55Z")

</div>

### Website URL

[(please specify the URL of the site on which you are experiencing the problem)](http://precisiondetailing.rf.gd/precisiondetailing_endre.php?endre=4&i=1)

### Error Message

**Fatal error** : Uncaught mysqli\_sql\_exception: Connection timed out in /home/vol3\_8/infinityfree.com/if0\_36277689/htdocs/precisiondetailing\_endre.php:101 Stack trace: #0 /home/vol3\_8/infinityfree.com/if0\_36277689/htdocs/precisiondetailing\_endre.php(101): mysqli\_connect(‘if0\_36277689\_pr…’, ‘if0\_36277689’, Object(SensitiveParameterValue), ‘sql109.infinity…’) #1 {main} thrown in **/home/vol3\_8/infinityfree.com/if0\_36277689/htdocs/precisiondetailing\_endre.php** on line **101**

### Other Information

Everything looks good and I have seen through the creditensials over 10 times. Everything is put in right. It worked at first and then stopped working. Any idea why? This is an exam btw.

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [May 5, 2024, 10:31pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/9 "2024-05-05T22:31:13Z")

</div>

Please don’t create multiple topics on the same issue.

Please share your database connection code, be sure to hide your password.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [May 6, 2024, 1:41pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/10 "2024-05-06T13:41:52Z")

</div>

> [@anon61017356](#):
>
> mysqli\_connect(‘if0\_36277689\_pr…’,

The correct order of arguments for the function is `mysqli_connect($hostname, $username, $password, $database)`. You put the database name first and the hostname last. If you put the arguments in the right order, it should work.

Because of course, you will not be able to connect to a host that has the database name as hostname.

---

<div class="post-metadata">

**Author:** ![anon61017356](https://forum.infinityfree.com/letter_avatar/anon61017356/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon61017356](https://forum.infinityfree.com/u/anon61017356)\
**Post date:** [May 8, 2024, 8:10pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/11 "2024-05-08T20:10:56Z")

</div>

YUuup this was the problem. Such a stupid and simple mistake lol. Thanks a lot for the help tho!

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [May 15, 2024, 8:11pm UTC](https://forum.infinityfree.com/t/failed-to-load-resource-the-server-responded-with-a-status-of-500-internal-server-error/93230/12 "2024-05-15T20:11:30Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
