Intermittent 502 Bad Gateway Error on One Specific Website

Website URL

(https://edusmart.ct.ws/)

Error Message

(Dear InfinityFree Support Team,

I hope you are doing well.

I am experiencing an intermittent issue with one of my websites hosted on InfinityFree. When accessing the site, it sometimes shows the following error:

502 Bad Gateway (openresty)

Website URL:
https://edusmart.ct.ws/

Important details about the issue:

  • The error does not occur all the time.

  • Sometimes the website works normally.

  • After some time (without making any changes), the website starts working again automatically.

  • My other websites on the same InfinityFree account are working fine.

  • This problem affects only this specific domain.

This behavior suggests that the issue may be related to server-side instability, temporary PHP backend unavailability, or resource limitations rather than a permanent script error.

I kindly request you to please check:

  • PHP handler / backend stability for this domain

  • Any temporary resource limits being hit (CPU, memory, execution time)

  • Server or OpenResty-related issues that could cause intermittent 502 errors

The website was previously working, and no intentional critical changes were made before this issue started.

Please let me know if you need any additional information from my side.

Thank you for your time and support.

Best regards,

itsmehedihassan)

502 error happens when your PHP code is taking too long to run, which usually happens with heavy plugins.

I see you are using WordPress so try disabling plugins you don’t necessarily need as a start.

6 Likes

Thanks brother for your advised. but i am only using 5 plugin in my site.

What plugins and theme do you use on your site?

5 Likes

I am using only one theme called Wellearn and the required plugins to use this theme. There are a total of 10 required plugins for this theme. But I am using 5 plugins as per my requirement. Even then this problem is happening

Number of plugins doesn’t tell anything. What the plugins and theme are is what matters.

In your case, the theme you are trying to run is simply too heavy to run on free hosting. The theme demands 600 seconds of max execution time which is 20x the limit on free hosting.

The theme also asks for lots of heavy plugins as far as I can tell.

So no, it’s very unfortunate, but this site may not function on free hosting at all. It’s not about “I only have 5 plugins in the 10”, it’s about the theme itself.

9 Likes

Usually, these issues are caused by a single bad plugin. While having many plugins certainly affects the performance of the site, the important part is what those plugins do, not just the plugin count, because different plugins can have wildly different performance impacts.

Does this issue happen frequently enough that you can reliably reproduce it? If so, you may want to try disabling some of your plugins and see if that helps, and see if you can narrow it down to a specific plugin in that way.

6 Likes

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