🎁 Perplexity PRO offert
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
Questions Fréquentes
Why is my PrestaShop store stuck?
The blockage is often caused by the native statsdata module which massively records visits, page views and logs without maintenance. Without regular cleanup, this data saturates the MySQL database causing severe slowdowns, 500/504 errors and complete front-office and back-office blockage, particularly on shared hosting.
How to unblock a PrestaShop store urgently?
Access phpMyAdmin, first make a complete backup, then empty large tables with TRUNCATE on ps_connections, ps_connections_page, ps_guest, ps_pagenotfound, ps_referrer, ps_referrer_cache and ps_log. Access is generally restored immediately. Then temporarily disable the statsdata module.
How to prevent my PrestaShop store from getting stuck again?
Set up regular automated cleaning with a specialized module allowing scheduled emptying of large tables (guests, stats, logs, cache) via Cron. This preventive maintenance avoids future saturations without manual intervention and guarantees stable performance.
Is there an alternative to the statsdata module?
Yes, modules like Op’art Stat use native PrestaShop data without impacting performance. They offer more than 80 clear and useful reports (revenue, margins, carts) with a modern interface, allowing you to track your performance without overloading the database unlike statsdata.
Is it risky to empty PrestaShop tables with TRUNCATE?
TRUNCATE on statistics and log tables (ps_connections, ps_guest, ps_log, etc.) is risk-free for your business data as they only contain non-critical browsing histories. However, always make a complete backup before any direct database intervention as a precaution.
Is PrestaShop free?
Yes, PrestaShop is an open-source e-commerce CMS and is free. You only pay for hosting and premium modules.
Articles Liés
Rigueur du Code vs Chaos de l'IA : Faut-il réinventer nos standards PHP pour les marchands PrestaShop ?
L'arrivée de l'IA dans l'écosystème PrestaShop bouscule nos certitudes de développeurs. Faut-il sacrifier la rigueur ...
Oubliez Python : Pourquoi PHP est le véritable avenir de l'IA pour le Web
Vous pensez que pour faire de l'IA, vous devez apprendre Python et les mathématiques complexes ? Faux. Python est le ...
Arrêtez de réinventer la roue : 5 pépites cachées dans le fichier Tools.php de PrestaShop
Vous pensez que le "Clean Code" est la seule voie ? Détrompez-vous. Parfois, l'efficacité brutale se cache dans les v...
Pourquoi PrestaShop gagne justement parce qu'il n'est PAS un SaaS
Le SaaS est-il un piège doré ? Découvrez pourquoi le modèle "propriétaire" de PrestaShop offre un meilleur ROI à long...
PrestaShop rejoint cyber_Folks & Sylius : Le Big Bang de l'Open Source Européen (et ce que ça change pour vous)
C'est officiel : PrestaShop rejoint l'écosystème cyber_Folks aux côtés de Sylius. Ce n'est pas juste une acquisition,...
La "jungle" des modules PrestaShop : Une chance inespérée pour votre site ?
Avec plus de 4 000 modules disponibles, PrestaShop est souvent critiqué pour son foisonnement. Découvrez pourquoi cet...
Découvrez mes autres articles
Guides e-commerce, tutoriels PrestaShop et bonnes pratiques pour développeurs
Voir tous les articles