Monday , February 3 2025

“Parse error functions.php on line 1064” when installing WordPress

The error that occurred when installing a fresh version of WordPress on a new hosting:

Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /wp-includes/functions.php on line 1064

The solution turned out to be extremely simple: the PHP 5.4 version was activated on the hosting, when the version was changed to 7.1, the WordPress installation started without errors – because for WordPress version 5.2+ it is mandatory to use PHP version 5.6.20 or above.

If you do not know how to change the PHP version on your hosting, just contact Technical support of your hosting provider.

About iryna

I'm Iryna, a web developer from Ukraine with a decade of experience solving complex technical challenges in the world of freelance. Throughout my career, I've worked on everything from troubleshooting server-side issues and optimizing website performance to enhancing user interfaces. On this blog, I share detailed solutions to the technical problems I’ve encountered and methods that have worked best for me. In addition to my technical expertise, I’m also passionate about digital drawing. I hope the tutorials and insights I provide here will help both fellow developers and creatives alike in their own projects.

Check Also

How to remove 404 //fonts.gstatic.com and //fonts.googleapis.com from WordPress head section

I tried solutions with functions that should remove from head and , but a very …

Leave a Reply

Your email address will not be published. Required fields are marked *