Thank you for your feedback!
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.
Thank you for your feedback!
|1.||Managing Users in Modx|
|2.||Part I: Managing Users Groups in Modx|
|3.||Replacing the Modx Editor with TinyMCE|
|4.||How to manually reset MODx Administrator user password using API|
|5.||Resetting the Password for Modx Users through the Database|
|6.||How to view an error log in Modx|
|7.||How to Add Content Types to Modx|
|8.||Loading MODX Components in Package Management|
|9.||Installing Packages in Modx Package Management|
|10.||Changing System Settings in Modx|
|11.||Creating Systems Settings in Modx|
|12.||Part I: Setting Up Friendly URLs for MODX- HTACCESS file changes|
|13.||Part II: Making Template and System Setting Changes to Enable Friendly URLs for Modx|
|14.||How to Optimize your Database in MODX Revolution|
|15.||How to find MODX System Information|
|16.||Flush Permissions and Sessions in MODX|
|17.||How to Configure SMTP Email for MODX|
|18.||Adding the Google Analytic Widget to the MODX Dashboard|
|Email:||support@WebHostingHub.com||Ticket:||Submit a Support Ticket|
|Chat:||Click To Chat Now|