We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17016
    • 138 Posts
    Does anybody know what could be the reason for having always an empty Error log and how we can fix it?

    Thanks a lot in advance!
    Letti
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: Letti at Dec 08, 2010, 12:24 PM

      Does anybody know what could be the reason for having always an empty Error log and how we can fix it?

      Thanks a lot in advance!
      Letti
      No errors are being generated?
        • 17016
        • 138 Posts
        That´s what we thought at the first moment, too. But it seems very unlikely that there have been no errors in the last weeks. And the log was even empty after adding this line

        $modx->log(modX::LOG_LEVEL_ERROR,’Testing: ’ . $resourceId);

        in a plug-in as described here:

        http://modxcms.com/forums/index.php/topic,56650.msg332501.html#msg332501

        Therefore we think that the error log is not working correctly in our setting.

        Is there a good way to test where in the error log-process could be a mistake?
          • 22303 MODX Staff
          • 10,725 Posts
          Check your PHP error log and see if it is intercepting all of the errors. If not, I think the problem might be that your plugin is not executing or getting to the point where the log is being recorded. Also, make sure the PHP process can write to the log file/directory.
            • 17016
            • 138 Posts
            Thanks a lot for your reply. I just checked the error.log in the cache/logs/-folder which includes many thousands error-messages until today. So it seems that they are just not shown in the error log in the MODx-Backend.

            Do you have any idea what could be the reason for this?
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: Letti at Dec 09, 2010, 08:45 AM

              Thanks a lot for your reply. I just checked the error.log in the cache/logs/-folder which includes many thousands error-messages until today. So it seems that they are just not shown in the error log in the MODx-Backend.

              Do you have any idea what could be the reason for this?
              There are too many? It’s likely running out of memory trying to load the file contents...
                • 17016
                • 138 Posts
                Hi OpenGeek,

                thanks a lot again. You were right. The file was too big. I deleted its content and now the error log of the backend works again. smiley smiley smiley

                Letti