[GH-ISSUE #1] error Undefined variable: vException when there is a problem with sending emails #2

Closed
opened 2026-02-26 09:35:03 +03:00 by kerem · 1 comment
Owner

Originally created by @maysara on GitHub (Aug 24, 2011).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/1

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 );

Originally created by @maysara on GitHub (Aug 24, 2011). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/1 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 );
kerem closed this issue 2026-02-26 09:35:03 +03:00
Author
Owner

@barryo commented on GitHub (Aug 24, 2011):

Thanks maysara.

Fixed in: github.com/opensolutions/ViMbAdmin@28da8724a0

and will be included in the next release.

<!-- gh-comment-id:1890472 --> @barryo commented on GitHub (Aug 24, 2011): Thanks maysara. Fixed in: https://github.com/opensolutions/ViMbAdmin/commit/28da8724a094a3ea12e0e2acd2d733be5a7a3083 and will be included in the next release.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#2
No description provided.