I updated php from 7.4 to php 8 in Joomla 3.10, when I click on the phoca category it shows the following error below:
PHP Fatal error: Array and string offset access syntax with braces is no longer supported in /home/intranet/www/components/com_jce/editor/libraries/classes/utility.php at line 301, referrer: https:/ /badmgifp. eb.mil.br:52443/administrator/index.php?option=com_phocadownload&view=phocadownloadcats
follows line 301 of the utility.php file
* Convert size value to bytes
*/
public static function convertSize($value)
{
// Convert to bytes
switch (strtolower($value{strlen($value) - 1})) {
case 'g':
$value = intval($value) * 1073741824;
break;
case 'm':
$value = intval($value) * 1048576;
break;
case 'k':
$value = intval($value) * 1024;
break;
}
Phoca Download no php 8
-
- Phoca Newbie
- Posts: 6
- Joined: 05 Jan 2023, 21:09
Re: Phoca Download no php 8
any suggestion?
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download no php 8
If you find Phoca extensions useful, please support the project