Fix WordPress Plugin wp-db-backup Fails Downloading to Computer

Problem:¬†wp-db-backup fails to “Download to your computer”

Situation:

  • Running WordPress 3.5.1 subdomain Network
  • WordPress plugin wp-db-backup version 2.2.3 (current as of Mar, 2013)
  • Backup option “Save to server” works normally

Symptoms:

  • Backup option “Download to your computer,”
  • browser fails to download the backup file, no browser errors
  • wp-db-backup finishes the backup normally
  • Running in WP_DEBUG mode reveals notices and warnings
    • Notice: is_site_admin is deprecated since version 3.0! Use is_super_admin() instead. in /…/wpress/wp-includes/functions.php on line 2839
    • Warning: Cannot modify header information – headers already sent by (output started at /…/wp-includes/functions.php:2839) in /…/wp-includes/option.php on line 568
    • Warning: Cannot modify header information – headers already sent by (output started at /…/wp-includes/functions.php:2839) in /…/wp-includes/option.php on line 569

The Hack:

  • File: /…/wp-content/plugins/wp-db-backup/wp-db-backup.php
  • Replace the following line, near line 1439
if ( function_exists('is_site_admin') && ! is_site_admin() )
  • with this line:
if ( function_exists('is_super_admin') && ! is_super_admin() )

Please comment, whether you have success or not. Thank you.

Leave a comment

Your email address will not be published. Required fields are marked *

45 − = 43