Closed rroblik closed 9 months ago
Hi @rroblik, can you explain how are you running the bitnami/moodle container and what environment variables are you using to configure it? Thanks! Please check:
Hi @andresbono, I have the same issue. my docker-compose.yml contains: environment:
As mentioned before, async email (sended out using moodle cron / task) contains a wrong URL , others are good. Use Case - OK user creation done manully. Email is sent using the correct URL when I'm using {$a->link} ----> ttps://mylmsname.mydomain.ch Use Case - NOK user creation done with CSV import. Email is sent using the wrong URL when I'm using {$a->link} -----> http://127.0.0.1:8080/login/?lang=it
Hi @andreagiuseppecolombo, can you confirm that you experience the issue only with cron / task?
I'm asking because in your "NOK" use case, you are describing that the url is wrong when importing users via CSV. Does the CSV import method implies using cron and that is way you observe the issue in that way?
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
I have exactly the same problem using the image on a kubernetes environment. @rroblik, did you find a way to modify the helm chart or something to pass the value to the config.php ?
Name and Version
bitnami/moodle:4.2
What architecture are you using?
None
What steps will reproduce the bug?
What is the expected behavior?
See
https://mysite.com/*
linksWhat do you see instead?
See
http://127.0.0.1:8080/*
linksAdditional information
Seems that async email (sended out using moodle cron / task, others are good) are not able to "discover automatically" the current FQDN.
Here is a
$event_data
dump value for such type of email (from nativemoodle/message/output/email/message_output_email.php::send_message()
) ; (in 🇫🇷 ) we can see the wrong FQDNSee also : https://moodle.org/mod/forum/discuss.php?d=395414#p1685200
Workaround is to edit
config.php
file with hardcoded value but.... !Thanks