We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20135
    • 188 Posts
    Hi,

    In trying to use the MODx Backup tool to backup one of my sites’ database using 0.9.6.3, I’m finding that the download is being cancelled before I even get to save the .sql file. I’ve had success at fixing this by opening the backup manager frame in a new window, removing the "s" from the "https://", reloading the page and downloading from there. But of course this goes around the SSL Cert, which is pointless.

    I’ve tried to edit the bkmanager.static.php file on line 104 to the following to counter this:
    <p style="width:100%;"><a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/manager/#" onclick="submitForm();return false;">...
    or
    <p style="width:100%;"><a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/manager/#" target="_new" onclick="submitForm();return false;">...
    
    but have had no luck with these attempts or variations of them.

    Is there any reason why this might be the case, and is there anything that can be done about it to fix it? I’m unable to use any browser than IE7, though I’ve had the same result on IE6 as well.
      • 20135
      • 188 Posts
      Have found the solution. This link on the PHP website helps bring clarity to the problem:

      http://www.php.net/manual/en/function.header.php#95604

      Fix to be added at line 24 of /manager/actions/bkmanager.static.php:
      header('Expires: 0');		
      header('Cache-Control: private');
      header('Pragma: cache')
      


      This fix is yet to be implemented in version 1.0.3, will post there also.