Add intelligent website error analyzer
- Filters out bots, plugin warnings, deprecation notices - Focuses on real user-facing issues (500s, fatal errors, database failures) - Discovers ALL log locations (Apache, PHP error_log per domain) - Analyzes both Apache error logs and per-domain PHP logs - Added 30-day analysis option - Intelligent noise filtering and critical error detection - Provides specific actionable recommendations - Added to Website Management menu as option 1
This commit is contained in:
+33
-28
@@ -432,22 +432,26 @@ show_wordpress_menu() {
|
||||
show_banner
|
||||
echo -e "${BLUE}${BOLD}🌐 Website Management${NC}"
|
||||
echo ""
|
||||
echo -e "${BOLD}General Website Tools:${NC}"
|
||||
echo ""
|
||||
echo -e " ${BLUE}1)${NC} 🔍 Website Error Analyzer - Find 500/config errors (filters bots)"
|
||||
echo ""
|
||||
echo -e "${BOLD}WordPress Tools:${NC}"
|
||||
echo ""
|
||||
echo -e " ${BLUE}1)${NC} Health Check (All Sites) - Scan all WP installations"
|
||||
echo -e " ${BLUE}2)${NC} WP-Cron Status - Check cron job status"
|
||||
echo -e " ${BLUE}3)${NC} WP-Cron Mass Fix - Fix/enable cron on all sites"
|
||||
echo -e " ${BLUE}4)${NC} WP-Cron Mass Create - Setup proper system crons"
|
||||
echo -e " ${BLUE}5)${NC} Plugin Audit - Security scan of plugins"
|
||||
echo -e " ${BLUE}6)${NC} Theme Audit - Security scan of themes"
|
||||
echo -e " ${BLUE}7)${NC} Database Optimizer - Clean/optimize WP databases"
|
||||
echo -e " ${BLUE}8)${NC} Cache Clear (All Sites) - Clear all WP caches"
|
||||
echo -e " ${BLUE}9)${NC} Mass Update Core - Update WordPress core (all)"
|
||||
echo -e " ${BLUE}10)${NC} Mass Update Plugins - Update plugins (all sites)"
|
||||
echo -e " ${BLUE}11)${NC} Login Security Audit - Check for weak passwords"
|
||||
echo -e " ${BLUE}12)${NC} Malware Scanner - Scan for infected files"
|
||||
echo -e " ${BLUE}13)${NC} Permission Fixer - Fix file permissions"
|
||||
echo -e " ${BLUE}14)${NC} Debug Log Analyzer - Parse WP debug logs"
|
||||
echo -e " ${BLUE}2)${NC} Health Check (All Sites) - Scan all WP installations"
|
||||
echo -e " ${BLUE}3)${NC} WP-Cron Status - Check cron job status"
|
||||
echo -e " ${BLUE}4)${NC} WP-Cron Mass Fix - Fix/enable cron on all sites"
|
||||
echo -e " ${BLUE}5)${NC} WP-Cron Mass Create - Setup proper system crons"
|
||||
echo -e " ${BLUE}6)${NC} Plugin Audit - Security scan of plugins"
|
||||
echo -e " ${BLUE}7)${NC} Theme Audit - Security scan of themes"
|
||||
echo -e " ${BLUE}8)${NC} Database Optimizer - Clean/optimize WP databases"
|
||||
echo -e " ${BLUE}9)${NC} Cache Clear (All Sites) - Clear all WP caches"
|
||||
echo -e " ${BLUE}10)${NC} Mass Update Core - Update WordPress core (all)"
|
||||
echo -e " ${BLUE}11)${NC} Mass Update Plugins - Update plugins (all sites)"
|
||||
echo -e " ${BLUE}12)${NC} Login Security Audit - Check for weak passwords"
|
||||
echo -e " ${BLUE}13)${NC} Malware Scanner - Scan for infected files"
|
||||
echo -e " ${BLUE}14)${NC} Permission Fixer - Fix file permissions"
|
||||
echo -e " ${BLUE}15)${NC} Debug Log Analyzer - Parse WP debug logs"
|
||||
echo ""
|
||||
echo -e " ${RED}0)${NC} Back to Main Menu"
|
||||
echo ""
|
||||
@@ -1143,20 +1147,21 @@ handle_wordpress_menu() {
|
||||
read -r choice
|
||||
|
||||
case $choice in
|
||||
1) run_module "wordpress" "wp-health-check.sh" ;;
|
||||
2) run_module "wordpress" "wp-cron-status.sh" ;;
|
||||
3) run_module "wordpress" "wp-cron-mass-fix.sh" ;;
|
||||
4) run_module "wordpress" "wp-cron-mass-create.sh" ;;
|
||||
5) run_module "wordpress" "wp-plugin-audit.sh" ;;
|
||||
6) run_module "wordpress" "wp-theme-audit.sh" ;;
|
||||
7) run_module "wordpress" "wp-db-optimizer.sh" ;;
|
||||
8) run_module "wordpress" "wp-cache-clear.sh" ;;
|
||||
9) run_module "wordpress" "wp-mass-update-core.sh" ;;
|
||||
10) run_module "wordpress" "wp-mass-update-plugins.sh" ;;
|
||||
11) run_module "wordpress" "wp-login-security.sh" ;;
|
||||
12) run_module "wordpress" "wp-malware-scanner.sh" ;;
|
||||
13) run_module "wordpress" "wp-permission-fixer.sh" ;;
|
||||
14) run_module "wordpress" "wp-debug-log-analyzer.sh" ;;
|
||||
1) run_module "website" "website-error-analyzer.sh" ;;
|
||||
2) run_module "wordpress" "wp-health-check.sh" ;;
|
||||
3) run_module "wordpress" "wp-cron-status.sh" ;;
|
||||
4) run_module "wordpress" "wp-cron-mass-fix.sh" ;;
|
||||
5) run_module "wordpress" "wp-cron-mass-create.sh" ;;
|
||||
6) run_module "wordpress" "wp-plugin-audit.sh" ;;
|
||||
7) run_module "wordpress" "wp-theme-audit.sh" ;;
|
||||
8) run_module "wordpress" "wp-db-optimizer.sh" ;;
|
||||
9) run_module "wordpress" "wp-cache-clear.sh" ;;
|
||||
10) run_module "wordpress" "wp-mass-update-core.sh" ;;
|
||||
11) run_module "wordpress" "wp-mass-update-plugins.sh" ;;
|
||||
12) run_module "wordpress" "wp-login-security.sh" ;;
|
||||
13) run_module "wordpress" "wp-malware-scanner.sh" ;;
|
||||
14) run_module "wordpress" "wp-permission-fixer.sh" ;;
|
||||
15) run_module "wordpress" "wp-debug-log-analyzer.sh" ;;
|
||||
0) return ;;
|
||||
*) echo -e "${RED}Invalid option${NC}"; sleep 1 ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user