We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27672
    • 168 Posts
    maybe i’m crazy, but way back when i was using MODx 0.9.6 i seem to recall that if there was a php error in a snippet i would get one of those nice modx error screens (like when i have a database query that is broken), but in 1.0.2 i just get a blank screen, or no output if within a page, unless i put error_reporting(E_ALL) into the snippet. is there a setting somewhere to turn on that nice MODx error reporting? or am i totally making up the fact that MODx ever output the php errors?

    i see on line 13 of my /manager/includes/config.inc.php:
    error_reporting(E_ALL & ~E_NOTICE);

    but it doesn’t do anything it seems.

    i’ve been trying to cause some php errors in snippets (which, believe me, i am totally capable of) - and the only way i can have anything output is by adding my own error_reporting setting at the top of the snippet.
      • 27672
      • 168 Posts
      doing a little more research i think maybe i was thinking of the error screen that’s shown when there is a parse error on a $modx-> function error, like missing a parameter.
        • 5340
        • 1,624 Posts
        I think your server has the error reporting disabled.

        While developing, I recommend that you put the code at the beginning of index.php. At least that’s what work on my setups.
          • 21257 MODX Staff
          • 730 Posts
          You’ll also get errors from snippets logged to Reports > System Events
            Mike Schell
            Lead Developer, MODX Cloud
            Email: [email protected]
            GitHub: https://github.com/netProphET/
            Twitter: @mkschell