Author Topic: Nuevos Pilotos!!! ERROR  (Read 2766 times)


  • Newbie
  • *
  • Posts: 22
  • Here we give you wings to fly you
    • View Profile
    • WebJet Virtual
Nuevos Pilotos!!! ERROR
« on: December 18, 2017, 02:33:08 PM »
Recibo el siguiente error abajo, fo fue recientemente, ¿alguien sabe cómo resolverlo?:( :( :( :(

 Error: An Internal Error Has Occurred.
Stack Trace

    CORE/Cake/Network/Email/MailTransport.php line 52 → MailTransport->_mail(string, string, string, string, null)
    CORE/Cake/Network/Email/CakeEmail.php line 1173 → MailTransport->send(CakeEmail)
    APP/Controller/GvausersController.php line 116 → CakeEmail->send(string)
    [internal function] → GvausersController->edit(string)
    CORE/Cake/Controller/Controller.php line 491 → ReflectionMethod->invokeArgs(GvausersController, array)
    CORE/Cake/Routing/Dispatcher.php line 193 → Controller->invokeAction(CakeRequest)
    CORE/Cake/Routing/Dispatcher.php line 167 → Dispatcher->_invoke(GvausersController, CakeRequest)
    APP/webroot/index.php line 110 → Dispatcher->dispatch(CakeRequest, CakeResponse)
« Last Edit: December 20, 2017, 10:49:19 AM by Fernando »


  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Nuevos Pilotos!!! ERROR
« Reply #1 on: January 04, 2021, 05:04:06 AM »
You can ask your host provider to increase the php variables. This worked for me.


  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Nuevos Pilotos!!! ERROR
« Reply #2 on: September 28, 2021, 12:25:46 AM »
Dear Fernando,

I encountered the same problem as you and to resolve it I asked my webhost to increase the amount of php variables.
Now the problem has returned, so I have made some modification and that works like a charm.
1. Find your  /vamcore/app/Controller/GvausersController.php
2. Edit this file by doing the following:
    Around line 111 you need to put the following as comments to add multiline comments use /* and */:
                $email = new CakeEmail('default');
                $email -> emailFormat('html');
                $email -> sender($senderemail, 'VAM system');
                $email -> to($pilotmail);
                $email -> subject('VAM - New Callsign / Pilot Activation');
                $email -> send($emailbody);
    Under it you put the following:
    $to = $pilotmail;
    $subject = "VAM - New Callsign / Pilot Activation";
    $message = "
                <title>New Callsign</title>
                <p>Dear $name,</p>
                <p>Your application is received and accepted. Please read the sections about rules of the airline good.</p>
                <p>Your new callsign is $callsign and your password is the one you have chosen during registration.</p>
                <p>We wish you to have a great time with us.</p>
                <p>Best wishes from your CEO</p>
                <p>Email generated by the Virtual Airlines Manager system</p>
                // Always set content-type when sending HTML email
                $headers = "MIME-Version: 1.0" . "\r\n";
                $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
                // More headers
                $headers .= "From: <$senderemail>\r\n";
                //$headers .= 'Cc:' . "\r\n";

With this the mail is not send as smtp, but at least the error is solved...
I hope this helps you...better later late then never.

Best regards, dohavik


  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Nuevos Pilotos!!! ERROR
« Reply #3 on: August 07, 2023, 10:37:18 PM »
Following is in English, pero soy hispanohablante, así que cualquier duda, puede ir en cualquiera de los dos idiomas. Respondo en inglés, para que más usuarios puedan enterarse.

I had a problem trying to making changes in pilots' profiles. As far as emails were not being sent, it never saved changes.

Yes, the problem is in the email config file (the one cited in installation instructions). You MUST not only introduce the admin email in line 42, but also configuring the parameters of smpt. The problem is that if your hosting mail is secured (ssl, for example) it will not work.

The solution: either use a port number which is not ssl encrypted (your hosting provider can tell you, for me was port 27) OR use "ssl://" before your mail url. I give here an example of the full email.php in config:

(from line 38):

class EmailConfig {

   public $default = array(
      'transport' => 'Mail',

In the following line substitute with a valid email registered in your hosting:

      'from' => '',         
      'charset' => 'utf-8',
      'headerCharset' => 'utf-8',

Now, the tricky part, configuring your smtp service. Please refer to your hosting info about mail server url and ports:

   public $smtp = array(
      'transport' => 'Smtp',

You can leave the next line as is (not sure if you should change it by your own parameters)

      'from' => array('site@localhost' => 'My Site'),

Here you put your hosting parameters. Change by your domain. Do not forget to use ssl:// before the mail server url
      'host' => 'ssl://',

Here put the port number your hosting provider tells you to use for the smtp server:
      'port' => 467,

Leave the next one as is
      'timeout' => 30,

Here, use the same email address you used in line 42:
      'username' => '',

Here, put the password you you use for login to your email:
      'password' => 'changethiswithyourpassword',
      'client' => null,
      'log' => false,
      //'charset' => 'utf-8',
      //'headerCharset' => 'utf-8',

Next section of email.php has to be edited too:

   public $fast = array(

Here put the admin address:
      'from' => '',

Rest is ok. Leave it as is.
      'sender' => null,
      'to' => null,
      'cc' => null,
      'bcc' => null,
      'replyTo' => null,
      'readReceipt' => null,
      'returnPath' => null,
      'messageId' => true,
      'subject' => null,
      'message' => null,
      'headers' => null,
      'viewRender' => null,
      'template' => false,
      'layout' => false,
      'viewVars' => null,
      'attachments' => null,
      'emailFormat' => null,
      'transport' => 'Smtp',

Here, just use the info you used above:
      'host' => 'ssl://',
      'port' => 467,
      'timeout' => 30,
      'username' => '',
      'password' => 'changethiswithyourpassword',
      'client' => null,
      'log' => true,
      //'charset' => 'utf-8',
      //'headerCharset' => 'utf-8',

And that is. Now CakeMail can use your smtp server to send emails.

Hope I could help a bit.

Cheers and happy airline management!

« Last Edit: August 07, 2023, 10:38:50 PM by imaginateca »