disk_free_space(): Value too large for defined data type
-
Hello
i have this error in my log file :
disk_free_space(): Value too large for defined data type
File /wp-content/plugins/updraftplus/admin.php
Line 944Wordpress 4.9.8
UpdraftPlus 1.14.12
Host : https://www.ovh.comThere is a way to get available space on OVH account : https://www.crazyws.fr/dev/fonctions-php/fonction-disk-free-space-et-disk-total-space-pour-ovh-2JMH9.html
Could you add a filter on your disk_space_check() function in order to shorcut the call to disk_free_space() ?
private function disk_space_check($space) { global $updraftplus; $updraft_dir = $updraftplus->backups_dir_location(); // start edit $disk_free_space = apply_filters('UpdraftPlus_Admin_disk_space_check',false,$updraft_dir); if (false === $disk_free_space) $disk_free_space = @disk_free_space($updraft_dir); // end edit if (false == $disk_free_space) return -1; return ($disk_free_space > $space) ? true : false; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘disk_free_space(): Value too large for defined data type’ is closed to new replies.