After I updated the PHP from Version 7.4.33 to Version 8.0.25,
I come to get 'Unsupported operand types: string / int' error when I select a file from backend.
I'm using Joomla! 3.10.11 and PhocaDownload Version 3.2.3.
The Error is raised at /administrator/components/com_phocadownload/libraries/phocadownload/file/file.php:32.
I could fix the error by replacing the line,
from
Code: Select all
if ($sizestring != $lastsizestring) { $size /= 1024; }
Code: Select all
if ($sizestring != $lastsizestring) { $size = intval($size) / 1024; }