Array and string offset access syntax with curly braces is no longer supported
-
Hello,
After upgrading to PHP 8, the site does not work and only displays this error
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /www/doc/www.mj-servis.cz/www/wp-includes/script-loader.php on line 706
( '{' == $value{0} && '}' == $value{strlen( $value ) - 1} ) || // line 706 ( '[' == $value{0} && ']' == $value{strlen( $value ) - 1} ) || // line 707
I found here that there will probably be a problem in parentheses. However, if I change them
( '{' == $value{0} && '}' == $value[strlen( $value ) - 1] ) || ( '[' == $value{0} && ']' == $value[strlen( $value ) - 1] ) ||
the error message will not change at all.
And if I change it that way
( '{' == $value[0] && '}' == $value[strlen( $value ) - 1] ) || ( '[' == $value[0] && ']' == $value[strlen( $value ) - 1] ) ||
the error message will change.
Fatal error: Unparenthesized
a ? b : c ? d : eis not supported. Use either
(a ? b : c) ? d : eor
a ? b : (c ? d : e)in /www/doc/www.mj-servis.cz/www/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_admin/package.module.nextgen_admin.php on line 368
I tried to deactivate this plugin, but it caused a completely different error.
Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /www/doc/www.mj-servis.cz/www/wp-includes/load.php:760 Stack trace: #0 /www/doc/www.mj-servis.cz/www/wp-settings.php(380): wp_magic_quotes() #1 /www/doc/www.mj-servis.cz/www/wp-config.php(96): require_once('/www/doc/www.mj...') #2 /www/doc/www.mj-servis.cz/www/wp-load.php(37): require_once('/www/doc/www.mj...') #3 /www/doc/www.mj-servis.cz/www/wp-blog-header.php(13): require_once('/www/doc/www.mj...') #4 /www/doc/www.mj-servis.cz/www/index.php(17): require('/www/doc/www.mj...') #5 {main} thrown in /www/doc/www.mj-servis.cz/www/wp-includes/load.php on line 760
I have absolutely no idea what to do.
Please help
Thank you
The page I need help with: [log in to see the link]
- The topic ‘Array and string offset access syntax with curly braces is no longer supported’ is closed to new replies.