-
Notifications
You must be signed in to change notification settings - Fork 103
error Undefined variable: vException when there is a problem with sending emails #1
Description
Steps to reproduce the problem:
- Select a new admin account
- Check the box for send welcome email
- let it be that there is a problem with sending the welcome email
Expected output:
Account success creation, and error/warning about failing to send email
instead i get:
Notice: Undefined variable: vException in /usr/local/vimbadmin-0.2.5/application/controllers/AdminController.php on line 370 Fatal error: Call to a member function getTraceAsString() on a non-object in /usr/local/vimbadmin-0.2.5/application/controllers/AdminController.php on line 370
What version of the product are you using? On what operating system?
I'm using version 2.5
I've done the changes below (compare commented line with the one below it)
365
366 $mailer->send();
367 }
368 catch( Exception $e )
369 {
370 //$this->getLogger()->debug( $vException->getTraceAsString() );
371 $this->getLogger()->debug( $e->getTraceAsString() );
372 $this->addMessage( _( 'Could not send welcome email' ), ViMbAdmin_Message::ALERT );
373 }
374 }
375
376 $this->addMessage( _( 'You have successfully added a new administrator to the system.' ), ViMbAdmin_Message::SUCCESS );