The function disk_free_space() is available on AlterVista, but it returns false.
Because of this, enabling or checking it via php.ini is not useful, since
Code:
function_exists('disk_free_space');
already returns true.
If you want to apply a manual workaroud (yes, is not a good way), you can force the check to pass by adding "return true;" at the beginning of the "check_disk_space()":
phpbb/attachment/upload.php line 303
Code:
protected function check_disk_space()
{
return true;
if (function_exists('disk_free_space'))
...
However, in my case this fix was not enough. I also had to initialize "$exitStatus" in the Symfony file:
/vendor/symfony/http-foundation/File/MimeType/FileBinaryMimeTypeGuesser.php
On line 57
Code:
ob_start();
$exitStatus = 1;
passthru('command -v file', $exitStatus);
$binPath = trim(ob_get_clean());
Otherwise, a warning like "Undefined variable $exitStatus" may occur (which may break uploads).
Bye!