Home / Questions / What does a parse error in WordPress mean and how do I fix it?
What does a parse error in WordPress mean and how do I fix it?
A parse error means PHP found a typing mistake in a file, such as a missing bracket or semicolon. The message names the file and line.
A parse error means PHP could not read a file because of a syntax mistake. Unlike other errors, it stops the file before it runs, so the page breaks completely.
How to fix it
- Read the file and line number in the message.
- Check that line and the line above it for a missing semicolon, bracket or quote mark.
- If you edited the file, undo the last change. If a plugin or theme caused it after an update, reinstall that item from a clean copy.
Never edit a file you are not sure about on a live site. Work on a copy, then upload the fixed file.
If you are unsure which file to change, contact us and we will look at it.
Ready to act on this?
Get a written review of your site, or send us your question and we will reply within 24 hours.
Related services
Related questions
Not sure where your site stands?
Send us the details and we will reply within 24 hours with a clear next step.