Skip to content

PrestaShop 1.7 and PHP versions: what works and what to do when PHP changes

· The AYT team · 2 min read

Woman in sunglasses holding many shopping bags

PrestaShop 1.7.8 (including the last release, 1.7.8.11) runs on PHP 7.1, 7.2, 7.3 and 7.4, with PHP 7.4 recommended. No PrestaShop 1.7 release runs on PHP 8.0 or newer. If your host moves the shop to PHP 8, it stops, usually with a 500 error or a blank page. You have two ways out: stay on PHP 7.4 for now, if your hosting allows it, or upgrade to PrestaShop 8.2 and then to 9.

Which PHP version works with each PrestaShop 1.7 release

The table below comes from the official documentation, the System requirements page for 1.7:

PrestaShop version Supported PHP Recommended PHP
1.7.0–1.7.3 5.4–7.1 7.1
1.7.4 5.6–7.1 7.1
1.7.5–1.7.6 5.6–7.2 7.2
1.7.7 7.1–7.3 7.3
1.7.8 7.1–7.4 7.4

Two things follow from the table. First, each 1.7 minor has its own PHP ceiling, so a 1.7.6 shop isn't guaranteed on PHP 7.4 either, only on 7.2. Second, PHP 8 appears nowhere. PrestaShop added PHP 8 support only in the 8 branch.

For a version like 1.7.8.11, only the first three numbers matter: 1.7.8.x means the 1.7.8 row.

How to find your PrestaShop and PHP versions

  • In the back office, under Advanced Parameters → Information, the first block shows the PrestaShop version, the PHP version and the database server.
  • Without the back office, the PrestaShop 1.7 version is in app/AppKernel.php, on the line const VERSION = '1.7.8.11'; (or your version).
  • You can also see the domain's PHP version in your hosting panel, on the PHP settings page.

If the panel doesn't show the PHP version, put a temporary info.php file with <?php phpinfo(); in the site's folder, open it in your browser and delete it right away, because it shows server details to anyone who opens it.

What happens to PrestaShop 1.7 on PHP 8

PrestaShop 1.7's code and the libraries it ships were written for PHP 7. PHP 8 removed old functions and checks data types more strictly, so the shop usually hits a fatal error on the first page. What you see:

  • a 500 error or a completely blank page on the shop and in the back office;
  • in the server's error log, PHP Fatal error messages pointing at files in vendor/, classes/ or modules;
  • sometimes the shop seems to work, but the cart, checkout or back office fail.

Don't try to patch the core to run on PHP 8. It's hundreds of files, and every change is lost at the next update. If the shop went down after a PHP change, switch back to the old version in the panel, empty the var/cache folder and the shop starts again. For other causes of the same error, see the PrestaShop 500 error.

PHP 7.4 is no longer maintained

The main risk of staying on 1.7 comes from the PHP underneath it. The versions 1.7 runs on have had no security updates for years, according to the official PHP list:

PHP version No security updates since
7.1 1 December 2019
7.2 30 November 2020
7.3 6 December 2021
7.4 28 November 2022

Many hosts drop old versions for exactly this reason. The last PrestaShop 1.7 release, 1.7.8.11, came out in January 2024, so the shop's core gets no fixes either.

A shop on PHP 7.4 isn't hacked automatically, but any new vulnerability found in PHP 7.4 stays open, and the risk grows every month.

What to do when your host moves to PHP 8

Option Effort What it fixes What's left
Stay on PHP 7.4 (set for the shop only) low the shop works again PHP and PrestaShop without updates
Upgrade to PrestaShop 8.2 medium, with testing runs on PHP 7.4–8.1 PHP 8.1 has also had no security updates since the end of 2025
Upgrade to 8.2 and then to 9 medium to high maintained PHP (8.3–8.5) modules and theme to check for 9
New shop on 9, with the data moved high a clean start, no old code rebuild the theme and customisations

Our recommendation: if you can choose PHP 7.4 for the shop's domain only, do it as an emergency fix so you keep selling. Then plan the upgrade to 8.2 and 9 within weeks. The steps are in the guide to upgrading PrestaShop 1.7 → 8 → 9.

A new shop with the data moved makes sense when the 1.7 install is full of core edits, overrides and abandoned modules. There, the upgrade often gets stuck, and rebuilding on 9 costs less than fixing every step.

Modules and the theme when PHP changes

Even between PHP 7 versions, third-party modules can have problems. A module bought in 2018 for 1.7.4 can throw errors on PHP 7.4 even though PrestaShop 1.7.8 runs fine there. Before any change:

  • list the installed modules (Modules → Module Manager) and note each one's version and developer;
  • check on PrestaShop Addons or with the developer whether there is a version for PrestaShop 8 (then it also works on PHP 8.1);
  • note the modules you no longer use: uninstall them before the upgrade, not after;
  • check whether the theme is a bought theme or a custom one. Many commercial themes have versions for 8; check compatibility with 9 separately.

PHP settings and extensions change with the version

When you move from one PHP version to another, check two things that are easy to forget:

  • Extensions. PrestaShop needs curl, gd, intl, mbstring, zip, pdo_mysql and others. On some hosts each PHP version has its own list of extensions, and one enabled on 7.4 may be missing on 8.1.
  • php.ini values. memory_limit (at least 256M for 1.7 and 8), upload_max_filesize, post_max_size and max_execution_time can fall back to their defaults after the switch. A CSV import that used to work can fail because of that.

Check them in the back office, under Advanced Parameters → Information, or on the panel's PHP settings page, right after the switch.

How to change the PHP version without taking the shop down

  1. Make a full backup, files and database.
  2. Make a copy of the shop on a subdomain (staging), if your hosting allows it.
  3. Change PHP on the copy first.
  4. Clear the copy's cache: delete the contents of the var/cache folder (details in how to clear the PrestaShop cache).
  5. Turn debug mode on temporarily on the copy, to see errors right on the page (see PrestaShop debug mode).
  6. Test the home page, a category, a product with combinations, search, the cart, a test order, customer login and the back office.
  7. If everything works, repeat the change on the live shop at a low-traffic hour and clear the cache there too.

Frequently asked questions

Does PrestaShop 1.7.8.11 run on PHP 8.0?

No. The official documentation gives PHP 7.4 as the maximum for 1.7.8. On PHP 8.0 the shop throws fatal errors.

Can I stay on PHP 7.4 forever?

Technically, as long as your host offers PHP 7.4. In practice, PHP 7.4 has had no security fixes since November 2022, and new payment and courier modules are no longer written for 1.7. Every month on 1.7 makes the upgrade harder.

The shop went down after my host changed PHP. What now?

First get the shop back online: set PHP 7.4 (or whatever version it had) in the panel for the shop's domain only, and delete the contents of the var/cache folder. If your host no longer offers PHP 7.x at all, the only quick way is an upgrade to PrestaShop 8.2 done on a copy of the shop, on a server where you still have PHP 7.4, followed by moving the upgraded copy. Either way, don't change anything in the back office until you know which PHP version the shop runs on.

Why isn't updating the modules enough?

Modules follow the PrestaShop version. Even if every module has a PHP 8 compatible version, the PrestaShop 1.7 core still won't start on PHP 8. The right order is the core first (upgrade to 8.2), then the modules, then PHP.

Which PHP version do I need for PrestaShop 8 and 9?

PrestaShop 8.2 runs on PHP 7.2.5–8.1, and 9 on PHP 8.1–8.5. All the requirements are in the article on PrestaShop hosting requirements.

PrestaShop 1.7 on AYT hosting

On AYT, the PHP version is chosen per site on the panel's PHP versions page, so you change the shop's PHP without touching other sites in the account. Check there which versions you have available.

PHP versions per domain, in the panel

The PrestaShop Toolkit can make the shop a staging copy on a subdomain for testing. For the road to 8 and 9 you also have daily backups restorable from the panel and the Errors page with the site's error log. If the shop is with another host now, we move it for free on paid plans, with files and database, and you then do the upgrade steps at your own pace. See the plans on the hosting page and the toolkits on the features page.

More articles

All articles