PrestaShop Store Stuck? Practical Guide Between Pros
When a PrestaShop store becomes inaccessible due to a too-greedy statistics module, you need to act fast, without breaking everything. In this article, I share solutions I recommend between peers - neither sponsored nor commercial - simply effective and tested.
The Frequent Issue: Store or Back-Office Inaccessible
PrestaShop’s native statsdata module records a mass of data: visits, page views, connections, logs… But without maintenance, this data ends up saturating the MySQL database, causing:
- Severe slowdowns
- 500 or 504 errors
- Complete blockage of front-office and back-office
This scenario is common, especially on shared hosting or unsupervised stores.
First Emergency Intervention: Cleanup via phpMyAdmin
When you can no longer access the back-office, only one solution: intervene directly in the database.
Concrete Steps
-
Make a complete database backup Via phpMyAdmin > Export > SQL Format (always!)
-
Execute the following queries in the SQL tab:
TRUNCATE TABLE ps_connections;
TRUNCATE TABLE ps_connections_page;
TRUNCATE TABLE ps_guest;
TRUNCATE TABLE ps_pagenotfound;
TRUNCATE TABLE ps_referrer;
TRUNCATE TABLE ps_referrer_cache;
TRUNCATE TABLE ps_log;
These tables are most prone to overflow if you use statsdata without regular cleanup.
Once emptied, access is generally restored immediately.
Think about deleting or temporarily disabling the
statsdatamodule to avoid recurrence.
Long-term Security: Recommended Automated Cleanup
Once calm returns, better to anticipate future overflows. I often recommend to my non-developer peers the following module:
Recommended Module: Automated Cleanup - PrestaToolbox
What it offers:
- Targeted and scheduled cleanup (guests, stats, logs, cache…)
- Simple interface, no technical jargon
- Scheduling via Cron task
- Clear explanation of each action
A real maintenance assistant, adapted to stores that want neither overload nor surprise.
Useful Statistics, Without Overload: Alternative to statsdata
What if we stopped inflating the database just for stats? I also recommend this reliable and lightweight alternative:
Recommended Module: Op’art Stat
Why I appreciate it:
- Uses native PrestaShop data
- No impact on performance
- Offers 80+ clear and useful reports (revenue, margins, carts…)
- Modern interface, adapted to non-tech managers
A good way to track your performance without exploding the database.
Summary: 3 Cases, 3 Answers Between Pros
| Encountered Case | Recommended Solution |
|---|---|
| Inaccessible back-office | Manual cleanup via phpMyAdmin (empty large tables) |
| Regular maintenance to automate | PrestaToolbox module: scheduled cleanup, secure actions |
| Statistics without overload | Op’art Stat module: advanced reports without overloading database |
Conclusion
You’re not alone in experiencing this kind of mishap. The important thing is to have the right reflexes and right tools:
- Access to phpMyAdmin for emergencies
- A reliable module to automate cleanup
- Optimized statistics to manage your store without weighing it down
As a PrestaShop developer for over 15 years, I recommend these solutions with confidence - because they save time, avoid scares and make management more serene.
Article published on August 7, 2025 by Nicolas Dabène - PHP & PrestaShop expert with 15+ years of experience
Articles Liés
Friends of Presta : l'annuaire des experts PrestaShop et e-commerce open source
Friends of Presta : annuaire des experts PrestaShop en France et en Europe. Agences, freelances, éditeurs de modules ...
Mistral Small 4 : le modèle tout-en-un qui simplifie l'IA pour les marchands e-commerce
Mistral Small 4 unifie raisonnement, codage et multimodalité dans un seul modèle open source. Une révolution pragmati...
Développer des modules PrestaShop avec des agents IA : ce que ça change vraiment
Les agents IA spécialisés PrestaShop changent la nature du travail de développement, pas juste sa vitesse. Voici ce q...
Mistral 3 vs Claude & ChatGPT + MCP Tools Plus : RGPD & Gouvernance IA pour les marchands PrestaShop
Après le duel Claude vs ChatGPT, Mistral 3 entre dans l'arène avec un atout décisif pour les marchands PrestaShop : l...
EO2S 2026 : Sommet E-commerce Open Source — 26 mars Paris
EO2S 2026 — Sommet e-commerce open source le 26 mars à Paris : PrestaShop + Sylius, Baromètre CMS, facturation électr...
Gouvernance IA dans PrestaShop : le cadre stratégique indispensable en 2026
En 2026, intégrer l'IA dans PrestaShop ne signifie pas abandonner le contrôle. Découvrez le cadre complet de gouverna...
Découvrez mes autres articles
Guides e-commerce, tutoriels PrestaShop et bonnes pratiques pour développeurs
Voir tous les articles