One of the common tools available for troubleshooting issues for a website is the error log. It is important to understand that Modx shows an error log for problems or flags that are set by developers of Modx. Additionally, you can see an error log generated by PHP when there are problems with PHP code within the Modx CMS. This log is not the same as the one generated by Modx. The following article describes both types of error logs and demonstrates how you can view both types of logs within the Modx Administrator Dashboard interface.
Modx-generated Error log | PHP Error log | |
---|---|---|
File locaton | The actual log file is a text file named error.log and can be found in the /core/cache/logs/ directory of your Modx installation. | This is a generic error log created due to PHP errors such as syntax errors. The error_log file can be found in multiple directories as it will be written in each directory where the error occurs. |
Viewable | This log is viewable through the Modx Reports>Error Log menu option. | This log is viewable through the Modx Resource Tree as a text file. |
Generated when | Errors in this log can be used to intentionally flag an event in Modx code for troubleshooting or development purposes. | This is an automatically generated error log whose sole purpose is to log PHP errors. |
The use of the Modx ERROR.LOG and the ERROR_LOG (generated by PHP) can be invaluable when trying to determine a problem within the Modx application. If you have any problems with any portion of Modx, you can create a snippet to write a dummy error in the ERROR.LOG file to help determine the location of a problem in your code. Or, you can use the recorded errors in the PHP ERROR_LOG to troubleshoot the issue and provide valuable information for your developers.
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!