We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47666
    • 43 Posts
    How can I see my php errors. They don't seem to show up in the error log. Ideally I'd like them to show just as if I were working with typical php files outside of a cms.
      • 3749
      • 24,544 Posts
      If you are on a localhost platform, you can put this in php.ini to see all the errors immediately on the screen, which is what I prefer:

      error_reporting = -1 
      display_errors = On


      The only down side is that errors in plugins and CMPs will make things hang.

      If you're on a shared server, this probably won't work. Sometimes you can add this using a snippet in your template (which makes it easy to turn on and off):

      ini_set('display_errors',1);
      ini_set('display_startup_errors',1);
      error_reporting(-1);


      Errors reported by MODX itself (e.g., from sanity checks in the MODX or extra code) should go the the error log no matter what.

      If your error log never shows anything, its directory may not be writable.


        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting