PHP-VERSION-FLOOR-001
PHP 5.3–7.x on Joomla 3
PHP version floors (J4 / J5 / J6)
People blame Joomla for fatals that are PHP. each()/mysql_* die on the PHP J4 already required.
PHP 5.3–7.x on Joomla 3 → J4 ≥ 7.2.5 · J5 ≥ 8.1 · J6 ≥ 8.3 (8.4 recommended)
What you will see
- Your host needs to use PHP 8.3
- JOOMLA_MINIMUM_PHP
Symptoms people search
joomla 6 php requirement · php 8.3
Replace this code
Swap PHP 5.3–7.x on Joomla 3 for J4 ≥ 7.2.5 · J5 ≥ 8.1 · J6 ≥ 8.3 (8.4 recommended).
Joomla 3
Remove or stop calling this
// Hosting on PHP 7.4 with Joomla 3Joomla 4 / 6
Use this instead
Joomla 6 will not install below PHP 8.3.0. Upgrade PHP before the CMS.How to fix it
- 1Check phpversion() on staging.
- 2Move to 8.3+ before a Joomla 6 update.
Also known as
PHP 8.3 · PHP 8.1 · minimum php
Related issues
- Joomla 3 → 4PHP
jimport() autoloader calls
jimport('joomla.filesystem.file') → use Joomla\CMS\Filesystem\File;
- Joomla 3 → 4PHP
DS path constant
DS → DIRECTORY_SEPARATOR or /
- Joomla 3 → 4PHP
JPATH_PLATFORM
JPATH_PLATFORM → Do not use — autoload instead
- Joomla 3 → 4Templates
Protostar site template
Protostar → Cassiopeia (or a Joomla 4+ template), preferably a child template
- Joomla 3 → 4PHP
mysql_* PHP functions
mysql_query() → Joomla DatabaseInterface / mysqli / PDO
- Joomla 3 → 4PHP
each() / create_function() / ereg / split
each($array) → foreach / closures / preg_*