• Resolved Vince992001

    (@vince992001)


    I only get the emailed notifications when I manually run a backup.

    Automatic backups do not receive the email. I have checked the junk mail folder.

    Here are the final few lines of the log after a manual backup, where the email was successfully sent:
    There were no errors in the uploads, so the ‘resume’ event (2) is being unscheduled
    0383.327 (1) Fetching RSS news feed
    0383.653 (1) Fetched RSS news feed; result is a: SimplePie
    0383.682 (1) Sending email (‘Files and database (Full backup)’) report (attachments: 0, size: 0 KB) to: earth…
    0383.964 (1) The backup apparently succeeded and is now complete

    Here are the final few lines of an automatic backup log, that failed to send the email:
    There were no errors in the uploads, so the ‘resume’ event (1) is being unscheduled

    0201.239 (0) Fetching RSS news feed

    0201.801 (0) Fetched RSS news feed; result is a: SimplePie

    0202.010 (0) Sending email (‘Files and database (Full backup)’) report (attachments: 0, size: 0 KB) to: earth…

    0202.057 (0) PHP event: code E_NOTICE: Undefined index: SERVER_NAME (line 330, wp-includes/pluggable.php)

    0202.121 (0) The backup apparently succeeded and is now complete

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor DNutbourne

    (@dnutbourne)

    Hi,

    It appears that the SERVER_NAME constant is not being set on the site when the scheduled backups trigger.
    You can ensure that this is set by adding the following code to your wp-config.php file:

    if(!isset($_SERVER['SERVER_NAME'] )) {
    $_SERVER['HTTP_HOST'] = $_SERVER['SERVER_NAME'] = 'example.com';
    }

    replacing the example URL. This should allow the emails to be sent.

    Thread Starter Vince992001

    (@vince992001)

    Thanks for the info.

    Does this code need to be put any particular section in the file?
    And does it need a prefix/suffix, or just paste it in as is?

    Thanks

    Plugin Contributor aporter

    (@aporter)

    Hi,

    There is a comment in the file like this:

    “/* That’s all, stop editing! Happy blogging. */”

    Just paste it on it’s own line above that comment and it will be fine.

    Best Wishes,

    Ashley

    Thread Starter Vince992001

    (@vince992001)

    I’m just realizing that I don’t know which server name we are talking about here. Is it the Godaddy server for the website. or the incoming or outgoing email server for the Hotmail account that the email is being sent to?

    Thanks

    Plugin Contributor DNutbourne

    (@dnutbourne)

    Hi,

    Apologies for the delay. It appears that the forums buried your reply.

    This is referring to the site’s server. The URL should be the URL of the site.

    Thread Starter Vince992001

    (@vince992001)

    OK thanks, I’ll give it a try this weekend.

    Should the site url include the http: and the www. ?

    Thanks

    Plugin Contributor DNutbourne

    (@dnutbourne)

    Hi,

    Apologies. The site URL should include the full URL.

    Was the issue resolved?

    Thread Starter Vince992001

    (@vince992001)

    I put in the full url and it still failed.

    But I think I’ve resolved it. I was assuming that since it gave me a notification after a manual backup, that notifications were in fact set up completely.

    But I was poking around in settings and found an Email option that I turned on, and now I am getting notifications of automatic backups too.

    So I believe now that notification of manual backup but not of automatic backup is the default setting. I had just never changed it.

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Email notifications only being sent after manual backups’ is closed to new replies.