HTTP 500 Error

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

5 Likes

Please instruct me on how to run this code
Thank you

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.

4 Likes

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

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.

1 Like

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

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

Right click → New File can also do the job.

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:

7 Likes

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

1 Like

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

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

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:

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

3 Likes

Nevermind

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

1 Like

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, 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 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, 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 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’ from origin ‘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’ from origin ‘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 ()

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.

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

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

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

Example:

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

Or like this

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

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

<!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

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

6 Likes

There are quite a few errors in your PHP and HTML code.

You should probably start here:

Be sure to copy/paste the sample code exactly as it is shown.