[wp-hackers] Debugging a wp-plugin
Brett Taylor
brett at webfroot.co.nz
Mon Nov 8 02:33:54 UTC 2004
Andr Medeiros wrote:
> Do you get the mail? Because if you don't, then the script probablly has
> a syntax error somewhere and won't run at all. Most hosts are configured
> not to display PHP errors, but you can skip this directive using
> an .htaccess file. I can help you with that if you want.
It was a syntax error (mental note: there is no NOW() in PHP, only in
MySQL. Use time() instead).
It's not the server supressing the error, it's WordPress. Adding
error_reporting(E_ALL); to my plugin did nothing. Adding those lines to
.htaccess did nothing. It seems WP goes out of it's way to hide errors
from me >:(
Next question coming up in a new thread...
--
Brett Taylor
- Webmaster
www.webfroot.co.nz
ICQ: 8473626 MSN: weednix at hotmail.com AIM: webfroot
JABBER: Glutnix at jabber.org.nz http://inner.geek.nz/
More information about the hackers
mailing list