# HTTP 500 Error

**URL:** https://forum.infinityfree.com/t/http-500-error/83333
**Category:** Hosting Support
**Created:** [September 26, 2023, 8:24pm UTC](https://forum.infinityfree.com/t/http-500-error/83333 "2023-09-26T20:24:32Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 26, 2023, 8:24pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/1 "2023-09-26T20:24:32Z")

</div>

### Website URL

[Beachdecortreasures.epizy.com](http://Beachdecortreasures.epizy.com)

(please specify the URL of the site on which you are experiencing the problem)

### Error Message 500 please help

(please share the FULL error message you see, if applicable)

### Other Information

Turquoisegiftshop

(other information and details relevant to your question)

---

<div class="post-metadata">

### Author: ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)
#### Post date: [September 26, 2023, 8:25pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/2 "2023-09-26T20:25:19Z")

</div>

> [@Http 500](https://forum.infinityfree.com/t/http-500/83262/9):
>
> Are you able to run this code on your index.php? \<!DOCTYPE html\> \<html\> \<body\> \<h1\>My first PHP page\</h1\> \<?php echo "Hello World!"; ?\> \</body\> \</html\>

(don’t mind about the .html, it should be .php in the end)

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 26, 2023, 8:27pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/3 "2023-09-26T20:27:32Z")

</div>

Please instruct me on how to run this code  
Thank you

---

<div class="post-metadata">

### Author: ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)
#### Post date: [September 26, 2023, 8:31pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/4 "2023-09-26T20:31:32Z")

</div>

You can also run the test on a PHP file you name with whatever you want. To create the file go into your File Manager, on your `htdocs` folder, click on the square with a + on it, click “New File”, then name it whatever you want (making sure it has .php in the end) and click OK. In the editor it opens, paste the code, then save, wait and close.

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 26, 2023, 8:56pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/5 "2023-09-26T20:56:35Z")

</div>

Just went to file mgr htdocs area …saw a lot of commands but no +

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 26, 2023, 9:02pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/6 "2023-09-26T21:02:10Z")

</div>

I guess I will have to recreate the entire website and all my products to fix problem since there is no support going in to see why the error 500 suddenly occurred after all these years.

---

<div class="post-metadata">

### Author: ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)
#### Post date: [September 26, 2023, 9:17pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/7 "2023-09-26T21:17:21Z")

</div>

You can always create the file locally and upload it via FTP:

> [@How to upload files with FTP](https://forum.infinityfree.com/t/how-to-upload-files-with-ftp/49306):
>
> The best and most reliable way to upload files is to use FTP. To upload files with FTP, you will need to following: Your FTP username Your FTP password The FTP hostname An FTP client You can find your FTP username, password and hostname in the client area under the FTP Details section. The FTP password is the same as your hosting account and control panel password, which is different from the password for the client area. If you like videos better then text guides, you can find one at the bot…

In the File Manager, what you’re looking for is this symbol:

 ![image](https://forum-cdn.infinityfree.net/original/3X/0/7/07ac4149a7ef46ffc79134d5a26b8dd56bc7d67f.png)

Right click → New File can also do the job.

> [@Websitedesigner](#):
>
> I will have to recreate the entire website and all my products to fix problem

If it’s the issue we’re suspecting, that won’t help at all, because no matter what website you create, it will end up being broken. To put it shortly, the issue we’re suspecting is that the volume you’re on might have a broken version of PHP that can’t execute anything. The test file will help verify that; if the test file works fine, then the PHP version isn’t broken, and you just need to troubleshoot the issue:

> [@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: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 26, 2023, 9:21pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/8 "2023-09-26T21:21:59Z")

</div>

My apologies I did see that symbol. I will go back and try again . Thank you

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 26, 2023, 9:30pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/9 "2023-09-26T21:30:40Z")

</div>

I am unable to type anything on either box after hitting the symbol

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 26, 2023, 9:36pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/10 "2023-09-26T21:36:08Z")

</div>

Name  
function (t){return u(n,t)}  
function (t){return u(n,t)}  
function (t)return u(n,t)}  
function (t){return u(n,t)}  
.htaccess  
325B  
~ mail

- htdocs  
softaculous

---

<div class="post-metadata">

### Author: ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)
#### Post date: [September 26, 2023, 9:50pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/13 "2023-09-26T21:50:54Z")

</div>

The file manager may be a bit clunky; I’d still recommend manually creating the file in your computer (via a text editor) and uploading it via FTP from the guide I linked above:

> [@How to upload files with FTP](https://forum.infinityfree.com/t/how-to-upload-files-with-ftp/49306):
>
> The best and most reliable way to upload files is to use FTP. To upload files with FTP, you will need to following: Your FTP username Your FTP password The FTP hostname An FTP client You can find your FTP username, password and hostname in the client area under the FTP Details section. The FTP password is the same as your hosting account and control panel password, which is different from the password for the client area. If you like videos better then text guides, you can find one at the bot…

I just realized I had linked to the wrong guide above, so I’ve now corrected that. My bad!

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 26, 2023, 9:52pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/14 "2023-09-26T21:52:56Z")

</div>

Nevermind

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 26, 2023, 9:55pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/15 "2023-09-26T21:55:12Z")

</div>

I have to get back to work. Thanks for your time

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 27, 2023, 1:37am UTC](https://forum.infinityfree.com/t/http-500-error/83333/16 "2023-09-27T01:37:18Z")

</div>

here is a copy of errors, hope it is helpful  
Uncaught SyntaxError: Invalid left-hand side in assignment  
index.live.php:1 Failed to load resource: the server responded with a status of 404 ()  
indexpl.php?id=73b7fe4931d2abac3c682a5e21804bc32e791153:770 A parser-blocking, cross site (i.e. different eTLD+1) script, [https://secure.statcounter.com/counter/counter.js](https://secure.statcounter.com/counter/counter.js), is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See [Chrome Platform Status](https://www.chromestatus.com/feature/5718547946799104) for more details.  
(anonymous) @ indexpl.php?id=73b7fe4931d2abac3c682a5e21804bc32e791153:770  
indexpl.php?id=73b7fe4931d2abac3c682a5e21804bc32e791153:770 A parser-blocking, cross site (i.e. different eTLD+1) script, [https://secure.statcounter.com/counter/counter.js](https://secure.statcounter.com/counter/counter.js), is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See [Chrome Platform Status](https://www.chromestatus.com/feature/5718547946799104) for more details.  
(anonymous) @ indexpl.php?id=73b7fe4931d2abac3c682a5e21804bc32e791153:770  
cpanel-foot-google.js:1 Uncaught TypeError: Cannot read properties of null (reading ‘parentElement’)  
at HTMLDocument. (cpanel-foot-google.js:1:6260)  
adsbygoogle.js:207 Uncaught TagError: adsbygoogle.push() error: No slot size for availableWidth=0  
at mo (adsbygoogle.js:168:29)  
at oo (adsbygoogle.js:166:1150)  
at uo (adsbygoogle.js:171:91)  
at Ao (adsbygoogle.js:177:161)  
at Up (adsbygoogle.js:202:105)  
at Tp (adsbygoogle.js:201:622)  
at bq (adsbygoogle.js:217:465)  
at Yp.e.client (adsbygoogle.js:210:43)  
at le.ea (adsbygoogle.js:49:239)  
at cj (adsbygoogle.js:83:19)  
5111:1 Access to font at ‘[https://cdn.8proof.com/ads/assets/fonts/montserrat-v25-latin-600.woff2](https://cdn.8proof.com/ads/assets/fonts/montserrat-v25-latin-600.woff2)’ from origin ‘[https://8proof.com](https://8proof.com)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.  
montserrat-v25-latin-600.woff2:1 Failed to load resource: net::ERR\_FAILED  
5111:1 Access to font at ‘[https://cdn.8proof.com/ads/assets/fonts/montserrat-v25-latin-800.woff2](https://cdn.8proof.com/ads/assets/fonts/montserrat-v25-latin-800.woff2)’ from origin ‘[https://8proof.com](https://8proof.com)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.  
montserrat-v25-latin-800.woff2:1 Failed to load resource: net::ERR\_FAILED  
5The deviceorientation events are blocked by permissions policy. See   
/execute/Notifications/get\_notifications\_count?cache-fix=0.25111796893681904:1 Failed to load resource: the server responded with a status of 404 ()

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 28, 2023, 1:12am UTC](https://forum.infinityfree.com/t/http-500-error/83333/18 "2023-09-28T01:12:00Z")

</div>

I will try to install a backup and redo my site completely over. Hope it works. I do not have the expertise to figure out how to correct all these errors I have found. Thank you again to everyone who tried to help.

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 29, 2023, 7:08pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/19 "2023-09-29T19:08:44Z")

</div>

Could you walk me through how to do this to get my site back up? Thank you

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 29, 2023, 7:12pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/20 "2023-09-29T19:12:36Z")

</div>

My apologies…I’ve read your attached link, but I believe I would not be able to complete competently

---

<div class="post-metadata">

### Author: ![solace-ken](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/solace-ken/32/29500_2.png) [@solace-ken](https://forum.infinityfree.com/u/solace-ken)
#### Post date: [September 29, 2023, 8:31pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/21 "2023-09-29T20:31:56Z")

</div>

You just have to create a .htaccess file to add the Header directive for CORS

Example:

```auto
Header set Access-Control-Allow-Origin "*"

```

Or like this

```auto
<IfModule mod_headers.c>
  Header set Access-Control-Allow-Origin "*"
</IfModule>

```

---

<div class="post-metadata">

### Author: ![Websitedesigner](https://forum.infinityfree.com/letter_avatar/websitedesigner/32/5_5575768a8748004e209b776fc1b2916d.png) [@Websitedesigner](https://forum.infinityfree.com/u/Websitedesigner)
#### Post date: [September 30, 2023, 12:27am UTC](https://forum.infinityfree.com/t/http-500-error/83333/22 "2023-09-30T00:27:17Z")

</div>

thank you… i have added your Header set Access-Control-Allow-Origin"\*" header code in .htaccess  
site didn’t come back  
as well as the suggested php test code in file created in htdocs

```auto
<!DOCTYPE htm|> <html>
«body>
<h1>My first
PHP page</h1> <?php echo "Hello World!", ?>
</body> </html></php>

```

site still not coming back from error 500  
i am open to more suggestions

---

<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: [September 30, 2023, 12:41am UTC](https://forum.infinityfree.com/t/http-500-error/83333/23 "2023-09-30T00:41:18Z")

</div>

Stop hijacking other peoples topics please. Future hijacking will result in the post getting flagged and removed.

[Next page](https://forum.infinityfree.com/t/http-500-error/83333.md?page=2)
