E-Mail Notifications Page Empty

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
nxadmin

E-Mail Notifications Page Empty

Post by nxadmin »

If I go under 'Manage Configurations' and then "E-Mail Notifications' the page is empty - why is that?

We ported the Mantis installation from GoDaddy to a local server. Everything seems to work except email notifications. I setup email with a gmail account like it is explained on this board. I wanted to make sure the setting were correct and when I came to this page it is empty.

Any help/suggestion is appreciated

-nxadmin
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: E-Mail Notifications Page Empty

Post by atrol »

nxadmin wrote:"E-Mail Notifications' the page is empty
No display of e-mail settings but display of header and menu or complete empty?
Check your web server log files for errors.
Please use Search before posting and read the Manual
nxadmin

Re: E-Mail Notifications Page Empty

Post by nxadmin »

Both menu tool bars are there but nothing is displayed when I press "E-Mail Notifications".
I changed confic_inc.php to log emails log messages. I added myself as a monitor of a bug and it logged a messages in the log file as follows:

2013-05-14 09:40 EDT mail Issue #1483 monitored by user @U3
I guess I'm user U3, but I did not get an email.

I had another user submit an issue and assign it to me - nothing in the log file and no email.

Are defaults setup for what triggers an email when a change is made to an issue? I'm assuming there are some defaults, even through the E-Mail Notification page is empty. If not can I add defaults to the config_inc.php file? What is the most common defaults setting for sending emails out when an issue is modified?

btw - Mantis version is 1.2.15.

Thanks so much

-nxadmin
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: E-Mail Notifications Page Empty

Post by atrol »

nxadmin wrote:. I added myself as a monitor of a bug and it logged a messages in the log file as follows:

2013-05-14 09:40 EDT mail Issue #1483 monitored by user @U3
I guess I'm user U3, but I did not get an email.
Not surprising, it is the default setting that you don't get notified by own changes unless you set $g_email_receive_own = ON;

Again: Did you check your web server log files for errors?
Depending on your environment there may also exist a separate PHP log file.
Check also you database log file.
Please use Search before posting and read the Manual
nxadmin

Re: E-Mail Notifications Page Empty

Post by nxadmin »

I do have g_email_receive_own set to ON.

By the web server log file, I'm assuming you mean these files:

/var/log/apache2/error.log
/var/log/apache2/access.log

Nothing is written to them when tickets are changed so I'm assuming there are no errors that come up during those operations.

There used to be an error that said that "/usr/share/javascript/min does not exist" - use to happen when I go to My View, but that is not happening anymore even though the directory still does not exist.

I'd like to add email notifications configuration in config_inc.php - would you happen to know what the default setup is or the most common setup is?

Thanks

-nxadmin
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: E-Mail Notifications Page Empty

Post by atrol »

Are you sure that option is set to ON?

Code: Select all

$g_enable_email_notification = ON;
This is true unless you did change config_defaults_inc.php or override the value in config_inc.php or override the value in database using page Manage > Manage Configuration > Configuration Report

Check also your log files when opening the "E-Mail Notifications" page.
Check also your setting on page My Account > Preferences
nxadmin wrote:would you happen to know what the default setup is or the most common setup is?
The most common setup is the default setting out of the box without changing anything.
Please use Search before posting and read the Manual
nxadmin

Re: E-Mail Notifications Page Empty

Post by nxadmin »

I used the testmail.php that I saw on this board and I get the following error when I try to run it. Note that I'm nto an IT guy but it seems that the path environment variables for php is not defined correctly. If it canot find Mail.php I'm guessing there are other things that it cannot find?

PHP Warning: require_once(Mail.php): failed to open stream: no such file or directly in /var/www/.... testmail.php on line 2.

It shows that the current setting is: include_path='.:/usr/share/php:/usr/share/pear'

Does this mathc what you have for php include_path - if not what is yours and how do I change it?

-nxadmin
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: E-Mail Notifications Page Empty

Post by atrol »

I would like to concentrate on the first issue you get (the empty page) instead of starting to research other issues.
You didn't give feedback to this post until now.
atrol wrote:Are you sure that option is set to ON?

Code: Select all

$g_enable_email_notification = ON;
This is true unless you did change config_defaults_inc.php or override the value in config_inc.php or override the value in database using page Manage > Manage Configuration > Configuration Report

Check also your log files when opening the "E-Mail Notifications" page.
Check also your setting on page My Account > Preferences
Please use Search before posting and read the Manual
nxadmin

Re: E-Mail Notifications Page Empty

Post by nxadmin »

"Check also your log files when opening the "E-Mail Notifications" page."

What log files are you referring to? The ones above do not show any errors. When I go to the E-Mail Notification page it simply logs the message that it is going to that page.

"Check also your setting on page My Account > Preferences"

What should I be checking for here? Anything in particular. It simply shows me some basic config options. None of them have to do with email.

We instaleld another copy of Mantis and email works on that copy. They are configured exactly the same. Also in the second copy when I go to the E-Mail configuration it does show me a page.

We had to move the working copy from GoDaddy to a local server so we did not install that version of Mantis. We did Install the second version of manits that works. I took of difference of the file structures and they look exactly the same to me.

-nxadmin
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: E-Mail Notifications Page Empty

Post by atrol »

nxadmin wrote: "Check also your setting on page My Account > Preferences"
What should I be checking for here? Anything in particular. It simply shows me some basic config options. None of them have to do with email.
Have a look at your MantisBT copies and you will see that there are e-mail related settings.

Again
atrol wrote:Are you sure that option is set to ON?

Code: Select all

$g_enable_email_notification = ON;
This is true unless you did change config_defaults_inc.php or override the value in config_inc.php or override the value in database using page Manage > Manage Configuration > Configuration Report
I am quite sure this is your problem.
Please use Search before posting and read the Manual
nxadmin

Re: E-Mail Notifications Page Empty

Post by nxadmin »

You were absolutely correct.

You're not going to believe this but that the email_notification flag had single quotes around 'ON' instead of simply ON. I have no idea how that got changed - but nevertheless - that was the problem.

Thanks for you help

-nxadmin
Post Reply