wp-db-backup icon indicating copy to clipboard operation
wp-db-backup copied to clipboard

Undefined index: wp_db_temp_dir

Open chrispink opened this issue 6 years ago • 0 comments

This is not a consistent error and may be (as in I don't know if it is or isn't) attributable to a permissions error in the WP install but this error;

Undefined index: wp_db_temp_dir

is thrown by line 112

$requested_temp_dir = sanitize_text_field($_GET['wp_db_temp_dir']);

There appears to be a workaround replace line 112 with

if (isset($_GET['wp_db_temp_dir'])) {
    $requested_temp_dir = sanitize_text_field($_GET['wp_db_temp_dir']);
}

but I don't know if this truly 'works' in all situations.

chrispink avatar Oct 29 '18 10:10 chrispink