BoldGrid / boldgrid-backup

The Total Upkeep plugin.
GNU General Public License v2.0
11 stars 9 forks source link

[Bug] Unable to restore backups on some GoDaddy accounts #184

Open joe9663 opened 4 years ago

joe9663 commented 4 years ago

Describe the bug Some GoDaddy accounts cannot restore backups, 500 error produced when trying to run the restoration.

Fatal error: Uncaught Error: Class 'ZipArchive' not found in /home/user/public_html/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-restore-helper.php:242 Stack trace: #0 /home/user/public_html/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php(2180): Boldgrid_Backup_Admin_Restore_Helper->set_writable_permissions('/home/yneisrpij...') #1 /home/user/public_html/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php(2682): Boldgrid_Backup_Admin_Core->restore_archive_file() #2 /home/user/public_html/wp-includes/class-wp-hook.php(288): Boldgrid_Backup_Admin_Core->wp_ajax_restore('') #3 /home/user/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array) #4 /home/user/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /home/user/public_html/wp-admin/admin-ajax.php(175): do_action('wp_ajax_boldgri...') #6 {main} thrown in /home/user/public_html/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-restore-helper.php on line 242

Expected behavior If ZipArchive is not available on the server then Total Upkeep should at least report to users that the required functionality is not available to restore a backup.

joe9663 commented 4 years ago

Enabling the zip extension in the server PHP version settings fixed the problem and restorations now run successfully.