Jump to content

phpvms sending retired pilot emails to active pilots


Recommended Posts

Posted

This monts aleatory the airline pilots are reciving a email with this topic:

SITE_NAME: You've been marked as retiredâ€

Why is phpvms sending emails to active pilots?

  • Moderators
Posted

Probably you must have set the auto pilot retirement to true. Go to you local.config.php file, find this:

Config::Set('PILOT_AUTO_RETIRE', true);

and replace it with this:

Config::Set('PILOT_AUTO_RETIRE', false);

  • 2 years later...
  • Moderators
Posted

Sorry, for bringing up an old thread but is there any answer to this?  I'm having the same issue with the system sending these out to active pilots.  I have 

Config::Set('PILOT_AUTO_RETIRE', false);

But it still sends it out to active pilots (and doesn't mark them as retired).  It's just annoying as I have had a few of our pilots worry when they receive this email.

  • Moderators
Posted

Go to your admin/maintenance.php and let us know what you have on line #40? The should be something like this:

if(Config::Get('PILOT_AUTO_RETIRE') == true) {
	/* Find any retired pilots and set them to retired */
	PilotData::findRetiredPilots();
	CronData::set_lastupdate('find_retired_pilots');
}

Does it exist?

  • Moderators
Posted

Yes, I have the following:

 

if(Config::Get('PILOT_AUTO_RETIRE') == true)
{
	/* Find any retired pilots and set them to retired */
	PilotData::findRetiredPilots();
	CronData::set_lastupdate('find_retired_pilots');
}

 

  • Moderators
Posted

Where have you this set?

Config::Set('PILOT_AUTO_RETIRE', false);

Is it inside your local.config.php or app.config.php? Could you please check both files?

  • Moderators
Posted
3 hours ago, servetas said:

Where have you this set?


Config::Set('PILOT_AUTO_RETIRE', false);

Is it inside your local.config.php or app.config.php? Could you please check both files?

Hey servetas,

I have it set to false in both the local and app config files.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...