When media directory size is over 2 gigabytes it shows as negative ( -2.0 GB )
This is not a bug in 4images itself, but its limitation of
intval() function which can only handle numbers between -2147483648 and 2147483647
As of now, the only sollution I know is dont use that function on numbers larger then 2147483647
Open
includes/functions.phpFind:
$file_size = intval($file_size);
Replace with:
/*
FIX NEGATIVE NUMBERS
ORIGINAL BLOCK:
$file_size = intval($file_size);
*/
/*
FIX NEGATIVE NUMBERS
START REPLACE
*/
if ($file_size < 2147483648)
{
$file_size = intval($file_size);
}
/*
FIX NEGATIVE NUMBERS
END REPLACE
*/