[buddypress-trac] [BuddyPress Trac] #6335: Blank pages overload

buddypress-trac noreply at wordpress.org
Tue Mar 31 16:57:58 UTC 2015


#6335: Blank pages overload
-------------------------------+------------------------------
 Reporter:  danbp              |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  highest            |   Milestone:  Awaiting Review
Component:  API                |     Version:  2.2
 Severity:  critical           |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by r-a-y):

 @wellgolly - Put the following code in your theme's functions.php or /wp-
 content/plugins/bp-custom.php:

 {{{
 function ray_log( $message ) {
         if ( empty( $message ) )
                 return;

         error_log( '[' . gmdate( 'd-M-Y H:i:s' ) . '] ' . $message . "\n",
 3, WP_CONTENT_DIR . '/ray.log' );
 }

 function my_log_new_posts( $post_id, $post ) {
         if ( empty( $post->post_title ) ) {
                 ray_log( 'empty post: ' . print_r( debug_backtrace(), true
 ) );
         }

 }
 add_action( 'save_post', 'my_log_new_posts', 10, 2 );
 }}}


 What this code does is log information about how the new post is being
 created into a file called `/wp-content/ray.log`.

 Once a new post is generated, please copy the contents of that file and
 paste it on a site like Pastebin.com.  Then, copy the Pastebin link and
 post it here.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6335#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list