You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you update EE6, the process will stop on preflight if it can’t figure out the available disk space. On shared hosting the available disk space can be hidden so the disk_free_space($path) PHP function will return FALSE preventing the live update to run even if it could.
getFreeDiskSpace() in Filesystem.php, is using disk_free_space($path) which can either return a float or FALSE, but in checkDiskSpace() in Preflight.php the returned value is treated as a number so if it gets FALSE, it fails assuming there is 0 available disk space.
Description of the problem
When you update EE6, the process will stop on preflight if it can’t figure out the available disk space. On shared hosting the available disk space can be hidden so the
disk_free_space($path)
PHP function will return FALSE preventing the live update to run even if it could.getFreeDiskSpace()
inFilesystem.php
, is usingdisk_free_space($path)
which can either return afloat
orFALSE
, but incheckDiskSpace()
inPreflight.php
the returned value is treated as a number so if it getsFALSE
, it fails assuming there is 0 available disk space.Environment Details:
Possible Solution
system/ee/ExpressionEngine/Service/Updater/Downloader/Preflight.php
Line 94
if ($free_space < 52428800) {
This line should take into account that
$free_space
can beFALSE
Maybe just warn or prompt the user to decide if he wants to proceed anyway?
The text was updated successfully, but these errors were encountered: