Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2004-08-14 03:49:43
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
plugin: zem_debug
Here’s a trivial plugin to help diagnose errors. All it does is turn on PHP error reporting, exactly like uncommenting the lines at the beginning of publish.php.
http://thresholdstate.com/software/3720/zem_debug
To use it, just install and set Active to ‘yes’ in the plugin interface.
I’d recommend against leaving it enabled on a production site, for security reasons.
Last edited by zem (2004-11-30 00:08:24)
Alex
Offline
#2 2004-11-30 00:09:16
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: plugin: zem_debug
I’ve released a new version, 0.2. This one adds a custom error handler that makes it much easier to identify buggy plugins.
Usually plugin errors look like this:
<code>Notice: Undefined variable: foo in /usr/home/tstate/public_html/textpattern/publish.php(780) : eval()’d code line 1363</code>
With the custom error handler, errors look like this:
<code>Error 8 Undefined variable: foo in abc_myplugin(), /usr/home/tstate/public_html/textpattern/publish.php(780) : eval()’d code line 1363</code>
Last edited by zem (2004-11-30 00:31:57)
Alex
Offline
Offline
Re: plugin: zem_debug
Agreed that this is a nice plugin, BUT, plugin developers have to use it before anyone else can.
I installed this on my site and promptly got over 50 <code>Error 8 Undefined variable:</code> messages from various plugins I use.
Last edited by wilshire (2005-01-06 17:44:58)
Offline
Re: plugin: zem_debug
I installed this on my site and promptly got over 50 Error 8 Undefined variable: messages from various plugins I use.
I get one right now. A royal pain… hopefully as more people use the Debug plugin, they will fix their own plugins. :)
BTW, my error is in the mdm_if_category plugin. I get a string offset error. Anyone wanna take a shot at fixing it? :)
Eric
Offline
Pages: 1