Common PHP Errors: What They Mean and Where to Start
Your site shows a message from PHP, the language it runs on.
Which PHP version does your site report?
We read only what your site already sends in public: the headers and the top of the homepage. No scan, no login.
More about this
Some messages are only advice and your site keeps working, others mean a page cannot load at all.
The first job is to tell which kind you have, because that decides how urgent it is for your visitors and your business.
The sections below help you decide.
A PHP error is a message from the PHP engine saying that something in the code or the setup did not work, and the type of message tells you how serious it is. Notices and warnings usually let the page keep loading, while fatal errors and parse errors stop it.
What the main error types mean
PHP groups its messages by severity. A notice is a mild hint about something sloppy, such as code that was valid in older PHP versions but is now flagged. A warning is stronger: something failed, such as a file that could not be opened, but the script carries on.
A deprecated message says that a feature still works but is planned for removal. A fatal error stops the script immediately. A parse error, also called a syntax error, means PHP could not even read the code because of a typo, such as a missing semicolon or bracket.
Common causes
Most PHP errors come from a short list. Code written for an older PHP version may run into changes in a newer one. A plugin or theme can clash with another, or an update can finish only halfway.
A file can be missing or have the wrong permissions. A script can run out of memory or time. A typo in edited code is the classic reason for a parse error.
How to check it safely
Before you change anything, take a backup of files and database. Then read the error log, because it names the error type, the file and the line number. A message on the screen can show the same, but on a live site it is better to keep it off the screen, since paths and details are visible to every visitor.
Also check which PHP version the site runs, because many errors begin with a version change.
What you can try yourself
Keep the order simple. First, read the type and the file name in the log. Second, if the file belongs to a plugin or theme, deactivate it and see whether the error goes away.
Third, if you edited code recently, undo that edit. Fourth, look for the exact message on its own page in this error hub, since each common message has its own causes and steps. Fifth, restore a backup if the site is still broken.
Never share passwords with strangers.
When the PHP version is the cause
If the errors started after a PHP update, older code is the likely reason. Newer versions are stricter and remove old features, so messages such as deprecated notices can turn into fatal errors over time. The page on supported PHP versions on this site explains which versions the PHP project still maintains, so you know what to aim for.
When to get help
If you cannot find the file in the message, if the code is not yours, or if the site has to be back soon, bring in help. At Website Without PHP a human replies within 1 business day. A rush repair starts from $425, excluding VAT.