Skip to content

error Undefined variable: vException when there is a problem with sending emails #1

@maysara

Description

@maysara

Steps to reproduce the problem:

  1. Select a new admin account
  2. Check the box for send welcome email
  3. 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 );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions