# 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:** 17
**Page:** 2

<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 30, 2023, 1:06am UTC](https://forum.infinityfree.com/t/http-500-error/83333/24 "2023-09-30T01:06:39Z")

</div>

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

You should probably start here:

> **[PHP Tutorial](https://www.w3schools.com/php/default.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

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

---

<div class="post-metadata">

### Author: ![anon95807532](https://forum.infinityfree.com/letter_avatar/anon95807532/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon95807532](https://forum.infinityfree.com/u/anon95807532)
#### Post date: [September 30, 2023, 2:53am UTC](https://forum.infinityfree.com/t/http-500-error/83333/25 "2023-09-30T02:53:23Z")

</div>

Hi solace-ken,

CORS is not something you should grant full opens, as it is designed to prevent unintended code executions on your page. Setting too wide-open permissions would defeat the purpose of having CORS in the first place.

Websitedesigner must learn this him/herself to get this running in the intended way.

Cheers!

---

<div class="post-metadata">

### Author: ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)
#### Post date: [September 30, 2023, 3:12am UTC](https://forum.infinityfree.com/t/http-500-error/83333/26 "2023-09-30T03:12:31Z")

</div>

I see this now

 ![image](https://forum-cdn.infinityfree.net/original/3X/e/b/eb5441e1381e81437f174c33826352965b2b2ca1.png)

CORS is blocked on free hosting.  
Defining via .htaccess will not work

---

<div class="post-metadata">

### Author: ![anon95807532](https://forum.infinityfree.com/letter_avatar/anon95807532/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon95807532](https://forum.infinityfree.com/u/anon95807532)
#### Post date: [September 30, 2023, 3:23am UTC](https://forum.infinityfree.com/t/http-500-error/83333/27 "2023-09-30T03:23:53Z")

</div>

Hi KangJL,

Why CORS is blocked tho, wasn’t it supposed to be there to protect the website? How about setting the header through PHP? Are there any security concerns behinds this?

```php
header('Access-Control-Allow-Origin', '');

```

Cheers!

---

<div class="post-metadata">

### Author: ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)
#### Post date: [September 30, 2023, 3:31am UTC](https://forum.infinityfree.com/t/http-500-error/83333/28 "2023-09-30T03:31:24Z")

</div>

I believe cross origin is blocked for security purpose .  
That is why iframes will not work for redirect purpose

[example.com](http://example.com) and [subdomain.example.com](http://subdomain.example.com) can be considered as cross origin

---

<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 30, 2023, 5:29pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/29 "2023-09-30T17:29:07Z")

</div>

The article describing the security system mentions this:

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353/1):
>
> ## Which features are not supported?
> 
> Because of this security system, the following things will not work correctly or at all on websites on free hosting.
> 
> - AJAX requests from other websites (CORS). AJAX requests are only possible on the same (sub)domain.

---

<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: [October 1, 2023, 2:51pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/30 "2023-10-01T14:51:11Z")

</div>

my apologies

---

<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: [October 1, 2023, 3:22pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/31 "2023-10-01T15:22:36Z")

</div>

here are my new errors this morning

**Warning** : “continue” targeting switch is equivalent to “break” in **/home/vol9\_3/epizy.com/epiz\_20079140/htdocs/wp-content/plugins/woocommerce-product-importer/includes/functions.php** on line **284**

**Fatal error** : Array and string offset access syntax with curly braces is no longer supported in **/home/vol9\_3/epizy.com/epiz\_20079140/htdocs/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php** on line **746**

There has been a critical error on this website.

---

<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: [October 1, 2023, 3:57pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/32 "2023-10-01T15:57:24Z")

</div>

down to this error

**Fatal error** : Array and string offset access syntax with curly braces is no longer supported in **/home/vol9\_3/epizy.com/epiz\_20079140/htdocs/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php** on line **746**

There has been a critical error on this website.

---

<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: [October 1, 2023, 4:00pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/33 "2023-10-01T16:00:42Z")

</div>

changed plugin to woocommerce-product-importer.hold

---

<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: [October 1, 2023, 5:34pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/34 "2023-10-01T17:34:29Z")

</div>

This seems to be because of old PHP syntax which is no longer supported in PHP 8.2.  
You might want to upgrade your plugin version, or if you’re on the latest, report the issue to them.

---

<div class="post-metadata">

### Author: ![anon95807532](https://forum.infinityfree.com/letter_avatar/anon95807532/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon95807532](https://forum.infinityfree.com/u/anon95807532)
#### Post date: [October 2, 2023, 2:17am UTC](https://forum.infinityfree.com/t/http-500-error/83333/35 "2023-10-02T02:17:38Z")

</div>

Hi Websitedesigner,

> [@Websitedesigner](#):
>
> woocommerce-product-importer

For WooCommerce, unless you have very specific requirements, it now supports Import function, you can use that without an external plugin.

Cheers!

---

<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: [October 2, 2023, 11:55am UTC](https://forum.infinityfree.com/t/http-500-error/83333/36 "2023-10-02T11:55:48Z")

</div>

I’ve gotten in my website since I upgraded and put the 2 plugins on hold … even though I’ve brought a bunch of it up I’m still getting bad gateways after delete and reinstalling latest versions for woo commerce. woo importer.longer complies in upgrade

---

<div class="post-metadata">

### Author: ![anon95807532](https://forum.infinityfree.com/letter_avatar/anon95807532/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon95807532](https://forum.infinityfree.com/u/anon95807532)
#### Post date: [October 2, 2023, 4:03pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/37 "2023-10-02T16:03:12Z")

</div>

Hi Websitedesigner,

Do not attempt to install too many plugins in WordPress, you’re asking for trouble if you do so. The rule of thumb is around 40, given that they’re all very optimized.

If you see bad gateway errors, it simply means that your website still takes too much time to process a single request. Reinstalling everything without removing the bloat does not solve the issue and it’ll persist until you remove deactivated plugins or legacy ones. WooCommerce also made quite a few changes over the past season so you might want to look intot that as well.

The best way of WordPress planning is to avoid having plugins that do overlapping or fundamentally competitive things.

> [@Websitedesigner](#):
>
> woo importer.longer complies in upgrade

I have no idea what you mean by this.

Cheers!

---

<div class="post-metadata">

### Author: ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)
#### Post date: [October 2, 2023, 4:58pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/38 "2023-10-02T16:58:24Z")

</div>

> [@anon95807532](#):
>
> Do not attempt to install too many plugins in WordPress, you’re asking for trouble if you do so. The rule of thumb is around 40

I do not agree. 40 plugins is too much for free hosting. Just WooCommerce and Elementor is enough too slow your website to a crawl

---

<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: [October 2, 2023, 5:47pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/39 "2023-10-02T17:47:03Z")

</div>

I’ve 10 plugins … substituted a generic importer for woo commerce importer which I believe has become obsolete with upgrade. Thank you all for your help.

---

<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: [October 9, 2023, 5:47pm UTC](https://forum.infinityfree.com/t/http-500-error/83333/40 "2023-10-09T17:47:51Z")

</div>

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

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