• Resolved Ember

    (@reliantember)


    BMI-1Ni67zlX-08641

    Plug-in, WordPress and Theme are up to date.
    I’m getting this error in email:
    “There was an error during automatic backup, please check the logs.
    Error: Could not make the backup due to internal server error.”

    However, backups have been made for the last 8 days.

    The log for the latest backup shows no errors.

    That said, I have the interface set to keep only 3 days of backups. Older backups aren’t being deleted. (I just went in and deleted all of the extra backups.) Perhaps that’s what’s causing the error?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author iClyde

    (@iclyde)

    Hi @reliantember

    Basing on logs of your latest backup, it seem like everything is going fine.

    Nevertheless, you have some error inside your wp-config.php file which could trigger our error handler (we handle all errors on the website, to make sure there are no conflicts during backup/restore process).

    Please, open your wp-config.php file and find and line with “HTTP_HOST” string. Remove it or adjust, currently it makes error in every request on your site.

    Regarding automatic removal, it does not count “locked” backups, all manually created backups are locked.

    If you checked backups directory in FTP or file manager, our plugin won’t touch any backups that could be created but some error happened, nevertheless if they’re not displayed on backup(s) list inside our plugin, it’s very likely that they are not complete or they’re damaged.

    We keep these backups for corner cases, while user does not have anything else but damaged backup (in some cases, we’re able to recover most files and at least try to save some time for that user).

    So, automatic removal should only remove backups that are visible on our backup(s) list and only these that are not “locked”.

    Let me know if removal of that HTTP_HOST thing inside your wp-config.php file will resolve “Internal server error” e-mails.

    Thank you!

    Thread Starter Ember

    (@reliantember)

    Thanks for the help.
    
    Does your request regarding my wp-config.php file mean I should remove this entire portion of the script?
    
    -----
    
    if (preg_match("/^(.*)\.dream\.website$/", $_SERVER['HTTP_HOST'])) {
    
    $proto = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https" : "http";
    
    define('WP_SITEURL', $proto . '://' . $_SERVER['HTTP_HOST']);
    
    define('WP_HOME', $proto . '://' . $_SERVER['HTTP_HOST']);
    
    define('JETPACK_STAGING_MODE', true);
    
    }
    
    -----
    
    Thanks for your further help!
    Plugin Author iClyde

    (@iclyde)

    Hi @reliantember

    Yes seems like your web server does not provide “HTTP_HOST”, nevertheless, it’s quite unusual configuration.

    I noticed that you already confirmed the solution within review, thank you very much for that! ??

    Thread Starter Ember

    (@reliantember)

    Well, hmm, I don’t recall marking this solved. I did have that question in my last response above. Here it is again:

    Does your request regarding my wp-config.php file mean I should remove this entire portion of the script?

    if (preg_match("/^(.*)\.dream\.website$/", $_SERVER['HTTP_HOST'])) {
    
    $proto = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https" : "http";
    
    define('WP_SITEURL', $proto . '://' . $_SERVER['HTTP_HOST']);
    
    define('WP_HOME', $proto . '://' . $_SERVER['HTTP_HOST']);
    
    define('JETPACK_STAGING_MODE', true);
    
    }

    Thanks for your further help!

    Plugin Author iClyde

    (@iclyde)

    Hi @reliantember

    Ah, I think I misunderstood you a bit.

    Yes you can remove or comment (by adding double slash // at the beginning of each line) that part of code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Backups not being deleted’ is closed to new replies.