Login!
Register as a new user Lost password?
 

MODx Bug/Feature Tracker and Feature Requests

Welcome to the MODx CMS Tracker. Please choose the appropriate project from the drop down menu and provide as much information as possible regarding your server environment and browser. Thanks!

FS#208 — Surpress PHP errors and log

Attached to Project — MODx
Opened by purple (purple) - Monday, 09 January 2006, 04:32PM
Last edited by Jason Coward (opengeek) - Wednesday, 21 November 2007, 10:36AM
Task Type Feature Request
Category Core Distribution
Status Implementing
Assigned To Jason Coward (opengeek)
Operating System All
Severity High
Priority Normal
Reported Version 0.9.1
Due in Version 0.9.7-beta
Due Date Undecided
Percent Complete 80%

Details

I created this message on the bug-forum and I was asked to put it here. So here it is.
============================================================
Hi all,

When having a site live, I would like to be able to supress errors generated by php. Like warnings and so on.

I think it would be nice to have a configuration option in de site configurater to enable or disable the display of php-errors.

Even nicer would be to redirect the errors to a log. However, I don't know if that is possible.

regards,
purple

This task depends upon

This task blocks these from closing
Comment by Jason Coward (opengeek) - Thursday, 23 March 2006, 02:48AM
this is definitely possible, and is part of my roadmap for 1.0, which I will be building here in the bug tracker in the next few days

Comment by Christophe Halna (chalna) - Friday, 14 July 2006, 04:10PM
just to be sure :
this correction would make the following lines disappear ?

Notice: Array to string conversion in /.../modx/manager/includes/document.parser.class.inc.php on line 951

Notice: Undefined variable: php_errormsg in /.../modx/manager/includes/document.parser.class.inc.php on line 685

Notice: Undefined index: in /.../modx/manager/includes/document.parser.class.inc.php on line 2032

Thx.

Comment by Andy Shellam (andyccn) - Thursday, 26 October 2006, 08:50AM
Until then you can also edit the logging config in your site's php.ini file, or .htaccess if Apache allows it.

Note if you're on a shared webhost, the webhost must allow you to edit your own php.ini as well (some do.)

Comment by Ryan Thrash (rthrash) - Thursday, 04 January 2007, 09:19AM
Jason, can this be closed out due to your recent commit for 0951?

Comment by Jason Coward (opengeek) - Wednesday, 21 November 2007, 10:36AM
  • Field changed: Due in Version (1.0 → 0.9.7-beta)
  • Field changed: Percent Complete (0% → 80%)
This at least partially implemented in 0.9.7 branch, but needs more attention and testing before I close the issue.