Page 2 of 2

Re: How to change the link created from EmailReporting Plugin

Posted: 01 Feb 2021, 21:20
by SL-Gundam
It's a webpage on your webserver within your MantisBT installation. You shouldn't check the source code of the file

Re: How to change the link created from EmailReporting Plugin

Posted: 01 Feb 2021, 21:25
by SL-Gundam
I've got a windows installation using IIS webserver so works differently

This is the recommended linux method through cronjob: https://github.com/mantisbt-plugins/Ema ... #L120-L121
This is the recommended windows method using task scheduler: https://github.com/mantisbt-plugins/Ema ... #L129-L130
"Block this script from running via a webserver (recommended = "Yes")" should be set to "Yes". Only set it to "No" for testing and special circumstances

Re: How to change the link created from EmailReporting Plugin

Posted: 02 Feb 2021, 08:59
by m0vidaHattie
My cronjob on my Linux Server under root user is:

*/5 * * * * /bin/php /var/www/itsupport.linakis.com/plugins/EmailReporting/scripts/bug_report_mail.php

Re: How to change the link created from EmailReporting Plugin

Posted: 02 Feb 2021, 09:14
by m0vidaHattie
Posting the results from file adm_config_report.php

Image
Image

Re: How to change the link created from EmailReporting Plugin

Posted: 02 Feb 2021, 09:52
by SL-Gundam
Like stated here https://www.mantisbt.org/forums/viewtop ... 321#p71321
It's a webpage, so open it in a browser

Re: How to change the link created from EmailReporting Plugin

Posted: 02 Feb 2021, 10:00
by m0vidaHattie
Sorry i didnt understand it before.

The result is:
Image

Re: How to change the link created from EmailReporting Plugin

Posted: 02 Feb 2021, 16:34
by SL-Gundam
That is the desired domain name.

Problem is, is that periodically it is overwritten with https://40.113.150.68:443/ and apparently also the old domain name.

Since we don't know what causes the different values and i cannot look into your environment to see what is happening i advise the following
  1. Remove this line: https://github.com/mantisbt-plugins/Ema ... g.php#L326
    That will stop the automatic update of the variable plugin_EmailReporting_mail_mantisbt_url_fix
  2. Manually correct if necessary the URL in the variable here: https://www.mantisbt.org/forums/viewtop ... 327#p71327
Keep in mind that when updating EmailReporting to a new version you will have to perform the above steps again

Re: How to change the link created from EmailReporting Plugin

Posted: 03 Feb 2021, 08:37
by m0vidaHattie
Dear Sl-Gundam

Problem solved.
IMaybe the problem was that in nginx server on the sites-enabled folder, the folder had been remained with the old domain.
I renamed it to the new domain and also created a new sym link

Now everything seems to work as expected.

Thank you very much for your help.

Now i am facing another issue, which i will open a new ticket.

Thank you.