Reminder Plugin for mantis 2.X

General discussion of Mantis.

Moderators: Developer, Contributor

amphetamine
Posts: 122
Joined: 05 Jun 2019, 00:17

Re: Reminder Plugin for mantis 2.X

Post by amphetamine »

finally,

Code: Select all

Finished Reminder Test
Thank you!
Cy4n
Posts: 2
Joined: 18 Jan 2022, 15:01

Re: Reminder Plugin for mantis 2.X

Post 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
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post 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:
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post 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
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post by cas »

Are you running unde Windows or Linux?
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post by atorde »

Linux, in a private hosting. ionos
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post 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:
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post by atorde »

error 500 keeps appearing
Image
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post by cas »

and if you use /usr/local/bin/php , still the same issue?
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post 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
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post 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.
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post 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
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post 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?
atorde
Posts: 17
Joined: 17 Jun 2024, 15:34

Re: Reminder Plugin for mantis 2.X

Post 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?
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Reminder Plugin for mantis 2.X

Post by cas »

the test scripts you can run from the browser, no problem
Post Reply