• I’ve saved my wordpress .sql database and all the files. After I’ve installed xammp on my p.c. I wanted to continue my work there and when my Apache and Mysql server runs and I’m trying to access localhost/wordpress I’m getting this error.

    Fatal error: Array and string offset access syntax with curly braces is no longer supported in C:\xampp\htdocs\wordpress\index.php on line 3

Viewing 1 replies (of 1 total)
  • Anonymous User 14808221

    (@anonymized-14808221)

    Natively, in that file on line 3 there is a PHP Comment, not PHP Code, so a fatal error is not possible on that line.

    Generally, the error happens if your PHP version is 7.4 or above, and your code is not ready for it (uses {} instead of [] for array offset)

    You mention an error that points towards a core WordPress file, so the only thing possible here is that you either edited that file with old PHP code syntax, or you have an old WordPress Install that is not yet up to date.

    I suggest checking that file/line and if there is not a comment like this

    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    

    Then you know the file is not original and I’d thus suggest to re-install WordPress using Dashboard > Updates > Reinstall WordPress.

    • This reply was modified 3 years, 6 months ago by Anonymous User 14808221.
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Array and string offset access syntax with curly braces is no longe’ is closed to new replies.