studiotopweb
Forum Replies Created
-
Forum: Plugins
In reply to: [GDPR] I agree, the bar does not disappearHi Fernando,
but in this case I have totally different scenario, no membership plugin…
This time the redirect seems correct.Has to be something else…
Thank you,
NicolaForum: Plugins
In reply to: [GDPR] I Agree button is redirecting to shop pageI found the solution =
s2member plugin, set “General Options” > “Member Profile Modifications” to No.I hope it helps also for other technicians/colleagues.
Regards,
NicolaForum: Plugins
In reply to: [GDPR] I Agree button is redirecting to shop pageAbout s2member plugin, I found this:
When you set “General Options” > “Member Profile Modifications” to Yes (redirect to Login Welcome Page; locking all /wp-admin/ areas), and a user tries to visit yourdomain.com/wp-admin/profile.php, he will be redirected to your Welcome page. With this option, you can’t use the function admin_post_{action} in the front end. You can maybe hook the init function instead.
Forum: Plugins
In reply to: [GDPR] I Agree button is redirecting to shop pageseems not be compatible with s2member plugin
Forum: Plugins
In reply to: [GDPR] I Agree button is redirecting to shop pagein admin-post.php the actions are evaluate in an impossible situation:
$action = empty( $_REQUEST[‘action’] ) ? ” : $_REQUEST[‘action’];
if ( ! wp_validate_auth_cookie() ) {
if ( empty( $action ) ) {
/**
* Fires on a non-authenticated admin post request where no action was supplied.
*
* @since 2.6.0
*/
do_action( ‘admin_post_nopriv’ );
} else {
/**
* Fires on a non-authenticated admin post request for the given action.
*
* The dynamic portion of the hook name,$action, refers to the given
* request action.
*
* @since 2.6.0
*/
do_action( “admin_post_nopriv_{$action}” );
}
} else {
if ( empty( $action ) ) {
/**
* Fires on an authenticated admin post request where no action was supplied.
*
* @since 2.6.0
*/
do_action( ‘admin_post’ );
} else {
/**
* Fires on an authenticated admin post request for the given action.
*
* The dynamic portion of the hook name,$action, refers to the given
* request action.
*
* @since 2.6.0
*/
do_action( “admin_post_{$action}” );
}
}Forum: Plugins
In reply to: [GDPR] I Agree button is redirecting to shop pageyou define the action in
gdpr/includes/class-gdpr.php
add_action( ‘admin_post_gdpr_update_privacy_preferences’, array( $plugin_public, ‘update_privacy_preferences’ ) );
add_action( ‘admin_post_nopriv_gdpr_update_privacy_preferences’, array( $plugin_public, ‘update_privacy_preferences’ ) );…but are missing here admin-post.php
Forum: Plugins
In reply to: [GDPR] I Agree button is redirecting to shop pageHi,
I suppose I found a bug:
gdpr/public/partials/privacy-preferences-modal.php
…
<form method=”post” class=”gdpr-privacy-preferences-frm” action=”<?php echo esc_url( admin_url(‘admin-post.php’) ); ?>”>
<input type=”hidden” name=”action” value=”gdpr_update_privacy_preferences”>
…
What happens here is that after submit it goes to admin-post.php page, inside this php the code check for the action gdpr_update_privacy_preferences but there isn’t! then the behaviour is not controlled.Can you check?
Thank you,
NicolaForum: Plugins
In reply to: [GDPR] I Agree button is redirecting to shop pageWhat is wrong for you that the plugin calls /wp-admin/admin-post.php
or that the website replys with /shop/ ?Thank you
Forum: Plugins
In reply to: [GDPR] I Agree button is redirecting to shop pageI suppose I found a clue…
when I click on I Agree the plugin wants to navigate
/wp-admin/admin-post.php
And the website itself replys with /shop/I suppose this happens due of a membership plugin…
Is possible to do not redirect anywhere?
Thank you,
NicolaForum: Plugins
In reply to: [GDPR] translate labelsOK, may you explain also to others how did you do?
Thank you very muchForum: Plugins
In reply to: [GDPR] I Agree button is redirecting to shop pageno, I’m not using caching.
Thank you