Error Message
-
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. ]
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?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error Message’ is closed to new replies.