We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45232
    • 4 Posts
    Hi All,

    Is there any way to disable a MODx Parse Error information to be visible to all users
    For example:
    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: mysql_connect(): Can't connect to MySQL server.......

    Thanks!
      • 45232
      • 4 Posts
      Perhaps there is no way?
      And what about OnParseDocument in PHx plugin? What is it used?

      I still think that there is a setting somewhere but I don't know where sad

      Regards!
        • 36416
        • 589 Posts
        Quote from: radina at Sep 28, 2013, 02:39 PM
        Perhaps there is no way?
        And what about OnParseDocument in PHx plugin? What is it used?

        PHx? If you're using Evolution, I think new version (1.0.12) shows errors only to administrators,
        and you can fine tune it with setting:
        Tools|Configuration - User/Detection level of the PHP error
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          The OnParseDocument event is used by the phx plugin to insert its own code into the MODx parser. At that point during the processing of a document, the phx code can do its own processing of its own placeholders and the phx modifiers in other MODx tags in the document's content.

          All plugins work in the same way. They use the different System Events that MODx has in its code as entry points for their own processing. This way a developer does not have to modify any of the MODx core code to provide custom functionality.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 45232
            • 4 Posts
            Hi Eoler, sottwell,

            Thanks for your answers!

            I'm using MODX Evo 1.0.8 sad. So in this version I'll not be able to hide this page? I have no this setting in my version.