When I submit the form in /admin/users/add I get a warning "Something went wrong. Please contact the administrator.". The output on the server is:
192.168.1.67 - - [08/Feb/2014:23:17:38 +0100] "GET /admin/users/add HTTP/1.1" 200 11147 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0"
Odd number of elements in anonymous hash at /root/perl5/perlbrew/perls/perl-5.19.8/lib/site_perl/5.19.8/x86_64-linux/Template/Base.pm line 57.
Use of uninitialized value within @_ in anonymous hash ({}) at /root/perl5/perlbrew/perls/perl-5.19.8/lib/site_perl/5.19.8/x86_64-linux/Template/Base.pm line 57.
The relevant piece of code in User.pm:
Email::Template->send( config->{email_templates} . 'welcome.tt',
{
From => 'no-reply@PearlBee.com',
To => $email,
Subject => 'Welcome to PearlBee!',
tt_vars => {
role => $role,
username => $username,
password => $password,
first_name => $first_name,
url => config->{app_url}
},
}) or error "Could not send the email";
};
When I submit the form in /admin/users/add I get a warning "Something went wrong. Please contact the administrator.". The output on the server is:
The relevant piece of code in User.pm: