mantisbt-plugins / Reminder

This plugin can be used to send periodic email reminders to bug reporters, managers, and assignees.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem running reminder from commandline

froth opened this issue · comments

Hi,

I have the following issue which I don't understand.

After a while of debugging bug_reminder_mail.php I have the following behaviour.

If I remove the ( php_sapi_name() != 'cli' ) and run the script from the browser I do get mail reminders.

If I however run the script using php from cli I don't get any mail reminders.

php version 5.4.23 mantis 1.2.15.

Any idea?

Greetings,

Fred

Most likely your php mail configuration is not the same for cli vs web, e.g. on Ubuntu you have 2 different files /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini

Hi,

thanks for you help! I checked that and there is only one php.ini file on fedora. Additionally I switched "store reminders" on in the config and now I get comments when running from the browser and no comments when running from command line. I therefore think email settings are not the core problem.

I checked that and there is only one php.ini file on fedora

I don't use Fedora, but according to the man page this is not true.

Yeah apparently you are right. However on my system there is no php-cli.ini and therefore both php and php-cgi use the same. But even if there were two versions that would not explain the comments-issue.

Is there anything I can do to further debug this?

I don't actually use this plugin, I just help maintain the repo... so I'm afraid I won't be of much help. I suggest you try and contact Cas (plugin author).

Ok, anyway thanks for your help so far.