Error - Perl execution failed

I updated Virtualmin this morning to the latest version.
The install went correctly with no errors.

I am now getting an error trying to add a new email to any domain.
The error is as follows.

Error - Perl execution failed

Undefined subroutine &virtual_server::read_cached_file called at /usr/share/webmin/virtual-server/virtual-server-lib-funcs.pl line 936.

The email is created but appears to have errors aswell.
I can login to the email via pop without an issue but if i send an email i get a bounce back with the following error.

Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; can't create user output file

My gut feeling is the home directory for the email is not being created due to the Perl issue but i am unable to work out why or fix it.

Any ideas?

Status: 
Closed (fixed)