Page 2 of 4

Re: Reminder Plugin for mantis 2.X

Posted: 31 Jul 2019, 10:50
by amphetamine
finally,

Code: Select all

Finished Reminder Test
Thank you!

Re: Reminder Plugin for mantis 2.X

Posted: 19 Jan 2022, 09:18
by Cy4n
Hi,
when I´m accessing bug_reminder_mail.php
I´m getting error:

"It is not allowed to run this script with PHP SAPI name: fpm-fcgi."

do you have some hint how to fix this?
I´m using Apache 2.4 & php 7.4:

PHP Version 7.4.18
Database Driver mysqli
Database Version, Description 10.3.29, 10.3.29-MariaDB

Re: Reminder Plugin for mantis 2.X

Posted: 19 Jan 2022, 13:29
by cas
That script cannot be run in the foreground, needs to be scheduled.
However there is a test version available (same directory) which allows you to test the functionality :mrgreen:

Re: Reminder Plugin for mantis 2.X

Posted: 17 Jun 2024, 15:35
by atorde
Hello,
I have BT version 2.26.2 and Reminder version 2.21 installed.
I have installed the component and configured the front options. Additionally I have configured the confg_inc.php variable:
$g_path = 'https://tickets.bitcrumb.es/' and I have deleted the .htaccess file
When I launch the scripts from putty ssh (bug_reminder_mail_test.php, bug_reminder_mail.php, bug_feedback_mail_test.php, bug_feedback_mail.php or test.php) nothing happens and no message is displayed. The way to launch them is: php -f bug_feedback_mail_test.php
If I launch the scripts from a browser the following happens:
test.php--> shows only the Starting Program message and nothing else.
If I launch the bug_reminder_mail_test.php or bug_feedback_mail_test.php scripts it shows me a 500 error.
What am I doing wrong?

Thank you so much

Re: Reminder Plugin for mantis 2.X

Posted: 17 Jun 2024, 20:03
by cas
Are you running unde Windows or Linux?

Re: Reminder Plugin for mantis 2.X

Posted: 17 Jun 2024, 20:09
by atorde
Linux, in a private hosting. ionos

Re: Reminder Plugin for mantis 2.X

Posted: 17 Jun 2024, 20:19
by cas
So you woould run it like:
/usr/local/bin/php /path/to/mantis/plugins/Reminder/scripts/bug_reminder_mail_test.php
The above assumes php is installed in /usr/local/bin :mrgreen:

Re: Reminder Plugin for mantis 2.X

Posted: 18 Jun 2024, 06:01
by atorde
error 500 keeps appearing
Image

Re: Reminder Plugin for mantis 2.X

Posted: 18 Jun 2024, 08:23
by cas
and if you use /usr/local/bin/php , still the same issue?

Re: Reminder Plugin for mantis 2.X

Posted: 18 Jun 2024, 10:16
by atorde
Image

With that path it doesn't seem to find the php statement.
I have looked and from the ssh it seems that the php command uses version 4.4.9 but from the web browser it uses version 8.3

Image

Image

If I use the path where the php resides, the 500 error does not appear

Image

Re: Reminder Plugin for mantis 2.X

Posted: 18 Jun 2024, 11:35
by cas
You can update the php version for your CLI too:

Code: Select all

sudo update-alternatives --set php /usr/bin/php8.3
Now the script is running without errors. Output depends on your settings of the plugin within Mantis.

Re: Reminder Plugin for mantis 2.X

Posted: 18 Jun 2024, 18:05
by atorde
I am on private hosting (Ionos.es) and the use of SUDO is not allowed. The only solution they offer is to execute the following command from SSH
Image

The plugin configuration I have is the following
Image

And here is an example of an incident that meets the requirements for the reminder.
Emails from the Mantis system are received perfectly, so I rule out that being the problem
Image

Re: Reminder Plugin for mantis 2.X

Posted: 19 Jun 2024, 06:28
by cas
with a limit of 2 days, this ticket was not yet apoplicable. Please use one with a clear date withing the timeframe.
Also did you check that email works fom the commandline? Are your mail settings correct in php.ini?

Re: Reminder Plugin for mantis 2.X

Posted: 20 Jun 2024, 09:11
by atorde
The ticket with the previous due date should work the same because there is a parameter in the plugin that indicates whether past due dates are ignored and I have it set to off.

Image

On the other hand, I cannot change the php.ini file in the ssh console because it is on shared hosting and it is not allowed.
I understand that the email works correctly because both Mantis and the triggerClose 0.1 plugin are sent correctly. Is there any other way through the web browser to check its operation?

Re: Reminder Plugin for mantis 2.X

Posted: 20 Jun 2024, 09:29
by cas
the test scripts you can run from the browser, no problem