We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39166
    • 4 Posts
    thu issue of avoiding the information that <<MODx Parse Error>> shows when occur.... is it implemeted in the new version?
    I didnt found anything that can help me with this issue ..... theres a way to manage the error template to hardcoding or something to not show the modx error?

    Anyone? [ed. note: gurthang75 last edited this post 12 years ago.]
      • 39166
      • 4 Posts
      ok sory for the post but i found the solution...

      i went to the document.parser.class.inc.php file in manager/includes/

      there in the line 2738 u can find the template of the parse error page... u can coment or delete the next lines:

      $parsedMessageString .= "<tr><td> </td></tr><tr><td colspan='3'><b>PHP error debug</b></td></tr>";

      $parsedMessageString .= "<tr><td valign='top'> Error: </td>";
      $parsedMessageString .= "<td colspan='2'>$text</td><td> </td>";
      $parsedMessageString .= "</tr>";

      $parsedMessageString .= "<tr><td valign='top'> Error type/ Nr.: </td>";
      $parsedMessageString .= "<td colspan='2'>" . $errortype[$nr] . " - $nr</b></td><td> </td>";
      $parsedMessageString .= "</tr>";

      $parsedMessageString .= "<tr><td> File: </td>";
      $parsedMessageString .= "<td colspan='2'>$file</td><td> </td>";
      $parsedMessageString .= "</tr>";

      $parsedMessageString .= "<tr><td> Line: </td>";
      $parsedMessageString .= "<td colspan='2'>$line</td><td> </td>";
      $parsedMessageString .= "</tr>";

      the error will still show but without the information.

      Hope it can help to someone!
      Cheersss!!!