WP Squared üzerinde “Site Health” raporu bazen yanlış sonuç verebilir. Örneğin sistem sağlıklı olmasına rağmen kritik hata gösterebilir veya gerçek hataları “OK” olarak raporlayabilir. Bu durum genellikle cache, API senkronizasyon hatası, WordPress health verisinin bozulması veya WP Squared tarama motoru sorunlarından kaynaklanır.
Sorun şu:
Site Health yanlış sonuç gösteriyor, hataları eksik veya hatalı raporluyor.
Aşağıdaki adımlarla sorunu çözebilirsin.
Çözüm Adımları
1. WP Squared health servisini kontrol et
systemctl status wpsquared
Eğer health modülü ayrıysa:
systemctl status wpsquared-health
2. Site health yeniden tarama yap
wpsquared health scan --force
3. WordPress Site Health verisini kontrol et
wp site-health status --allow-root
4. Health cache temizle
Yanlış rapor genelde cache kaynaklıdır.
rm -rf /usr/local/wpsquared/cache/health/*
5. Transient verileri temizle
WordPress health verisi transient içinde tutulur.
wp transient delete --all --allow-root
6. Database health tablosunu kontrol et
wp db check --allow-root
Gerekirse repair:
wp db repair --allow-root
7. Plugin çakışması kontrolü
wp plugin deactivate --all --allow-root
Sonra tekrar test et.
8. Theme kontrolü
wp theme activate twentytwentyfour --allow-root
9. API sync kontrolü
curl -I https://api.wpsquared.com
10. Cron job kontrolü
Health raporu cron ile güncellenir.
crontab -l
Cron restart:
systemctl restart crond
11. PHP-FPM restart
systemctl restart php-fpm
12. Web server restart
Apache:
systemctl restart httpd
Nginx:
systemctl restart nginx
13. WP Squared servis reset
systemctl restart wpsquared
systemctl restart wpsquared-health
14. Manual health test
wpsquared health report
15. Final kontrol
wp site-health status --allow-root
Eğer Site Health hâlâ yanlış rapor veriyorsa genelde REST API bozulmuştur veya WordPress core health dosyaları cache’den yanlış okunuyordur.