• When a new person tries to subscribe we get Oops.. Unexpected error occurred.

    Please help. We have single opt in

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • It might be because of some plugin conflict. Request you to temporarily deactivate all other plugins and have a recheck on the issue.

    Plugin Contributor Malay Ladu

    (@malayladu)

    Hello @openskies2009,

    Any update on this? Did you try out steps as Aditya mentioned?

    Hi,
    I have the same issue here, I tried and disabled all the plugin except this one, but still does not working, for instance you can check my URL https://devian.ir

    After a some digging into the code, I fixed my problem,
    but I’ll only explain the issue,
    this issue comes from the file located under “plugins/email-subscribers/job/es-subscribe.php”, function “es_add_subscribers_db”.

    at the beginning of the function there is a condition to validate request by nonce.

    
    $hp_key = "esfpx_es_hp_" . wp_create_nonce('es_hp');
    
    if ( !isset( $_POST[$hp_key] ) || !empty( $_POST[$hp_key] ) ) {
    
    	$es_response['error'] = 'unexpected-error';
    
    	return $es_response;
    
    }

    but it’s wrong,
    replacing that with blow code will make the fix.

    if (!isset($_POST['esfpx_es-subscribe']) || !wp_verify_nonce($_POST['esfpx_es-subscribe'], 'es-subscribe' )) {
    	$es_response['error'] = 'unexpected-error';
    	return $es_response;
    }

    and now plugin works perfectly fine.

    I have this same problem. It seems to be a conflict wbetween email subscribers and my social sharing plugin. When I delete the social sharing plugin the email sign up works OK. When I reinstall social sharing the sign up seems to work initially, but then once I actually use the social sharing icons to share a post then after that the email sign up returns the “oops ….” error message again. I have tried 3 different social sharing plugins but all with the same result.

    Any ideas please? Is the code listed my only solution? (I am not an expert so reluctant to start altering code.)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Oops.. Unexpected error occurred.’ is closed to new replies.