-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
This comprehensive guide provides detailed solutions to common problems you might encounter while using the Advanced Log Manager plugin. We aim to help you quickly diagnose and resolve issues to ensure a smooth experience.
Dokumen ini memberikan solusi lengkap untuk masalah umum yang mungkin Anda temui saat menggunakan Advanced Log Manager. Kami fokus pada step-by-step solutions yang mudah diikuti.
Gejala: Error "invalid debug constant" atau fitur plugin tidak berfungsi dengan baik.
Penyebab: Constant WP_DEBUG tidak didefinisikan atau diset false di wp-config.php.
Solusi Mudah (Recommended):
-
Gunakan Dashboard Plugin:
- Pergi ke Tools → Advance Log Manager
- Klik tombol "Enable Debug Mode"
- Plugin akan auto-konfigurasi semua constants
-
Verifikasi:
- Status Debug Mode berubah ke "Active"
- Indicator hijau muncul di Error Logging
Solusi Manual (Advanced):
-
Akses
wp-config.phpvia FTP atau File Manager hosting -
Edit file dan tambahkan sebelum
/* That's all, stop editing! Happy publishing. */:define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
- Save dan upload kembali file
- Test dengan refresh dashboard
Tips: Selalu backup wp-config.php sebelum edit manual!
Problem: The toggle button designed to enable or disable debug mode within the Advanced Log Manager interface is unresponsive or cannot be clicked.
Cause: This issue is most frequently caused by a JavaScript conflict with another installed plugin or your active WordPress theme. Such conflicts can prevent the necessary scripts for the toggle button's functionality from executing correctly.
Solution:
-
Check for JavaScript Errors:
- Open your web browser's developer console (usually by pressing
F12on Windows/Linux orCmd + Option + Ion macOS). - Navigate to the "Console" tab.
- Refresh the page where the toggle button is located.
- Look for any red error messages, which indicate JavaScript errors. These messages can often point to the conflicting script or plugin.
- Open your web browser's developer console (usually by pressing
-
Perform a Conflict Check:
-
Deactivate Plugins: Go to
Plugins > Installed Pluginsin your WordPress admin area. Deactivate all plugins except Advanced Log Manager. - Test: Check if the toggle button is now clickable. If it is, reactivate your plugins one by one, testing the toggle button after each activation, until you identify the conflicting plugin.
-
Switch Theme: If deactivating plugins doesn't resolve the issue, switch your active theme to a default WordPress theme (e.g., Twenty Twenty-Four, Twenty Twenty-Three) by going to
Appearance > Themes. Test the toggle button again. If it works, your theme is likely causing the conflict.
-
Deactivate Plugins: Go to
- Report to Support: Once you've identified the conflicting plugin or theme, consider reaching out to the respective developer's support channel for assistance. Provide them with details of the conflict and any JavaScript errors you found.
Problem: The performance metrics displayed by Advanced Log Manager (e.g., memory usage, page load time, query count) appear inconsistent, inaccurate, or fluctuate unexpectedly.
Cause: Several factors can contribute to inconsistent performance metrics:
- Caching: Server-side caching, WordPress caching plugins, or browser caching can serve cached versions of pages, leading to metrics that don't reflect real-time performance.
- Other Plugins/Themes: Other plugins or themes might interfere with WordPress's core functions or introduce their own performance monitoring, leading to skewed results.
- Server Environment: Variations in server load, resource allocation, or network latency can naturally affect performance metrics.
- Measurement Timing: The exact moment a metric is captured can influence its value, especially in dynamic environments.
Solution:
-
Clear All Caches:
- WordPress Caching Plugins: If you use a caching plugin (e.g., WP Super Cache, W3 Total Cache, LiteSpeed Cache), clear its cache entirely.
- Server-Side Caching: If your hosting provider offers server-side caching (e.g., Varnish, Nginx caching), clear it through your hosting control panel.
- Browser Cache: Clear your browser's cache and cookies, or use an incognito/private browsing window to ensure you're loading fresh content.
- Perform a Conflict Check: Similar to the JavaScript conflict resolution, deactivate other plugins one by one and switch to a default theme to isolate if another component is interfering with the performance monitoring.
- Monitor Under Controlled Conditions: To get more reliable readings, try monitoring performance during periods of low website traffic or on a staging environment that closely mirrors your production setup.
- Review Server Resources: Check your hosting provider's metrics or contact their support to ensure your server has adequate resources (CPU, RAM) and is not experiencing high load, which can impact performance readings.
- Consult Documentation/Support: If inconsistencies persist, refer to the Advanced Log Manager documentation or contact support with details of your setup and the observed discrepancies.
Problem: You notice that log files (e.g., debug.log, query.log, smtp.log) are not being generated, are empty, or are not updating with new entries.
Cause: This can be due to incorrect file permissions, WP_DEBUG_LOG not being enabled, server configuration issues, or conflicts with other plugins.
Solution:
-
Verify
WP_DEBUG_LOG: Ensure thatdefine( 'WP_DEBUG_LOG', true );is present and set totruein yourwp-config.phpfile (as described in "Invalid Debug Constant Error" section). -
Check File Permissions:
- Log files are typically stored in the
wp-contentdirectory. Ensure that thewp-contentdirectory and any existingdebug.logfile within it have correct write permissions (usually644for files and755for directories, though some hosts might require777fordebug.logtemporarily for testing). - You can check and change permissions using an FTP client or your hosting file manager.
- Log files are typically stored in the
- Server Disk Space: Confirm that your hosting account has sufficient disk space. If the disk is full, new log entries cannot be written.
- Plugin Conflicts: Deactivate other plugins one by one to check if any plugin is preventing log file generation or updates.
- Server Error Logs: Check your server's main error logs (usually accessible via your hosting control panel) for any PHP errors or warnings that might indicate why logging is failing.
Problem: Changes made through the .htaccess editor in Advanced Log Manager do not seem to be applied to your website.
Cause: This can happen if your server configuration doesn't allow .htaccess overrides, if there are syntax errors in your .htaccess file, or if caching is preventing the changes from being immediately visible.
Solution:
- Clear Caches: Clear all types of caches (WordPress, server-side, browser) as described in the "Performance Metrics Calculation Inconsistency" section.
-
Check Server Configuration:
- Your web server (Apache or Nginx) must be configured to allow
.htaccessoverrides. For Apache, this meansAllowOverride Allmust be set in your virtual host configuration. - If you are on Nginx,
.htaccessfiles are not natively supported. You would need to convert.htaccessrules to Nginx configuration directives, which usually requires server access. - Contact your hosting provider to confirm if
.htaccessoverrides are enabled and supported for your environment.
- Your web server (Apache or Nginx) must be configured to allow
-
Check for Syntax Errors: Even a small syntax error in
.htaccesscan cause a "500 Internal Server Error" or prevent rules from being applied. The Advanced Log Manager's editor should have some validation, but manual review or using an.htaccessvalidator tool can help. -
File Permissions: Ensure the
.htaccessfile has correct permissions (usually644). -
Other Plugins: Some security or performance plugins might also manage or interfere with
.htaccessrules. Temporarily deactivate such plugins to test.
If you've followed these troubleshooting steps and are still experiencing issues, please don't hesitate to contact our support team with detailed information about your problem, your WordPress environment, and the steps you've already taken. We're here to help!
- Home Ringkasan dan fitur utama Advanced Log Manager.
- Quick Start Panduan 5 menit setup untuk pemula.
- Features Penjelasan mendalam tentang semua fitur yang ditawarkan plugin.
- Installation Panduan langkah demi langkah untuk menginstal plugin.
- Configuration Detail tentang pengaturan dan konfigurasi plugin.
- Troubleshooting Solusi untuk masalah umum yang mungkin Anda temui.
- Developer Guide Panduan teknis untuk pengembang, termasuk hooks dan filter.