Title: Oops.. Unexpected error occurred.
Last modified: August 31, 2016

---

# Oops.. Unexpected error occurred.

 *  Resolved [NUCUTA](https://wordpress.org/support/users/cuta/)
 * (@cuta)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/)
 * my readers can’t subscribe me on my site
    it says Oops.. Unexpected error occurred.
   can you tell me how to fix this?
 * [https://wordpress.org/plugins/email-subscribers/](https://wordpress.org/plugins/email-subscribers/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428618)
 * [@cuta](https://wordpress.org/support/users/cuta/),
 * Which version of Email Subscribers you are using?
 * Please have a check with only Email Subscribers plugin (rest all plugins de-activated)
   active and default WordPress theme and check if it is working or not.
 *  Thread Starter [NUCUTA](https://wordpress.org/support/users/cuta/)
 * (@cuta)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428621)
 * The latest one. my plugins are always up-to-date. anyway I fixed it by commenting
   out these lines in email-subscribers/job/es-subscribe.php. I think there is something
   wrong with these two lines. $_SERVER[‘HTTP_REFERER’] is searched for the value
   in $homeurl, and strpos returns its position if found ,but it’s not found and
   therefore IF condition is not met ,so it takes the user to the else part where
   they are thrown “unexpected-error” error. I hope it will be fixed in the next
   version. thanks.
 *     ```
       $homeurl = home_url();
       $samedomain = strpos($_SERVER['HTTP_REFERER'], $homeurl);
       ```
   
 *     ```
       //if (($samedomain !== false) && $samedomain < 5)
       //{
       //}
       //else
       //{
       //	echo "unexpected-error";
       //}
       ```
   
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428693)
 * [@cuta](https://wordpress.org/support/users/cuta/),
 * Editing the core plugin files is really not advisable.
 * Also, that block of code is necessary to check if the request is valid or not.
   However, we’ll investigate into it.
 *  Thread Starter [NUCUTA](https://wordpress.org/support/users/cuta/)
 * (@cuta)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428694)
 * I get what you meant, but what else I could do? I hope you will fix it asap
 *  Thread Starter [NUCUTA](https://wordpress.org/support/users/cuta/)
 * (@cuta)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428729)
 * hello I can see you released a new version. I am wondering did you fix this issue.
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428733)
 * [@cuta](https://wordpress.org/support/users/cuta/),
 * We are not able to replicate same on our end. However, we will investigate into
   it and then we’ll fix it (it is not fixed in latest release – v3.1.4).
 *  Thread Starter [NUCUTA](https://wordpress.org/support/users/cuta/)
 * (@cuta)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428734)
 * I use cloudflare. perhaps that’s the reason?
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428736)
 * [@cuta](https://wordpress.org/support/users/cuta/),
 * Could be one reason. Please have a test with only Email Subscribers plugin active(
   rest all plugin de-activated) & default WordPress theme.
 *  Thread Starter [NUCUTA](https://wordpress.org/support/users/cuta/)
 * (@cuta)
 * [10 years ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428737)
 * I will let you know after doing some tests 🙂
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428775)
 * [@cuta](https://wordpress.org/support/users/cuta/),
 * Any update on this?
 *  [jeffdjon1](https://wordpress.org/support/users/jeffdjon1/)
 * (@jeffdjon1)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428778)
 * [@storeapps](https://wordpress.org/support/users/storeapps/),
 * I am having the same error as [@cuta](https://wordpress.org/support/users/cuta/).
   I tried adding multiple other emails of mine as a test and all of them are saying“
   Oops.. Unexpected error occurred” in red. Any updates on this issue? Thanks
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428779)
 * [@jeffdjon1](https://wordpress.org/support/users/jeffdjon1/),
 * Do you see any errors in browser’s console? If yes, then what it is?
 *  [jeffdjon1](https://wordpress.org/support/users/jeffdjon1/)
 * (@jeffdjon1)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428780)
 * [@storeapps](https://wordpress.org/support/users/storeapps/),
 * No, I do not see any errors being displayed in the browser’s console.
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428782)
 * [@jeffdjon1](https://wordpress.org/support/users/jeffdjon1/),
 * Please check if you have correct [file permissions](https://codex.wordpress.org/Changing_File_Permissions#Permission_Scheme_for_WordPress).

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Oops.. Unexpected error occurred.’ is closed to new replies.

 * ![](https://ps.w.org/email-subscribers/assets/icon-256x256.png?rev=2274172)
 * [Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress](https://wordpress.org/plugins/email-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-subscribers/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [storeapps](https://wordpress.org/support/users/storeapps/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/oops-unexpected-error-occurred/#post-7428782)
 * Status: resolved