Title: Error Message
Last modified: August 31, 2016

---

# Error Message

 *  [WayneFusco](https://wordpress.org/support/users/waynefusco/)
 * (@waynefusco)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-message-522/)
 * Okay – I added some fields and now I am getting this error and the site does 
   not load..
 * _[ Moderator note: code fixed. Please wrap code in the backtick character or 
   [use the code button](http://codex.wordpress.org/Forum_Welcome#Posting_Code).]_
 *     ```
       function tml_user_register( $user_id ) { if ( !empty( $_POST['first_name'] ) ) update_user_meta( $user_id, 'first_name', $_POST['first_name'] ); if ( !empty( $_POST['last_name'] ) ) update_user_meta( $user_id, 'last_name', $_POST['last_name'] ); } add_action( 'user_register', 'tml_user_register' ); function tml_registration_errors( $errors ) { if ( empty( $_POST['first_name'] ) ) $errors->add( 'empty_first_name', 'ERROR: Please enter your first name.' ); if ( empty( $_POST['last_name'] ) ) $errors->add( 'empty_last_name', 'ERROR: Please enter your last name.' ); return $errors; } add_filter( 'registration_errors', 'tml_registration_errors' );
       Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/danceparty1/public_html/wp-content/plugins/theme-my-login-custom.php:16) in /home/danceparty1/public_html/wp-content/themes/musical/functions.php on line 19
   
       Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/danceparty1/public_html/wp-content/plugins/theme-my-login-custom.php:16) in /home/danceparty1/public_html/wp-content/themes/musical/functions.php on line 19
       ```
   
 * Can someone tell me what I did wrong and how I can get get this corrected?
 * [https://wordpress.org/plugins/theme-my-login/](https://wordpress.org/plugins/theme-my-login/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-message-522/#post-7272807)
 * Please use code formatting.

Viewing 1 replies (of 1 total)

The topic ‘Error Message’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/error-message-522/#post-7272807)
 * Status: not resolved