localhost link shown in mail from bulk user upload

localhost link shown in mail from bulk user upload

by chris Jangelov -
Number of replies: 3

If I add a user manually it sends an email with id+password+link that is correct.

If I upload users the mail sends id+password+ http://127.0.0.1:80/login/


The error is new from yesterday.

We have changed settings but I can't remember changing anything to "localhost". If you suspect that, where should I look for such a setting?

We have made crome working.

We have changed the smtp to our Google domain (but I think the error appeared before that when we used another external sptp server)

Any tip regarding this error would be most appreciated!

Thanks.

/chris

Moodle 3.2.1 (Build: 20170109)

Average of ratings: -
In reply to chris Jangelov

Re: localhost link shown in mail from bulk user upload

by Liam Megson -

I am also getting this error which I've never seen before.

In reply to chris Jangelov

Re: localhost link shown in mail from bulk user upload

by chris Jangelov -

This is what we found out:

It might be a common problem to the solution provided by the Bitnami stack.

This is the solution we came up with:


in the  root directory of moodle (moodle or htdocs folder) config.php file i've changed:
if (empty($_SERVER['HTTP_HOST'])) {
    $_SERVER['HTTP_HOST'] = 'our.real.url';


Hope it could be of some help to someone.

/chris

Average of ratings: Useful (1)