How to change the link created from EmailReporting Plugin

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: How to change the link created from EmailReporting Plugin

Post by SL-Gundam »

It's a webpage on your webserver within your MantisBT installation. You shouldn't check the source code of the file
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: How to change the link created from EmailReporting Plugin

Post 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
m0vidaHattie
Posts: 26
Joined: 18 Jan 2021, 09:10

Re: How to change the link created from EmailReporting Plugin

Post 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
m0vidaHattie
Posts: 26
Joined: 18 Jan 2021, 09:10

Re: How to change the link created from EmailReporting Plugin

Post by m0vidaHattie »

Posting the results from file adm_config_report.php

Image
Image
Attachments
mantisbt1.png
mantisbt1.png (50.6 KiB) Viewed 5276 times
mantisbt2.png
mantisbt2.png (45.33 KiB) Viewed 5276 times
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: How to change the link created from EmailReporting Plugin

Post by SL-Gundam »

Like stated here https://www.mantisbt.org/forums/viewtop ... 321#p71321
It's a webpage, so open it in a browser
m0vidaHattie
Posts: 26
Joined: 18 Jan 2021, 09:10

Re: How to change the link created from EmailReporting Plugin

Post by m0vidaHattie »

Sorry i didnt understand it before.

The result is:
Image
Attachments
mantisbt3.png
mantisbt3.png (7.96 KiB) Viewed 5260 times
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: How to change the link created from EmailReporting Plugin

Post 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
m0vidaHattie
Posts: 26
Joined: 18 Jan 2021, 09:10

Re: How to change the link created from EmailReporting Plugin

Post 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.
Post Reply