1

My website has a PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/vhosts/katalytes.com/httpdocs/wp-includes/script-loader.php on line 706

enter image description here

any idea please to fix it because my website is down and i cant work.Also i can't login to wordpress admin

6
  • What version of PHP are you using and what version of WordPress are you running? Commented Mar 22, 2023 at 8:04
  • 1
    now i have PHP version 8.1.17 and before was 5.4.16
    – Maria k.
    Commented Mar 22, 2023 at 8:47
  • 2
    And what version of WordPress? It sounds like you updated to a PHP version that was not supported by the version of WordPress you are using. Downgrade your PHP, update WordPress, then upgrade PHP again. Commented Mar 22, 2023 at 8:50
  • The first version of WordPress to support PHP 8.1 is WordPress 5.9. See the PHP Compatibility page. Also note that just because WP Core supports a given PHP version doesn't mean all plugins and themes will also support it.
    – Pat J
    Commented Mar 22, 2023 at 16:06
  • I have the exact same error in my WordPress. I have changed $value{0} to $value[0], but the issue persists. I also tried downgrading PHP, but when I do so I get 500 error. Commented May 15, 2023 at 12:25

1 Answer 1

0

Update WordPress Version or change a bracket { } to [ ].If not check plugin deactivate one by one. Plugin is confilct.

1
  • 1
    That's a syntax error in a core WordPress file. I don't think it could be a plugin conflict.
    – Rup
    Commented Mar 22, 2023 at 11:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.