Error in Notification http://127.0.0.1/report/insights/insights.php

Keywords: Moodle - Google Cloud Platform - Technical issue - Other
bnsupport ID: c8e524d9-d9cd-8f68-cea9-6d8e5511ed31
Description:
When I get a notification, the URL always opens in
127.0.0.1 and not on my domain, the documents at the following URL were not found. https://docs.bitnami.com/google/apps/moodle/administration/update-ip-hostname/

I use moodle 3.10

Hi @gian_pierre_147

It seems like the documentation is missing because there is no need (commonly) to change to modify its hostname. Could you please tell us what are the steps to follow so that we are able to reproduce the issue?

Best regards,
Jose Antonio Carmona


Was my answer helpful? Click on :heart:

Hi, I had the same problem, you can fix it in the following way, change the host for your domain in your config.php files

if (empty($_SERVER[‘HTTP_HOST’])) {
$_SERVER[‘HTTP_HOST’] = ‘127.0.0.1:80’;
};

if your domain is mysite.com. it should look like this

if (empty($_SERVER[‘HTTP_HOST’])) {
$_SERVER[‘HTTP_HOST’] = ‘mysite.com’;
};

Hello,
Yes of course I already made that change and restart apache, however it keeps giving me the same error.

The error is in notification:
image

Hello,
The error is in notification:
image

This link go to: http://127.0.0.1/report/insights/insights.php?modelid=2&contextid=1

I already configure the moodle config.php and restart apache and it keeps crashing

Hi @gian_pierre_147,

Can you ask in the Moodle official forums for help on this? Please note this is a question fully related with Moodle and that the official developers can give you better support on their product than we can.

https://moodle.org/mod/forum/index.php?id=564

Regards,
Michiel

Hi, you need change here:
image
If yo site is http://mysite.com, use only ‘mysite.com

1 Like

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