PHP errors: understand them and fix them step by step
Find the message you see on your screen or in your log. Each guide explains what it means, what usually causes it and what you can safely try yourself.
Error guides
Pick the guide that matches your message. Not sure which one it is? Start with the overview of common PHPPHP is a programming language that builds your web pages on the computer that hosts your site, just before they reach the visitor. WordPress runs on it. errors.
- WordPress: There Has Been a Critical Error on This WebsiteSeeing 'There has been a critical error on this website'? Find the cause, use recovery modeWordPress recovery mode is a safe mode that starts after a serious error, so you can still log in and switch off the plugin or theme that broke your site. and fix the error step by step.
- How to Show PHP Errors and Read the Error LogShow PHP errors and read the error logAn error log is a file where your website's software writes down what went wrong, with the time and place. It is the first thing to check when a site breaks.: where the log lives, what to look for and how to switch display off again safely.
- PHP Fatal Error: What It Means and How to Fix ItA PHP fatal error stops your site mid-load. Read the message, find the file and line, and take a safe first step to fix it.
- Common PHP Errors: What They Mean and Where to StartCommon PHP errors in one place: what the message means, likely causes and where to start fixing it.
- PHP White Screen of Death: Causes and FixesA blank white page on your PHP or WordPressWordPress is free software for building and editing a website in your browser. It is written in PHP, so it builds each page when someone visits. site? Find out what causes the white screen of death and how to bring your site back.
- PHP Notice and Warning Messages ExplainedPHP notices and warnings explained: what they mean, when they matter and how to fix them without hiding them.
Where to start
Every guide follows the same order, because it keeps you from making things worse. First you make a backupA backup is a separate copy of your website's files and database, so you can bring the site back after a mistake, a hack or a failed update. of the files and the database, so every step can be undone. Then you read the error log instead of showing errors on the live site, since on-screen messages can reveal details about your server. Next you note the error type, the file and the line, and check which PHP versionA PHP version is a numbered edition of PHP, like 8.3. Each edition is looked after for a limited time, then gets security fixes only, then nothing. the site runs.
Many errors start right after an update of PHP, a pluginA WordPress plugin is an add-on you install in WordPress to give your site extra features, such as contact forms, SEO tools or a webshop. or a themeA WordPress theme is a ready-made package that decides how your WordPress site looks and how its pages are laid out. Change the theme and the design changes.. In that case the lasting fix is updating or replacing the old code, and running a PHP version that still receives security fixes.
Related pages
- Emergency fixYour site is down or broken right now
- PHP updateMove to a supported PHP version
- Exposure CheckFree, passive check of your PHP site
- All CMS alternativesStay, move, headless or static: compared
- GlossaryPHP, WordPress and security terms in plain language
- Domain
- Check
- Result
- Report
We are checking
We only read what your site already sends in public. This takes a few seconds.
- Looking up the domain
- Connecting to your site
- Reading the headers
- Identifying the platform
- Identifying the CDN or firewall
Adds platform, firewall or CDN, hosting and your previous scan. We add your result to the form. A person replies within 1 business day.
Details
- Website
- PHP
- PHP version
- Checked
Headers we looked at
What this does not tell you
Read how to find your PHP version yourself
Ask your hosting provider
Copy this question and send it to your hosting provider or developer. You do not need to give us an email address for this.
Which PHP version does this website use, and how do I check that in my hosting panel?
Where should we send your report?
You see the report below. The email version, ready to forward to your web developer, follows.
Your full report
- Website
- PHP
- PHP version
- Platform
- Firewall/CDN
- Hosting
- Previous scan
We add your result to the form. A person replies within 1 business day.