PHP error: Array offset access syntax with curly braces is no longer supported

More
2 years 3 months ago #6396 by dickzeeman
When upgrading my server to PHP version 8 (the recommended version for Joomla 3) I get an HTTP500 error on my website.
The detailed log shows:

PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/vhosts/mwanamaji.nl/httpdocs/components/com_joodb/helpers/joodb.php on line 686'

When I change the line in question from
$ch = $code{$i};

to
$ch = $code[$i];

everything works fine (so far, tested with both single page and catalog views)

Please Log in to join the conversation.

Moderators: Dirkjoest