Parse error: syntax error, | WordPress.org


Moderator
Steve Stern

(@sterndata)

Support Team Volunteer

WordPress requires a minimum of 5.6.something and really should be running on PHP 7.3 or 7.4. You need to fix your WAMP stack to use a newer version of PHP.

The syntax error indicates you may have a broken version of that file, so I’d download a new copy of WP and replace the files on your PC.

please could you send me the links that what i need like XAMPP and WP to have what is s required
I am starter in this domain

Moderator
Steve Stern

(@sterndata)

Support Team Volunteer

https://www.apachefriends.org/docs/

Are you using the latest version of XAMPP?

Sorry, I don’t use it and can’t really point you to much.

When I do need a quick’n’dirty local environment, I use “local” from https://localwp.com

  • This reply was modified 4 hours, 6 minutes ago by Steve Stern.

I already download the latest version of WAMPP and i had the error sent in the post, may be the cause of this error is the WP, please what is the version that i can use to start

Moderator
Steve Stern

(@sterndata)

Support Team Volunteer

For PHP? Try 7.3. WordPress? 5.4.1.

how can i upgrade my version of PHP if i use easyphp and the version of php is 5.4.24

Moderator
Steve Stern

(@sterndata)

Support Team Volunteer

I’ll ask the folks in the back room if they can jump in. I don’t use Windows, xampp, or easyphp. You might give local a try (link above) in the meantime.

I’m not familiar with EasyPHP but WAMP should have everything you need to run a staging site on Windows. Since you’ve mentioned that you have WAMP installed the below is instructions based on that. Additionally, this blog has helpful instructions with screenshots that are still relevent.

1) Start up WAMP and wait for the WAMP icon to turn green in your Windows Taskbar.

2) Once the WAMP icon is green, you may click it to bring up options.

3) In the options list, navigate to PHP > Versions > 7.x

4) WAMP will need to restart and once it’s green you should be good to go.

If the above instructions are unclear I highly suggest checking out the previously linked blog as the screenshots may help clear things up. Hopefully this helps!



Source link