PRESTASHOP EXPERTS

PrestaShop audit and repair: what to do when your online shop suddenly stops working and you lose orders

Why does PrestaShop suddenly stop working? The most common faults and errors

Most faults in a PrestaShop environment stem directly from the engine’s modular architecture and the specific nature of the hosting.

A blank white page (White Screen of Death) and an HTTP 500 error simply mean that the PHP interpreter has stopped executing the script due to a fatal error. The most common technical causes are:

Server memory limit exceeded: The `memory_limit` setting is too low (e.g. 128 MB instead of the recommended 512 MB), which is exhausted when generating complex reports, indexing products or creating PDF invoices.

Operation timeout: The `max_execution_time` setting is too short on low-cost shared hosting plans, causing the script to terminate the process whilst generating product feeds for Google Merchant.

Incompatibility with a newer version of PHP: Automatic migration of the hosting to PHP 8.1 or 8.2 in a situation where the online shop is still using a payment module that is several years old and relies on obsolete functions.

A separate category is made up of shopping basket failures. The shop appears to be fully functional, the product catalogue runs smoothly, but customers drop out at the order completion stage. This is usually caused by a conflict between JavaScript scripts at checkout (e.g. the InPost collection point map library clashes with a custom One Step Checkout template) or a lack of feedback from the payment gateway (an incorrectly configured IPN/webhook notification address in PayU, Przelewy24 or Stripe).

PrestaShop audit – analysis of an online shop
PrestaShop

First aid: how to diagnose and fix the error PrestaShop – no guesswork

Rather than guessing which module has failed, it’s worth forcing the engine to display a precise error message.

Enabling Debug Mode

By default, PrestaShop hides errors from customers. To view the stack trace:
Jeśli panel administracyjny działa: wejdź w Zaawansowane -> Wydajność i przełącz Tryb debugowania na TAK.
If the server settings are incorrect: connect via FTP or SSH, open the file config/defines.inc.php and on the line define(’PS_MODE_DEV’, false); change ‘false’ to ‘true’.
A red Symfony screen will appear, showing the exact path to the faulty file. If the error points to the /modules/module_name/ directory, simply rename this directory temporarily via FTP (e.g. by adding _old) to restore the shop’s functionality and isolate the problem. Once the fault has been identified, debug mode should be disabled – leaving it enabled on the production environment puts a strain on the server and exposes the file structure.

Manually clearing the cache directory

Sometimes the engine has an error stored in the compiled Smarty templates or the Symfony container. From FTP or the server console, simply delete the contents of the directory:
for PrestaShop 1.7 and 8.x: var/cache/prod/
the following command in SSH (from the shop’s root directory): php bin/console cache:clear

Verification of PHP and server logs

If the screen remains blank, the cause lies deeper. The /var/logs/ directory contains the engine’s own logs, whilst in the hosting control panel (DirectAdmin, cPanel), it is worth checking the Apache or Nginx server’s error_log file. This is where information about missing required PHP extensions (e.g. intl, soap, gd or curl) is recorded.

When a restart doesn’t help: what a comprehensive check looks at PrestaShop audit?

Simply rectifying the effects of a fault restores normal operations, but rarely eliminates the root cause of the problem. If the shop has structural flaws, the fault will recur during the next promotion or product range update.

One of the main problems that arises after the shop has been running for several years is the presence of override files in the /override/classes/ and /override/controllers/ directories. Various plugins attempt to modify the same core file (often Cart.php, Order.php or Product.php) at the same time. This results in methods being overwritten, data being lost and random errors when calculating discounts. An audit allows you to resolve these conflicts and move the modifications to standard hooks.

The second bottleneck is the database. Tables containing connection logs (ps_connections), referring page statistics or abandoned shopping baskets can reach sizes of over a dozen gigabytes. The database becomes bloated, a single SELECT query locks the entire table, and the server’s response time (TTFB) increases dramatically. We discuss the detailed mechanisms behind this phenomenon in our article on why a PrestaShop shop runs slowly.

During the audit, we also check the integrity of files for malware. Out-of-date plug-ins are often the target of malware attacks – scripts are embedded in them to alter account numbers in traditional bank transfer modules or to steal data from forms.

Disruptions in the wholesale sector – the specific nature of errors in PrestaShop B2B

In retail (B2C), a shop being unavailable means the loss of a few transactions from individual customers. In wholesale, the consequences are incomparably greater. Platforms based on PrestaShop B2B process complex trading rules:

  1. assigning individual discount grids to customer groups,
  2. verification of tax identification numbers (NIP) in the VIES/GUS databases,
  3. trade credit limits and deferred payment terms,
  4. Hiding stock levels and prices from business partners who have not activated their accounts.

A system failure in a B2B environment usually affects the automated integration of the shop with the ERP system (Comarch ERP Optima, Subiekt GT or Symplex Small Business). When the integration system stops synchronising data, discrepancies in stock levels arise. The goods appear in the shop, a customer places an order for a pallet of products, but the stock is missing from the physical warehouse. In such systems, an audit of the stability of the data exchange modules is crucial for the continuity of sales.

Arrange a free consultation at a Google Meet

You want to improve
your business?




    PrestaShop repairs – resolving shop errors

    Working on a draft rather than editing the code on a live shop

    Manually editing tables via phpMyAdmin or modifying .php files directly on the production server is the most common cause of prolonged downtime. This can result in damaged database relationships (e.g. an order loses its link to a specific customer or to items in the basket).

    Before carrying out any changes, you should back up the current database (e.g. using mysqldump) and download a copy of the files. Safe diagnostics must only be carried out in a staging environment – a cloned version of the shop running at a separate technical address, isolated from the sending of transactional emails to customers.

    Add Your Title Here...

    Years of experience

    Add Your Title Here...

    Regular customers

    Frequently asked questions about PrestaShop audits and repairs

    How much does a PrestaShop audit cost?

    It depends on the scope – a quick diagnosis of a single shopping basket fault is quite different from a full technical audit of a shop that has been operating for several years, with dozens of modules and code overwrites. We provide a quote following an initial review of the logs and the shop’s current status.

    How long does it take to fix a PrestaShop shop?

    A simple module error or conflict during checkout can often be fixed within a few hours. More serious issues – such as a corrupted database, multiple overwrites of the core files, or a file infection – require work on a test environment spread over several days, to avoid causing another failure whilst fixing the previous one.

    Technical support and repair at 4AD Studio

    When resolving faults, we work directly on the test environment: we back up the data, reproduce the error using the logs, implement a fix in the code and test the entire order flow. Only once the solution has been verified is it deployed to the production server.

    In addition to ad hoc maintenance interventions, we carry out the day-to-day administration of PrestaShop shops. This includes regular log checks, engine updates in a controlled environment and database optimisation, which helps to eliminate faults before they affect the shop’s conversion rate.

    If your shop is experiencing errors following an update, the shopping basket is not processing payments, or the platform requires a technical audit, please contact us – we will analyse the logs and implement the necessary fixes.

    Write to us

    You want to improve
    your business?

    Bartłomiej Biedrończyk




      4AD
      Privacy Overview

      This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.