docs/admin-interface/system/maintenance/error-logs.md
The Error Logs tool provides centralized access to system error files, allowing you to monitor, analyze, and troubleshoot issues affecting your OpenCart store. Error logs capture PHP errors, warnings, notices, and custom application errors, helping you identify configuration problems, extension conflicts, and system vulnerabilities. Regular log review is essential for maintaining store stability, improving security, and providing better customer experiences through proactive issue resolution.
{% stepper %} {% step %}
Log in to your admin dashboard and go to System → Maintenance → Error Logs. {% endstep %}
{% step %}
You will see a tabbed interface listing all available log files with their names and sizes. {% endstep %}
{% step %}
Select any log tab to view its contents, use Download to save log files, or Clear to empty log contents. {% endstep %} {% endstepper %}
Multi-log Support
error.log, ocmod.log)File Management Actions
Standard Log Files
error.log) - captures PHP errors and application exceptionsocmod.log) - tracks OCmod installation and application issues/storage/logs/ directory with .log extension{% hint style="info" %} Log Rotation Strategy: For high-traffic stores, implement log rotation to prevent files from growing too large. Monitor log file sizes and clear them regularly, or use server-level log rotation tools. {% endhint %}
{% hint style="warning" %} Security Awareness: Error logs may contain sensitive information (file paths, configuration details, partial data). Restrict access to log files and never expose them publicly. Always download and clear logs from secure locations. {% endhint %}
To monitor current system issues:
To save log files for detailed analysis or developer review:
error.log_2026-03-09_12-30-45_error.log).To free up disk space and maintain performance:
To prevent log files from consuming excessive disk space:
Proactive Issue Detection
Log Management Strategy
Data Protection
Effective Troubleshooting
{% hint style="danger" %} Data Exposure Risk: Error logs can reveal system paths, database information, and other sensitive details. Never share raw log files publicly. Always sanitize logs before sharing with third parties, and ensure log directories have proper permissions (not publicly accessible via web). {% endhint %}
Logging Issues
/storage/logs/ directorylog_errors and error_log settings in php.iniPermission Problems
tool/log in user groupsSize Management
File Availability
/storage/logs/ directory exists and is writableError Investigation
"Errors are not failures—they're messengers. Each error log entry is an opportunity to strengthen your store, fix vulnerabilities, and create a more reliable experience for your customers."