WordPress.org

Ready to get started?Download WordPress

Forums

BackWPup Free - WordPress Backup Plugin
[Plugin: BackWPup] No email is sent when archive is too big to be sent (5 posts)

  1. jsavage
    Member
    Posted 3 years ago #

    Great plugin - so thanks to its creators.

    One small issue so far through - namely that no email is sent ( or at least received) when archive is too big to be sent.

    The email adddress I am using is the same as that used in another Job that just backs up the database and it works there - so I know it's a good address.

    The tick box (only send on error) doesn;t seem to make any difference in this case.

    Has anyone else seen this? Is there a workaround yet?

    Regards,

    James

  2. jsavage
    Member
    Posted 3 years ago #

    Ok, whilst I haven't been able to prove why emails are not sent I beleive it may be because in the __destruct() method, the sending of the log file is done using wp_send and not the phpmailer method as used in destination_mail(). So I have patched my version of backwpup_dojob.php as shown below. This now works for me and copies me with a second email containing a hyperlink to the log file. There is one string constant for the path to the log file. The existing fn for log file directory ( $this->logdir.$this->logfile ) does not correctly report the path on my windows-based host but your mileage may vary.

    Hopefully this may be of assistance to others.

    If anyone sees any issues with this please comment accordingly.
    [HUGE chunk of code moderated as per the Forum Rules. Please use the pastebin]

  3. jsavage
    Member
    Posted 3 years ago #

    The code above was truncated so here is the code from the begining of private function destination_dir()
    This is where the changes are...

    [Another huge chunk of code moderated as per the Forum Rules. Please use the pastebin]

  4. jsavage
    Member
    Posted 3 years ago #

    OK not come across pastebin before. If my attempt at embedding below doesn't work then the pastebin reference is daDEfN2

    <script src="http://pastebin.com/embed_js.php?i=daDEfN2t"></script>
    IFrame Embedding (you can set the frame height by adding the CSS value 'height:100px;' for example)
    <iframe src="http://pastebin.com/embed_iframe.php?i=daDEfN2t" style="border:none;width:100%"></iframe>

    James

  5. Daniel Hüsken
    Member
    Plugin Author

    Posted 3 years ago #

    wp_mail function uses som cache featurs i will change it in next version to phpmailer too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags