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.