My website returns “An Internal Error Has Occurred” (HTTP 500)

Website URL

https://omegahub.kesug.com/?i=1

Error Message

Hello,
My website https://omegahub.kesug.com/ displays “An Internal Error Has Occurred” when I open the home page. The site uses mooSocial/CakePHP.
Could you help me identify whether this is a hosting/PHP issue and what information I should check?
The error page does not show any details.

Other Information

The error appears when I open the home page. I have not made any recent changes to the site. I can provide more details if needed.

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

Whether it’s a PHP problem depends on what the real error says, and that’s what to look at first. I found an article on PHP crashes that covers how to get it. It says the error page in the browser doesn’t tell you why, and that the first step is to show the actual error message. In the control panel:

  1. Go to Alter PHP Config.
  2. Select your domain and click Alter PHP Directives.
  3. Set Display Errors to On and save.

Then reload the page.

HTTP ERROR 500: fixing PHP errors on your website

Free hosting doesn’t keep PHP or web server error logs, so showing the errors on the page is the only way to see them. The article also says software can override that setting. If you still see only the generic page, check whether mooSocial or CakePHP has a debug mode. Look too for hard-coded lines like ini_set('display_errors', 0); or error_reporting(0);.

Once you have an actual error message, paste it here in full, including the file path. Please also say whether the same page shows up on https://omegahub.kesug.com/ without the ?i=1.

I enabled PHP error display and found repeated warnings saying CakePHP cannot open the routes files for the Mail and PaymentGateway plugins. The warnings point to app/Plugin/Mail/Config/routes.php and app/Plugin/PaymentGateway/Config/routes.php. Both files are present in my website’s htdocs directory with the expected folder and file names, but the server still reports “No such file or directory.”

The warnings originate from CakePlugin::routes() in app/Config/routes.php. Could you please check why PHP cannot access these files on the server? The site still displays “An Internal Error Has Occurred.”

I have temporarily enabled debug mode to see these warnings and will turn it off again after troubleshooting.

SOLVED!!! THANKSSSS <3