[wp-hackers] Debugging a wp-plugin
Ryan Boren
ryan at boren.nu
Mon Nov 8 03:32:50 UTC 2004
On Mon, 2004-11-08 at 15:33 +1300, Brett Taylor wrote:
> 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 >:(
Try commenting out the header() redirect in post.php. Anything you echo
after the header redirect has been done won't be seen.
Ryan
More information about the hackers
mailing list