Replies
- Ravi on April 7, 2016 at 6:04 pm in reply to: [Resolved] BP Username Changer – Field Validation #3399
Hi Renato,
Thank You for confirming.
Thank You
Ravi - Ravi on April 7, 2016 at 5:56 pm in reply to: [Resolved] BP Username Changer – Field Validation #3397
Hi Renato,
Please put the translated text directly in the above code that I have posted. It won’t be loader from the pot file.
Hope that helps.
Thank You
Ravi - Ravi on April 7, 2016 at 5:27 pm in reply to: [Resolved] BP Username Changer – Field Validation #3391
Hi Renato
Please try this
add_filter('bp_username_changer_validation_errors', 'buddydev_username_changer_custom_error_message', 3, 2 ); function buddydev_username_changer_custom_error_message( $error, $new_user_name ) { if ( ! ctype_alnum ( $new_user_name ) ) { $error = new WP_Error( 'invalid', __( 'Username name must be alphanumeric', 'bp-username-changer' ) ); } if ( strlen ( $new_user_name ) < 5 ) { $error = new WP_Error( 'invalid', __( 'New user name can not be less than five character', 'bp-username-changer' ) ); } return $error; }
Thank You
Ravi - Ravi on April 7, 2016 at 4:59 pm in reply to: [Resolved] BP Username Changer – Field Validation #3389
Hi Renato,
Thank You for posting. You can create a custom error message by using the following code in your bp-custom.php file
add_filter('bp_username_changer_validation_errors', 'buddydev_username_changer_custom_error_message', 3, 2 ); function buddydev_username_changer_custom_error_message( $error, $new_user_name ) { if ( ! is_numeric( $new_user_name ) ) { $error = new WP_Error( 'invalid', __( 'Username name must be numeric', 'bp-username-changer' ) ); } if ( strlen ( $new_user_name ) < 5 ) { $error = new WP_Error( 'invalid', __( 'New user name can not be less than five character', 'bp-username-changer' ) ); } return $error; }
Thank You
Ravi Hi Kerstin,
Thank you for reply. I have checked the issue again on ( http://hochzeitahoi.de/gaeste/ ) and got this error in console
Fatal error: Out of memory (allocated 34340864) (tried to allocate 500 bytes) in /homepages
/43/d619898835/htdocs/gaeste/wp-includes/media.php on line 2743Please refer the section “Increasing memory allocated to PHP” on page ( https://codex.wordpress.org/Editing_wp-config.php ) since you are using buddypress. Please set it to atleast 128M.
Thank You
RaviHi Kerstin,
My apologies for the inconvenience.
I created an account on your site and have tested it. The problem I see is very strange. The upload starts correctly but a response is never returned from the server and that is causing the issue.
There can be multiple reasons of the error:-
1. Server script timeout
2. or Resource limit on the serverPlease try by disabling a few plugins and then test again.
Also, Have you saved MediaPress settings atleast once?
Hope that helps.
Thank You
RaviHi Saran,
Please use this code in your bp-custom.php file.
function buddydev_profile_verify_email_change(){ if ( ! bp_is_my_profile() ) { return; } $redirect_to = trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() ); // Email change is being verified. if ( isset( $_GET['verify_email_change'] ) ) { $pending_email = bp_get_user_meta( bp_displayed_user_id(), 'pending_email_change', true ); // Bail if the hash provided doesn't match the one saved in the database. if ( urldecode( $_GET['verify_email_change'] ) !== $pending_email['hash'] ) { return; } $email_changed = wp_update_user( array( 'ID' => bp_displayed_user_id(), 'user_email' => trim( $pending_email['newemail'] ), ) ); if ( $email_changed ) { // Delete object cache for displayed user. wp_cache_delete( 'bp_core_userdata_' . bp_displayed_user_id(), 'bp' ); // Delete the pending email change key. bp_delete_user_meta( bp_displayed_user_id(), 'pending_email_change' ); // Post a success message and redirect. bp_core_add_message( __( 'You have successfully verified your new email address.', 'buddypress' ) ); } else { // Unknown error. bp_core_add_message( __( 'There was a problem verifying your new email address. Please try again.', 'buddypress' ), 'error' ); } bp_core_redirect( $redirect_to ); die(); // Email change is being dismissed. } elseif ( ! empty( $_GET['dismiss_email_change'] ) ) { bp_delete_user_meta( bp_displayed_user_id(), 'pending_email_change' ); bp_core_add_message( __( 'You have successfully dismissed your pending email change.', 'buddypress' ) ); bp_core_redirect( $redirect_to ); die(); } } add_action( 'bp_actions', 'buddydev_profile_verify_email_change' );
Thank You
RaviHi Saad,
I have investigated further. There are two copies of jquery being loaded. One from Google CDN and other by WordPress core.Please disable loading from Google CDN and try it again.
Hi HansRuedi,
Brajesh sir is away. He will get back to you soon.
Thank You
Ravi- This reply was modified 8 years, 8 months ago by Ravi.
Hi Saad,
I have tested the bug. It is not a plugin bug it is caused by Cinematix theme when i have tested the functionality with different theme it was working. Also there is one error is showing in console by the Cinematix theme.
Thank You
Ravi