Title: BAD REQUEST ERROR
Last modified: August 22, 2016

---

# BAD REQUEST ERROR

 *  Resolved [hsr](https://wordpress.org/support/users/hsr/)
 * (@hsr)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/bad-request-error/)
 * Hello,
 * since we updated this plugin we’re getting this error “BAD REQUEST” after voting.
   
   We’re in the middle of a contest and we don’t know how to fix this issue.
 * Can anyone help please?
    Thank you.
 * [https://wordpress.org/plugins/yop-poll/](https://wordpress.org/plugins/yop-poll/)

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

 *  [sauerbraten](https://wordpress.org/support/users/sauerbraten/)
 * (@sauerbraten)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/bad-request-error/#post-5298708)
 * The fix: edit `yop-poll/inc/yop_poll_model.php`:
 * Line 2415 (`register_vote` function) is:
    `if($location!="page" && $location="
   widget"){` but should be `if($location!="page" && $location!="widget"){` (notice
   the `!=` instead of `=` in `$location="widget"`)
 * You can also put “request” in line 2416 instead of “reguest” while you’re in 
   there.
 * I just had the same problem: “bad reguest” when voting from the widget, while
   voting from a poll page worked fine, and I took a look at the source code and
   the revision history. 21 hours ago they released Version 4.9.3 ([https://plugins.trac.wordpress.org/changeset/990106/](https://plugins.trac.wordpress.org/changeset/990106/))
   and that introduced the bug. They’ll probably fix it very soon themselves.
 *  Thread Starter [hsr](https://wordpress.org/support/users/hsr/)
 * (@hsr)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/bad-request-error/#post-5298709)
 * AMAZING!
    Thank you so much!!!
 * Now it works!
 * Just a missing “!” to spread panic! 😉
 *  Thread Starter [hsr](https://wordpress.org/support/users/hsr/)
 * (@hsr)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/bad-request-error/#post-5298747)
 * Resolved!

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

The topic ‘BAD REQUEST ERROR’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

## Tags

 * [bad request](https://wordpress.org/support/topic-tag/bad-request/)

 * 3 replies
 * 2 participants
 * Last reply from: [hsr](https://wordpress.org/support/users/hsr/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/bad-request-error/#post-5298747)
 * Status: resolved