My AutoBackup plugin is not emailing me the backup file and is looks to be producing some errors:

E_WARNING: fopen() expects parameter 1 to be a valid path, string given
/var/www/html/cmsb/3rdParty/SwiftMailer5/classes/Swift/ByteStream/FileByteStream.php (line 142)
E_USER_NOTICE: Unable to open file for reading [?
/var/www/html/cmsb/lib/common.php (line 1368)

Could someone please shed some light on what might be going wrong and how I might be able to fix this?

Thank you,


By daniel - October 31, 2018

Hi Greg,

At first glance, it looks like the backup file is not being found when the plugin attempts to send the email; likely either the backup is not being created, or it's looking in the wrong place. Were the backup emails working previously? Can you check to see if the backup files are being generated correctly? Also, what version of CMSB and AutoBackup are you using?


PHP Programmer

Hi Daniel,

Thanks for the reply. I have fixed this by updating the backup plugin to the latest version. I'm not sure what version I was using but it was quite an old one...

Thanks again,