[wp-hackers] Problems with reference to $wp_roles->roles
jer at simianuprising.com
Thu Feb 9 22:41:31 UTC 2012
I'm not sure why the $wp_roles object would be unnavailable sometimes, but
maybe your users are seeing errors you aren't because they have error
reporting in PHP turned up higher than you.
If you aren't already, you should enable WP_DEBUG and the Debug Bar plugin
and use them when developing. WP_DEBUG will make you see as many errors as
possible and the Debug Bar plugin will give you a nice button that lights
up orange when there is a warning or notice anywhere on the page, useful
when the errors aren't in places you commonly look.
You should also enable WP_DEBUG_LOG, which will write all errors to a
/wp-content/debug.log file. Tail that file (using command line, or the
Console app on OSX) to catch ALL the errors, even ones that happen behind
the scenes in AJAX calls.
Learn all about it on my favorite site on the internet:
Jeremy Clarke • jeremyclarke.org
Code and Design • globalvoicesonline.org
More information about the wp-hackers