WordPress: Your server is running PHP version 7.2 but WordPress 6.x requires at least 7.4 / This plugin requires a newer version of PHP
WordPress core, a plugin or a theme needs a newer PHP than the server runs.
requires at least PHPYour server is running PHP versionThis plugin requires a newer version of PHPrequires PHP version Meaning
Hosts often default to old PHP. Switching PHP versions in the hosting panel (or installing a newer php-fpm) fixes it — test plugins for compatibility first.
Common causes
- Old PHP version on the hosting account
- CLI PHP newer than web PHP (or vice versa)
- Plugin raised its minimum PHP
⚡ Quick fix
- Switch PHP version in the hosting panel (MultiPHP / PHP Selector)
- Update PHP-FPM and point the vhost to it
- Check compatibility with a staging site
Detailed fix by platform
Ubuntu
- php
sudo apt install php8.3-fpm php8.3-{mysql,curl,gd,mbstring,xml,zip,intl} sudo a2enconf php8.3-fpm && sudo systemctl reload apache2
How to diagnose
- Version — Site Health → Info → Server
- Requirement — Plugin readme “Requires PHP”
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Apache shows PHP source or downloads .php files Browser shows <?php code or downloads index.php — mod_php / PHP-FPM handler not configured in Apache
- Call to undefined function create_function() WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each()
- cookies() should be awaited Next.js 15: Route "/x" used `cookies().get('token')`. `cookies()` should be awaited before using its value
Most viewed in WordPress
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 12 Oct 2026