Hey @jamievdpoel
The array and string offset access syntax using curly braces {} is deprecated in PHP 7.4 and removed entirely in PHP 8.0.
To fix this issue, you need to replace the curly braces {} with square brackets [] in the respective line of code.
For example, if your code looks like this: $array{0};, you would change it to: $array[0];
Hi,
Thank you for your quick response. Where in which file should I change this?
What I did at the moment is that in the server it says setup-up PHP-version which I changed to the bulletpoint option 8.1 (recommended).
Do I need to change those [ ] also somewhere in a file in the webspace? After changed it to the 8.1 I still don’t see the site online.
Kind regards,
Jamie
Hi,
Line 705: } elseif ( ! empty( $value ) && is_string( $value ) && (
Line 706: ( ‘{‘ == $value{0} && ‘}’ == $value{strlen( $value ) – 1} ) ||
Line 707: ( ‘[‘ == $value{0} && ‘]’ == $value{strlen( $value ) – 1} ) ||
I tried to change the ( ‘{‘ == $value{0} && ‘}’ to ( ‘[‘ == $value{0} && ‘]’
And I also tried: ( ‘{‘ == $value[0] && ‘}’
Both don’t seem to do much.
As for the blog I indeed tried to rename the htaccess file and plugins already.
Should it been seen imidiatelly if the website works after one of these changes? Cause somehow after trying all this it unfortunatelly isn’t working yet but the hosting provider says it’s nothing at their site or they can do about.
@jamievdpoel
>>I tried to change the ( ‘{‘ == $value{0} && ‘}’ to ( ‘[‘ == $value{0} && ‘]’<<
I suggested it based on the error you were getting. seems like that ain’t the issue here.
>>As for the blog I indeed tried to rename the htaccess file and plugins already<<
Go to your webhost panel and restart your web server. That does it for most cases. If not, rename plugins folder and see if you can get access to your website. If not check for URLs in wp-config.php file to make sure they are correct.